This is what I have in Visual window.
[sourcecode language="objc"]
- (void)socket:(GCDAsyncSocket *)sock didAcceptNewSocket:(GCDAsyncSocket *)newSocket
{
// other stuff that you need to do...//see example from the author
[newSocket readDataToData:[GCDAsyncSocket CRLFData] withTimeout:READ_TIMEOUT tag:kHeaderPackage];
// the most important point of the above code is that you use the CRLFData to indicate the end of this piece of data
}
[/sourcecode]
But when viewing, the source code highlighting feature is not working. Here is the link to the page. http://rfc64k.wordpress.com/asfile/
The blog I need help with is rfc64k.wordpress.com.