Performance improvements. Removed the following deprecated functions from Socket::Connection class: flush(), Send(*)

This commit is contained in:
Thulinma 2014-09-24 16:31:56 +02:00
parent d0f2f78517
commit d442b4e2dc
5 changed files with 23 additions and 93 deletions

View file

@ -336,7 +336,7 @@ namespace DTSC {
/// Returns a DTSC::Scan instance to the contents of this packet.
/// May return an invalid instance if this packet is invalid.
Scan Packet::getScan() const {
if (!this || !getDataLen() || !getPayloadLen() || getDataLen() <= getPayloadLen()){
if (!*this || !getDataLen() || !getPayloadLen() || getDataLen() <= getPayloadLen()){
return Scan();
}
return Scan(data + (getDataLen() - getPayloadLen()), getPayloadLen());