void connect() throws IOException, IncompatibleConnectionException, GeneralSecurityException { if (sock == null) { sock = conn.connect(remoteConn); out = sock.getOutputStream(); } }
void connect() throws IOException, IncompatibleConnectionException, GeneralSecurityException { if (sock == null) { sock = conn.connect(remoteConn); out = sock.getOutputStream(); } }
public void open() throws IOException, IncompatibleConnectionException, GeneralSecurityException { sock = conn.connect(remote); sock.setSoTimeout(conn.getResponseTimeout()); mllp = new MLLPConnection(sock); }
public void open() throws IOException, IncompatibleConnectionException, GeneralSecurityException { sock = conn.connect(remote); sock.setSoTimeout(conn.getResponseTimeout()); mllp = new MLLPConnection(sock); }
public void open() throws IOException, IncompatibleConnectionException, GeneralSecurityException { sock = conn.connect(remote); sock.setSoTimeout(conn.getResponseTimeout()); mllp = new MLLPConnection(sock); }
public void open() throws IOException, IncompatibleConnectionException, GeneralSecurityException { sock = conn.connect(remote); sock.setSoTimeout(conn.getResponseTimeout()); mllp = new MLLPConnection(sock); }
public MLLPConnection connect(Connection local, Connection remote) throws IOException, IncompatibleConnectionException, GeneralSecurityException { checkDevice(); checkInstalled(); Socket sock = local.connect(remote); sock.setSoTimeout(local.getResponseTimeout()); return new MLLPConnection(sock); }
public Association connect(Connection local, Connection remote, AAssociateRQ rq) throws IOException, InterruptedException, IncompatibleConnectionException, GeneralSecurityException { checkDevice(); checkInstalled(); if (rq.getCallingAET() == null) rq.setCallingAET(getCallingAETitle(rq.getCalledAET())); rq.setMaxOpsInvoked(local.getMaxOpsInvoked()); rq.setMaxOpsPerformed(local.getMaxOpsPerformed()); rq.setMaxPDULength(local.getReceivePDULength()); Socket sock = local.connect(remote); AssociationMonitor monitor = device.getAssociationMonitor(); Association as = null; try { as = new Association(this, local, sock); as.write(rq); as.waitForLeaving(State.Sta5); if (monitor != null) monitor.onAssociationEstablished(as); return as; } catch (InterruptedException | IOException e) { SafeClose.close(sock); if (as != null && monitor != null) monitor.onAssociationFailed(as, e); throw e; } }
public Association connect(Connection local, Connection remote, AAssociateRQ rq) throws IOException, InterruptedException, IncompatibleConnectionException, GeneralSecurityException { checkDevice(); checkInstalled(); if (rq.getCallingAET() == null) rq.setCallingAET(getCallingAETitle(rq.getCalledAET())); rq.setMaxOpsInvoked(local.getMaxOpsInvoked()); rq.setMaxOpsPerformed(local.getMaxOpsPerformed()); rq.setMaxPDULength(local.getReceivePDULength()); Socket sock = local.connect(remote); AssociationMonitor monitor = device.getAssociationMonitor(); Association as = null; try { as = new Association(this, local, sock); as.write(rq); as.waitForLeaving(State.Sta5); if (monitor != null) monitor.onAssociationEstablished(as); return as; } catch (InterruptedException | IOException e) { SafeClose.close(sock); if (as != null && monitor != null) monitor.onAssociationFailed(as, e); throw e; } }