Performance improvements. Removed the following deprecated functions from Socket::Connection class: flush(), Send(*)
This commit is contained in:
parent
d0f2f78517
commit
d442b4e2dc
5 changed files with 23 additions and 93 deletions
|
@ -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());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue