Class ProtocolStackServer

To connect to a LayGO RPC server:

ProtocolStackServer server = new ProtocolStackServer();

try
{
    /* Connect to local RPC server */
    server.connect();
}
catch (ProtocolStackException ex)
{
    /* Try another server or exit */
}

After all processing with the server is complete:

try
{
    server.disconnect();
}
catch (ProtocolStackException ex)
{
    String text = "Failure disconnecting RPC server: " +
                            ex.toString();

    System.err.println(text);
}