ETSocket documentation

ETSocket : NSObject

The ETSocket class provides a simple wrapper around a socket.

AuthorsGenerated by qmathe
Declared inETSocket.h


The socket is opened when the object is created, and closed when it is destroyed.


+ (id) socketConnectedToRemoteHost: (NSString *)aHost forService: (NSString *)aService

Returns a new socket connected to the specified host, with the specified service name on the first protocol to respond.

    - (BOOL) negotiateSSL

    Negotiates an SSL (client) connection. Returns YES on success.

      - (void) setDelegate: (id)aDelegate

      Sets the delegate.

        - (void) sendData: (NSData *)data

        Sends the specified data through the socket. Throw ETSocketException if sending failed.