de.mud.jta.plugin
Class Socket
- FilterPlugin, PluginListener, SocketListener
The socket plugin acts as the data source for networked operations.
Maintainer: Matthias L. Jugel
$Id: Socket.java 499 2005-09-29 08:24:54Z leo $- Matthias L. Jugel, Marcus Mei???ner
in
protected InputStream in
out
protected OutputStream out
relay
protected String relay
relayPort
protected int relayPort
socket
protected java.net.Socket socket
Socket
public Socket(PluginBus bus,
String id)
Create a new socket plugin.
connect
public void connect(String host,
int port)
throws IOException
Connect to the host and port passed. If the multi relayd (mrelayd) is
used to allow connections to any host and the Socket.relay property
is configured this method will connect to the relay first, send
off the string "relay host port\n" and then the real connection will
be published to be online.
- connect in interface SocketListener
disconnect
public void disconnect()
throws IOException
Disconnect the socket and close the connection.
- disconnect in interface SocketListener