Mfp.constructor

Description

The constructor establishes a connection to the Message Feed server.

To avoid memory leaks, the Mfp object must be disconnected from the Message Feed server, using the method close, before being finalized.

Class

core.mfp.Mfp

Method

constructor

Syntax

public Mfp(String host, String service, int timeout) throws Exception, MfpException

Parameters

Error handling

Mfp.constructor throws an Exception when system resources are exhausted, or an MfpException in when the connection to the Message Feed server fails.

Use the MfpException.toString method to get a textual description of the exception.

Example

Related topics

Mfp.close

MfpException.toString