Synergy Home Page

au.edu.swin.synergy.plugin.server
Class BSocketObjectPipe

java.lang.Object
  |
  +--au.edu.swin.synergy.plugin.server.BSocketObjectPipe

public class BSocketObjectPipe
extends Object

A pipe which uses a socket to pass BCommandEvents over the network

Requirement/analysis/design Reference:
Tristans Book
See Also:
BServer

Constructor Summary
BSocketObjectPipe(Socket fSocket, boolean isServer, Vector filters)
          Please complete the missing tags for BSocketObjectPipe
 
Method Summary
 BCommandEvent doNetDataRead()
          Reads the next object from the input stream.
 void doNetDataSend(BCommandEvent data)
          Sends the given BNetData object to the connected host.
 void doPortClose()
          Closes this port so that anyone waiting on a read will be notified that it is no longer in use.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BSocketObjectPipe

public BSocketObjectPipe(Socket fSocket,
                         boolean isServer,
                         Vector filters)
Please complete the missing tags for BSocketObjectPipe
Parameters:
-  
Throws:
-  
Method Detail

doNetDataSend

public void doNetDataSend(BCommandEvent data)
                   throws IOException
Sends the given BNetData object to the connected host.
Parameters:
data - The data to send

doPortClose

public void doPortClose()
Closes this port so that anyone waiting on a read will be notified that it is no longer in use.

doNetDataRead

public BCommandEvent doNetDataRead()
                            throws IOException
Reads the next object from the input stream. If the object sent is not a BNetData object, this method will return null
Returns:
The BNetData object sent from the host

Synergy Home Page