The methods defined in the Connection class are summarized in the following table.
| Method | Description |
|---|---|
| close | Closes a connection to a remote application and then returns |
| closeAsynch | Closes a connection to a remote application and returns immediately |
| getMaxMessageSize | Gets the maximum message size that can be sent or received at one time |
| getNextSessionId | Returns a string of the encrypted version of the Web session identifier |
| listen | Listens for an external application to connect to JADE and returns when a connection is established |
| listenAsynch | Listens for an external application to connect to JADE |
| listenContinuous | Waits for an external application to connect to its port and returns the new connection on a new instance of the Connection class while the original instance is still available for listening on subsequent calls |
| listenContinuousAsynch | Waits for remote applications to connect to its port and returns immediately |
| open | Establishes a connection to a remote application and returns when established |
| openAsynch | Establishes a connection to a remote application and returns immediately |
| openPipeCallback | Initiates an asynchronous read of the opened pipe |
| readBinary | Reads binary data from the connection and returns when the data has been read or when a block of data is received |
| readBinaryAsynch | Reads binary data from the connection and returns immediately |
| readPipeCallback | Performs Web session evaluation processing |
| readUntil | Reads data from the connection and returns when the specified delimiter is found in the data stream |
| readUntilAsynch | Reads data from the connection until the specified delimiter is found in the data stream and returns immediately |
| sendReply | Sends the formatted HyperText Markup Language (HTML) page to the opened pipe |
| writeBinary | Writes binary data to the connection and returns when the operation is complete |
| writeBinaryAsynch | Writes binary data to the connection and returns immediately |