‣ StartMitMServer ( arg ) | ( function ) |
Start the MitM SCSCP Server
‣ MitM_SCSCPHandler ( arg ) | ( function ) |
Handle an SCSCP connection
‣ StreamToMitMServer ( arg ) | ( function ) |
Connect to an MitM server, and return a stream
‣ SendObjToMitMServer ( arg ) | ( function ) |
Send a GAP object to an MitM server, via a stream
‣ MitM_ReadSCSCP ( stream ) | ( function ) |
Returns: a record
Attempts to read a single OpenMath object from an input stream. The object should be enclosed in and tags. As output, this function returns a record containing some of the following components, which describe the outcome of the conversion attempt:
success
: a boolean describing whether the request was successfully received by the server;
result
: body of the information sent by the server (only if success = true
);
error
: human-readable string saying what went wrong (only if success = false
).
‣ MitM_ReadToPI ( stream ) | ( function ) |
Returns: a record
Reads a stream up to and including an XML processing instruction (PI). Returns a record with the following components:
success
. a bool indicating whether an instruction was found;
pre
, a string containing the content read before the PI;
pi
, the contents of the PI, excluding "";
error
, a string saying what went wrong, if anything.
‣ MitM_SCSCPServerHandshake ( in_stream, out_stream ) | ( function ) |
Returns: a string or fail
Accepts an SCSCP connection from a client, by receiving messages from the client using in_stream and sending messages to the client via out_stream. Returns a string containing the version number if the connection was initiated successfully, and fail
otherwise. This handshaking protocol is described in Section 5.1 of the SCSCP specification version 1.3
‣ MitM_SCSCPClientHandshake ( in_stream, out_stream ) | ( function ) |
Returns: a boolean
Initiates an SCSCP connection with a server, by receiving messages from the server using in_stream and sending messages to the server via out_stream. Returns true
if the connection was initiated successfully, and false
otherwise. This handshaking protocol is described in Section 5.1 of the SCSCP specification version 1.3
‣ ListeningTCPSocket ( arg ) | ( function ) |
Creates a listening TCP socket
‣ StartTCPServer ( arg ) | ( function ) |
Start a TCP server
‣ ConnectInputOutputTCPStream ( arg ) | ( function ) |
Connects to a remote TCP server and returns an InputOutputTCPStream or fail
‣ AcceptInputOutputTCPStream ( arg ) | ( function ) |
Accepts a connection on a listening TCP socket and returns an InputOutputTCPStream or fail
‣ IsInputOutputTCPStream ( arg ) | ( filter ) |
Returns: true
or false
Printable version of an IP address IsInputOutputTCPStream
(???) is a subcategory of IsInputOutputStream
(Reference: IsInputOutputStream). Streams in the category IsInputOutputTCPStream
(???) are created with the help of the function InputOutputTCPStream
(???) with one or two arguments dependently on whether they will be used in the client or server mode. Examples of their creation and usage will be given in subsequent sections.
‣ IsInputOutputTCPStreamRep ( arg ) | ( filter ) |
Returns: true
or false
This is the representation used for streams in the category IsInputOutputTCPStream
(???).
generated by GAPDoc2HTML