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 ))block
Parameters
- connection
the
SRConnection
to 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.h
start:withData:continueWith:
Opens a connection to the server for the active transport
- (void)start:(SRConnection *)connection withData:(NSString *)data continueWith:(void ( ^ ) ( id ))block
Parameters
- connection
the
SRConnection
to 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.h
stop:
Stops the active transport from receiving data from the server
- (void)stop:(SRConnection *)connection
Parameters
- connection
the
SRConnection
owning the transport that should be stopped
Declared In
SRClientTransport.h