ETSocket documentation
ETSocket : NSObjectThe ETSocket class provides a simple wrapper around a socket.
| Authors | Generated by qmathe |
|---|---|
| Declared in | ETSocket.h |
Overview
The socket is opened when the object is created, and closed when it is destroyed.
Default
- + (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.