| 
 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
  |
  +--de.mud.jta.Plugin
        |
        +--de.mud.jta.plugin.Socket
The socket plugin acts as the data source for networked operations.
Maintainer: Matthias L. Jugel
| Field Summary | |
| protected  java.io.InputStream | in | 
| protected  java.io.OutputStream | out | 
| protected  java.lang.String | relay | 
| protected  int | relayPort | 
| protected  java.net.Socket | socket | 
| Fields inherited from class de.mud.jta.Plugin | 
| bus, id | 
| Constructor Summary | |
| Socket(PluginBus bus,
       java.lang.String id)Create a new socket plugin. | |
| Method Summary | |
|  void | connect(java.lang.String host,
        int port)Connect to the host and port passed. | 
|  void | disconnect()Disconnect the socket and close the connection. | 
|  FilterPlugin | getFilterSource() | 
|  int | read(byte[] b)Read a block of data from the back end. | 
|  void | setFilterSource(FilterPlugin plugin)Set the source plugin where we get our data from and where the data sink (write) is. | 
|  void | write(byte[] b)Write a block of data to the back end. | 
| Methods inherited from class de.mud.jta.Plugin | 
| error, getId | 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
protected java.net.Socket socket
protected java.io.InputStream in
protected java.io.OutputStream out
protected java.lang.String relay
protected int relayPort
| Constructor Detail | 
public Socket(PluginBus bus,
              java.lang.String id)
| Method Detail | 
public void connect(java.lang.String host,
                    int port)
             throws java.io.IOException
connect in interface SocketListenerjava.io.IOException
public void disconnect()
                throws java.io.IOException
disconnect in interface SocketListenerjava.io.IOExceptionpublic void setFilterSource(FilterPlugin plugin)
FilterPlugin
setFilterSource in interface FilterPluginplugin - the data sourcepublic FilterPlugin getFilterSource()
getFilterSource in interface FilterPlugin
public int read(byte[] b)
         throws java.io.IOException
FilterPlugin
read in interface FilterPluginb - the buffer to read the data into
java.io.IOException
public void write(byte[] b)
           throws java.io.IOException
FilterPlugin
write in interface FilterPluginb - the buffer to be sent
java.io.IOException| 
 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||