Package org.jwebsocket.tcp.connectors

Examples of org.jwebsocket.tcp.connectors.TCPConnector


              if (lSessionTimeout > 0) {
                lClientSocket.setSoTimeout(lSessionTimeout);
              }
              // create connector and pass header
              // log.debug("Instantiating connector...");
              WebSocketConnector lConnector = new TCPConnector(mEngine, lClientSocket);
              // log.debug("Setting header to engine...");
              lConnector.setHeader(lHeader);
              // log.debug("Adding connector to engine...");
              getConnectors().put(lConnector.getId(), lConnector);
              if (mLog.isDebugEnabled()) {
                mLog.debug("Starting connector...");
              }
              lConnector.startConnector();
            } else {
              // if header could not be parsed properly
              // immediately disconnect the client.
              lClientSocket.close();
            }
View Full Code Here

TOP

Related Classes of org.jwebsocket.tcp.connectors.TCPConnector

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.