All Packages Class Hierarchy This Package Previous Next Index
Class edu.cmu.owl.ui.threeD.transport.ThreeDTransportClient
edu.cmu.owl.ui.threeD.transport.ThreeDTransportClient
- public class ThreeDTransportClient
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.02 implementation
- Version:
- 1.0
-
ThreeDTransportClient(ReceivedListener, String, int)
- This constructor instantiates the Transport.
-
sendEvent(ThreeDEvent)
- This method sends a message across the event channel
ThreeDTransportClient
public ThreeDTransportClient(ReceivedListener listener,
String hostname,
int port) throws UnknownHostException, IOException
- This constructor instantiates the Transport.
This involves connecting to the Java 1.1 server and preparing 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