this.trafficClassSet = setTrafficClass(sock);
this.trafficClassSet = setTrafficClass(socket);
/** * Configures the socket for use * * @param sock * @throws SocketException, IllegalArgumentException if setting the options * on the socket failed. */ protected void initialiseSocket(Socket sock) throws SocketException, IllegalArgumentException { if (socketOptions != null) { IntrospectionSupport.setProperties(socket, socketOptions); } try { sock.setReceiveBufferSize(socketBufferSize); sock.setSendBufferSize(socketBufferSize); } catch (SocketException se) { LOG.warn("Cannot set socket buffer size = " + socketBufferSize); LOG.debug("Cannot set socket buffer size. Reason: " + se, se); } sock.setSoTimeout(soTimeout); if (keepAlive != null) { sock.setKeepAlive(keepAlive.booleanValue()); } if (tcpNoDelay != null) { sock.setTcpNoDelay(tcpNoDelay.booleanValue()); } if (!this.trafficClassSet) { this.trafficClassSet = setTrafficClass(sock); } }
this.trafficClassSet = setTrafficClass(sock);
this.trafficClassSet = setTrafficClass(socket);
this.trafficClassSet = setTrafficClass(sock);
this.trafficClassSet = setTrafficClass(socket);
this.trafficClassSet = setTrafficClass(sock);
this.trafficClassSet = setTrafficClass(socket);
this.trafficClassSet = setTrafficClass(socket);