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 to NO it means that an error occured and you should look at the errorMessage argument.
  • errorMessage: A NSString to describe the reason of the connection failure.
typedef void (^YLTCPSocketCompletionBlock) (BOOL success, NSString *errorMessage)

Declared In

YLTCPSocket.h