SRClientTransport Protocol Reference
| Conforms to | NSObject |
| Declared in | SRClientTransport.h |
Tasks
-
– start:withData:continueWith:Opens a connection to the server for the active transport
required method -
– send:withData:continueWith:Sends data to the server for the active transport
required method -
– stop:Stops the active transport from receiving data from the server
required method
Instance Methods
send:withData:continueWith:
Sends data to the server for the active transport
- (void)send:(SRConnection *)connection withData:(NSString *)data continueWith:(void ( ^ ) ( id response ))blockParameters
- connection
the
SRConnectionto send the message on
- data
the data to send the server
- block
the block to be called once send finishes, block may be nil
Declared In
SRClientTransport.hstart:withData:continueWith:
Opens a connection to the server for the active transport
- (void)start:(SRConnection *)connection withData:(NSString *)data continueWith:(void ( ^ ) ( id ))blockParameters
- connection
the
SRConnectionto start the transport on
- data
the data to send when starting the transport on, may be nil
- block
the block to be called once start finishes, block may be nil
Declared In
SRClientTransport.hstop:
Stops the active transport from receiving data from the server
- (void)stop:(SRConnection *)connectionParameters
- connection
the
SRConnectionowning the transport that should be stopped
Declared In
SRClientTransport.h