jremote jbase5.2.1

com.jbase.jremote.io
Class JbaseSocketConnection

java.lang.Object
  extended by 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.
 
Method Summary
 void close()
           
protected  void connect(java.lang.String host, int port)
           
 java.net.SocketAddress getRemoteSocketAddress()
           
 void read(JbaseMsg msg)
           
 void write(JbaseMsg msg)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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
Method Detail

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()

jremote jbase5.2.1

Copyright © 2010 TEMENOS. All Rights Reserved.