RSE
Release 1.0

org.eclipse.rse.core.comm
Interface ISystemCommunicationsDaemonHandler


public interface ISystemCommunicationsDaemonHandler

This interface allows any class to use the RSE communications daemon to accept socket requests from a remote function. When a the RSE communications daemon accepts a socket request it reads the first 4 bytes, converts this to an integer and compares the integer against all registered ISystemCommunicationDaemonListeners, handing the socket off to the first match.


Method Summary
 void handleRequest(Socket socket, int requestKey)
          The handleRequest method is invoked by the RSE communications daemon when a new socket connection is established and the requestKey matches for this handler.
 

Method Detail

handleRequest

public void handleRequest(Socket socket,
                          int requestKey)
The handleRequest method is invoked by the RSE communications daemon when a new socket connection is established and the requestKey matches for this handler. The handleRequest method will be invoked on a new thread.

It is the implementors responsability to close the socket and clean up all associated resources (like the InputStream) when finished.

Parameters:
socket - The communications socket connected to the remote peer. The only thing read of the socket will have been the request key.

RSE
Release 1.0

Copyright (c) IBM Corporation and others 2000, 2006. All Rights Reserved.