]> src.bluestatic.org Git - macgdbp.git/commit
Improving the efficiency of [SocketWrapper receive]
authorRobert Sesek <rsesek@bluestatic.org>
Fri, 3 Aug 2007 03:59:12 +0000 (20:59 -0700)
committerRobert Sesek <rsesek@bluestatic.org>
Fri, 3 Aug 2007 03:59:12 +0000 (20:59 -0700)
commitd0a7bb377f23b50c411ac202b3fcf28f744e5361
treea13448dafd5ae2c3e4b831a2926f624553a5866f
parent7ecc26a4a73a34562e9daa0141194e93b787664c
Improving the efficiency of [SocketWrapper receive]

* Source/SocketWrapper.m:
([SocketWrapper receive]): Cutting down the size of packetLength[], use memmove() instead of strcpy() for moving part of buffer[] to packet[], and autorelease the string we send to the delegate. Also, no longer rely on sizeof() in checking for partial packets because we now have i.
Source/SocketWrapper.m