com.jbase.jremote.io
Class JbaseSocketConnection
java.lang.Object
com.jbase.jremote.io.JbaseSocketConnection
public class JbaseSocketConnection
- extends 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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JbaseSocketConnection
public JbaseSocketConnection(String host,
int port)
throws IOException
Construct and connect to a jBASE host.
- Parameters:
host
- port
-
- Throws:
IOException
connect
protected void connect(String host,
int port)
throws UnknownHostException,
IOException
- Throws:
UnknownHostException
IOException
write
public void write(JbaseMsg msg)
throws IOException
- Throws:
IOException
close
public void close()
throws IOException
- Throws:
IOException
read
public void read(JbaseMsg msg)
throws IOException
- Throws:
IOException
getRemoteSocketAddress
public SocketAddress getRemoteSocketAddress()
Copyright © 2016 TEMENOS. All Rights Reserved.