net.anotheria.net.tcp.client.object2object
Class O2OClientConnection
java.lang.Object
net.anotheria.net.shared.server.AbstractConnection
net.anotheria.net.tcp.client.object2object.O2OClientConnection
- All Implemented Interfaces:
- IConnection
public class O2OClientConnection
- extends AbstractConnection
A connection which is capable of sending objects. Client side.
- Author:
- lrosenberg
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
O2OClientConnection
public O2OClientConnection(String aHost,
int aPort)
connect
public O2OClientConnection connect()
throws UnknownHostException,
IOException
- Throws:
UnknownHostException
IOException
open
public void open()
- Description copied from interface:
IConnection
- Opens a connection.
- Specified by:
open in interface IConnection- Overrides:
open in class AbstractConnection
close
public void close()
- Description copied from interface:
IConnection
- Closes a conection.
- Specified by:
close in interface IConnection- Overrides:
close in class AbstractConnection
createConnection
public static O2OClientConnection createConnection(String host,
int port)
throws UnknownHostException,
IOException
- Throws:
UnknownHostException
IOException
sendObjectAndReturnResult
public Object sendObjectAndReturnResult(Object toSend)
throws IOException,
ClassNotFoundException
- Throws:
IOException
ClassNotFoundException
Copyright © 2010-2013 anotheria.net. All Rights Reserved.