All Packages Class Hierarchy This Package Previous Next Index
Class edu.cmu.owl.ui.threeD.transport.ThreeDTransportServer
edu.cmu.owl.ui.threeD.transport.ThreeDTransportServer
- public class ThreeDTransportServer
This class is the front end to the ThreeDTransport subsystem.
This class differs according to the implementation.
On the Java 1.1 implementation, this class creates a socket and
sets up any necessary threads to listen or serve the socket.
On the Java 1.02 implementation, this class connects to a socket
server (implemented on the 1.1 side)
This is the 1.1 implementation
- Version:
- 1.0
-
ThreeDTransportServer(ReceivedListener, int)
- This constructor instantiates the Transport.
-
sendEvent(ThreeDEvent)
- This method sends a message across the event channel
ThreeDTransportServer
public ThreeDTransportServer(ReceivedListener listener,
int port) throws IOException
- This constructor instantiates the Transport.
This involves Opening a socket on the specified port and waiting for the ThreeDTransport
client to connect. After that it should set up the server and prepare to listen and
send events.
- Parameters:
- listener - the ReceivedListener implementation (by the client)
- hostname - the hostname to which to connect
- port - the port on which to connect
- Throws: IOException
- if any such exception occurs
- Throws: UnknownHostException
- if any such exception occurs
sendEvent
public void sendEvent(ThreeDEvent event) throws IOException
- This method sends a message across the event channel
- Parameters:
- the - event which is to be sent
- Throws: IOException
- if any such exception occurs
All Packages Class Hierarchy This Package Previous Next Index