public UDPListener(Connection conn, UDPProtocolHandler handler) throws IOException, GeneralSecurityException { this.conn = conn; this.handler = handler; try { ds = new DatagramSocket(conn.getBindPoint()); } catch (BindException e) { throw new IOException("Cannot start UDP listener on "+conn.getBindPoint().getHostName()+":"+conn.getBindPoint().getPort(),e); } conn.setReceiveBufferSize(ds); conn.getDevice().execute(new Runnable(){ @Override public void run() { listen(); } }); }
public UDPListener(Connection conn, UDPProtocolHandler handler) throws IOException, GeneralSecurityException { this.conn = conn; this.handler = handler; try { ds = new DatagramSocket(conn.getBindPoint()); } catch (BindException e) { throw new IOException("Cannot start UDP listener on "+conn.getBindPoint().getHostName()+":"+conn.getBindPoint().getPort(),e); } conn.setReceiveBufferSize(ds); conn.getDevice().execute(new Runnable(){ @Override public void run() { listen(); } }); }
public TCPListener(Connection conn, TCPProtocolHandler handler) throws IOException, GeneralSecurityException { try { this.conn = conn; this.handler = handler; ss = conn.isTls() ? createTLSServerSocket(conn) : new ServerSocket(); conn.setReceiveBufferSize(ss); ss.bind(conn.getBindPoint(), conn.getBacklog()); conn.getDevice().execute(new Runnable(){ @Override public void run() { listen(); } }); } catch (IOException e) { throw new IOException("Unable to start TCPListener on "+conn.getHostname()+":"+conn.getPort(), e); } }
public TCPListener(Connection conn, TCPProtocolHandler handler) throws IOException, GeneralSecurityException { try { this.conn = conn; this.handler = handler; ss = conn.isTls() ? createTLSServerSocket(conn) : new ServerSocket(); conn.setReceiveBufferSize(ss); ss.bind(conn.getBindPoint(), conn.getBacklog()); conn.getDevice().execute(new Runnable(){ @Override public void run() { listen(); } }); } catch (IOException e) { throw new IOException("Unable to start TCPListener on "+conn.getHostname()+":"+conn.getPort(), e); } }
conn.setSendBufferSize(LdapUtils.intValue(attrs.get("dcmTCPSendBufferSize"), Connection.DEF_BUFFERSIZE)); conn.setReceiveBufferSize(LdapUtils.intValue(attrs.get("dcmTCPReceiveBufferSize"), Connection.DEF_BUFFERSIZE)); conn.setTcpNoDelay(LdapUtils.booleanValue(attrs.get("dcmTCPNoDelay"), true));
conn.setSendBufferSize(LdapUtils.intValue(attrs.get("dcmTCPSendBufferSize"), Connection.DEF_BUFFERSIZE)); conn.setReceiveBufferSize(LdapUtils.intValue(attrs.get("dcmTCPReceiveBufferSize"), Connection.DEF_BUFFERSIZE)); conn.setTcpNoDelay(LdapUtils.booleanValue(attrs.get("dcmTCPNoDelay"), true));
try { s.bind(bindPoint); setReceiveBufferSize(s); setSocketSendOptions(s); String remoteProxy = remoteConn.getHttpProxy();
try { s.bind(bindPoint); setReceiveBufferSize(s); setSocketSendOptions(s); String remoteProxy = remoteConn.getHttpProxy();
Connection.DEF_SOCKETDELAY)); conn.setSendBufferSize(getIntOption(cl, "sosnd-buffer", 0)); conn.setReceiveBufferSize(getIntOption(cl, "sorcv-buffer", 0)); conn.setTcpNoDelay(!cl.hasOption("tcp-delay")); configureTLS(conn, cl);
Connection.DEF_SOCKETDELAY)); conn.setSendBufferSize(getIntOption(cl, "sosnd-buffer", 0)); conn.setReceiveBufferSize(getIntOption(cl, "sorcv-buffer", 0)); conn.setTcpNoDelay(!cl.hasOption("tcp-delay")); configureTLS(conn, cl);
setSocketCloseDelay(from.socketCloseDelay); setSendBufferSize(from.sendBufferSize); setReceiveBufferSize(from.receiveBufferSize); setSendPDULength(from.sendPDULength); setReceivePDULength(from.receivePDULength);
setSocketCloseDelay(from.socketCloseDelay); setSendBufferSize(from.sendBufferSize); setReceiveBufferSize(from.receiveBufferSize); setSendPDULength(from.sendPDULength); setReceivePDULength(from.receivePDULength);
break; case "dcmTCPReceiveBufferSize": conn.setReceiveBufferSize(reader.intValue()); break; case "dcmTCPNoDelay":
break; case "dcmTCPReceiveBufferSize": conn.setReceiveBufferSize(reader.intValue()); break; case "dcmTCPNoDelay":