|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectca.uhn.hl7v2.protocol.impl.SocketStreamSource
ca.uhn.hl7v2.protocol.impl.ServerSocketStreamSource
public class ServerSocketStreamSource
A StreamSource
that gets streams from ServerSockets. This
allows you to communicate over sockets that are established by the remote
party (ie as a TCP/IP server).
Constructor Summary | |
---|---|
ServerSocketStreamSource(java.net.ServerSocket theServerSocket,
java.lang.String theExpectedAddress)
|
Method Summary | |
---|---|
void |
connect()
Accepts new connections on underlying ServerSocket, replacing any existing socket with the new one, blocking until a connection is available. |
java.net.Socket |
getSocket()
|
Methods inherited from class ca.uhn.hl7v2.protocol.impl.SocketStreamSource |
---|
disconnect, getInboundStream, getOutboundStream |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ServerSocketStreamSource(java.net.ServerSocket theServerSocket, java.lang.String theExpectedAddress) throws TransportException
theServerSocket
- a ServerSocket at which to listen for incoming connectionstheExpectedAddress
- the IP address from which to accept connections (null means
accept from any address)
TransportException
Method Detail |
---|
public java.net.Socket getSocket()
getSocket
in class SocketStreamSource
SocketStreamSource.getSocket()
public void connect() throws TransportException
DualTransportConnector
for a method of
connecting two TransportLayer
s in a way that avoids deadlock.
connect
in interface StreamSource
connect
in class SocketStreamSource
TransportException
StreamSource.connect()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |