iphone Programming Glossary: readlength
CocoaAsyncSocket and reading data from a socket http://stackoverflow.com/questions/6784872/cocoaasyncsocket-and-reading-data-from-a-socket didReadData withTag I figure the next logical step is to figure out the size of the stream and I do that with UInt32 readLength data getBytes readLength length 4 readLength ntohl readLength After hard coding a string of 12 bytes on the server side.. the next logical step is to figure out the size of the stream and I do that with UInt32 readLength data getBytes readLength length 4 readLength ntohl readLength After hard coding a string of 12 bytes on the server side readLength does indeed read.. step is to figure out the size of the stream and I do that with UInt32 readLength data getBytes readLength length 4 readLength ntohl readLength After hard coding a string of 12 bytes on the server side readLength does indeed read 12 on the client..
|