Updated the code to work with a newer version of GCDAsyncSocket.