Establishes a connection to the Message Feed server.
The function returns a handle of type record MFP.Handle
for the connection. This handle must be freed using the MFP.Disconnect
statement.
MFP.Connect(host, service, timeout)
host
– The name of the TCP/IP host on which the Message Feed server is located.service
– The name of the TCP/IP service to which the Message Feed server listens.timeout
– The timeout, in seconds, being used for socket access to the Message Feed server.When an error occurs, the function throws an exception of type MFP.$Exception
and sets the $Error
reserved variable to the following value:
MFP.$Error_ErrorConnectConnectfail
– The connection to the Message Feed server failed.
INCLUDE "mfp.s4h"; ... DELCARE $hMFP RECORD MFP.Handle; $hMFP = MFP.Connect("localhost", "12345", 60); ... MFP.Disconnect$hMFP; ... |