JDDownloadManager Class Reference
Handles downloading of maintenance info.
More...
List of all members.
Detailed Description
Handles downloading of maintenance info.
Member Function Documentation
Closes the input and output streams for this. Should be done, sometimes necessary to avoid errors.
- (JDDownloadBlock) connectAndRecv: |
|
(NSString *) |
addr |
atPort: |
|
(unsigned long) |
portNo | |
|
|
| | |
connects to the server using the given address and port number and initializes the connection. Receives first message
- Parameters:
-
| addr | Address to go to e.g. 127.0.0.1, etc |
| portNo | number of the port to talk to |
- Returns:
- Download block on success, NULL on failure
- (BOOL) connectTo: |
|
(NSString *) |
addr |
atPort: |
|
(unsigned long) |
portNo | |
|
|
| | |
connects to the server using the given address and port number and initializes the connection.
- Parameters:
-
| addr | Address to go to e.g. 127.0.0.1, etc |
| portNo | number of the port to talk to |
- Returns:
- TRUE
Receive a response block from the server. This polls and blocks until complete.
- Returns:
- block response sent from the server, null if connection error
- (NSString *) recvResponse |
|
|
|
|
Receive a response from the server. This polls and blocks until complete. Depricated not for use.
- Returns:
- String of the response sent from the server, null if connection error
- (BOOL) sendOption: |
|
(NSString *) |
option |
|
|
Send an option to the server to select a response (e.g. 1 for fuel-level). This polls and blocks until complete. Depricated don't use.
- Parameters:
-
| option | The option to send e.g. 1 for fuel-level (if that's how defined) |
| true | if sent false if not sent |
The documentation for this class was generated from the following files: