|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--solar.service.transport.TcpTransport
|
+--solar.service.transport.TcpObjectTransport
The TCP transport layer using object serialization.
| Field Summary |
| Fields inherited from class solar.service.transport.TcpTransport |
_aduFactory, _flows, _hostname, _laddr, _listeners, _log, _port, _server, _ssock |
| Constructor Summary | |
TcpObjectTransport()
|
|
TcpObjectTransport(int port)
|
|
TcpObjectTransport(java.lang.String hostname,
int port)
|
|
| Method Summary | |
protected TcpConnection |
makeTcpConnection(java.net.Socket socket,
SocketAddress peer)
Create a TcpConenction based on the socket and peer address. |
void |
send(Adu adu,
Address dest)
Send the adu over transport to destination. |
void |
send(Adu adu,
Address dest,
Id multiplex)
Send the adu over transport to destination, with a multipex ID. |
void |
send(byte[] data,
Address dest)
Send an data unit to destination address. |
void |
send(byte[] data,
Address dest,
Id multiplex)
Send an data unit to destination address with a multiplexer. |
| Methods inherited from class solar.service.transport.TcpTransport |
addConnection, addTransportListener, clearConnections, getAddressByKey, getAduFactory, getConnection, getLocalAddress, getLogger, getPort, notifyConnectionClosed, notifyConnectionOpened, notifyDataReceived, openConnection, removeConnection, removeTransportListener, run, setAduFactory, stop |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public TcpObjectTransport()
throws java.lang.Exception
public TcpObjectTransport(int port)
throws java.lang.Exception
public TcpObjectTransport(java.lang.String hostname,
int port)
throws java.lang.Exception
| Method Detail |
protected TcpConnection makeTcpConnection(java.net.Socket socket,
SocketAddress peer)
throws java.lang.Exception
TcpTransport
makeTcpConnection in class TcpTransportjava.lang.Exception
public void send(byte[] data,
Address dest)
throws TransportException
Transport
send in interface Transportsend in class TcpTransportTransportException
public void send(byte[] data,
Address dest,
Id multiplex)
throws TransportException
Transport
send in interface Transportsend in class TcpTransportTransportException
public void send(Adu adu,
Address dest)
throws TransportException
Transport
send in interface Transportsend in class TcpTransportTransportException
public void send(Adu adu,
Address dest,
Id multiplex)
throws TransportException
Transport
send in interface Transportsend in class TcpTransportTransportException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||