/** * Accepts new connections on underlying ServerSocket, replacing * any existing socket with the new one, blocking until a connection * is available. See {@link DualTransportConnector} for a method of * connecting two <code>TransportLayer</code>s in a way that avoids deadlock. * * @see ca.uhn.hl7v2.protocol.StreamSource#connect() */ public void connect() throws TransportException { Acceptor a = new Acceptor(myServerSocket, myExpectedAddress); mySocket = a.waitForSocket(); }
/** * Accepts new connections on underlying ServerSocket, replacing * any existing socket with the new one, blocking until a connection * is available. See {@link DualTransportConnector} for a method of * connecting two <code>TransportLayer</code>s in a way that avoids deadlock. * * @see ca.uhn.hl7v2.protocol.StreamSource#connect() */ public void connect() throws TransportException { Acceptor a = new Acceptor(myServerSocket, myExpectedAddress); mySocket = a.waitForSocket(); }