com.jbase.jremote.io
Class JbaseSocketConnection
java.lang.Object
com.jbase.jremote.io.JbaseSocketConnection
public class JbaseSocketConnection
- extends java.lang.Object
This class handles the connection and communication to
a jBASE server over a socket interface using the JbaseMsg
protocol. see also JbaseMsg.
- Author:
- aphethean
Constructor Summary |
JbaseSocketConnection(java.lang.String host,
int port)
Construct and connect to a jBASE host. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JbaseSocketConnection
public JbaseSocketConnection(java.lang.String host,
int port)
throws java.io.IOException
Construct and connect to a jBASE host.
- Parameters:
host
- port
-
- Throws:
java.io.IOException
connect
protected void connect(java.lang.String host,
int port)
throws java.net.UnknownHostException,
java.io.IOException
- Throws:
java.net.UnknownHostException
java.io.IOException
write
public void write(JbaseMsg msg)
throws java.io.IOException
- Throws:
java.io.IOException
close
public void close()
throws java.io.IOException
- Throws:
java.io.IOException
read
public void read(JbaseMsg msg)
throws java.io.IOException
- Throws:
java.io.IOException
getRemoteSocketAddress
public java.net.SocketAddress getRemoteSocketAddress()
Copyright © 2010 TEMENOS. All Rights Reserved.