YLTCPSocketCompletionBlock Block Reference
| Declared in | YLTCPSocket.h |
Block Definition
YLTCPSocketCompletionBlock
The TCP socket completion block. This block has no return value
and takes two arguments: the success and the message.
success: Boolean value to check whether the socket achieved a connection with the remote host. If the value is equal toNOit means that an error occured and you should look at theerrorMessageargument.errorMessage: A NSString to describe the reason of the connection failure.
typedef void (^YLTCPSocketCompletionBlock) (BOOL success, NSString *errorMessage)
Declared In
YLTCPSocket.h