Examples of TCPConnector


Examples of Extasys.Network.TCP.Client.Connectors.TCPConnector

     * bytes.
     * @return the connector.
     */
    public TCPConnector AddConnector(String name, InetAddress serverIP, int serverPort, int readBufferSize)
    {
        TCPConnector connector = new TCPConnector(this, name, serverIP, serverPort, readBufferSize);
        fConnectors.add(connector);
        return connector;
    }
View Full Code Here

Examples of Extasys.Network.TCP.Client.Connectors.TCPConnector

     * @param ETX is the End of Text character.
     * @return the connector.
     */
    public TCPConnector AddConnector(String name, InetAddress serverIP, int serverPort, int readBufferSize, char ETX)
    {
        TCPConnector connector = new TCPConnector(this, name, serverIP, serverPort, readBufferSize, ETX);
        fConnectors.add(connector);
        return connector;
    }
View Full Code Here

Examples of Extasys.Network.TCP.Client.Connectors.TCPConnector

     * @param splitter is the message splitter.
     * @return the connector.
     */
    public TCPConnector AddConnector(String name, InetAddress serverIP, int serverPort, int readBufferSize, String splitter)
    {
        TCPConnector connector = new TCPConnector(this, name, serverIP, serverPort, readBufferSize, splitter);
        fConnectors.add(connector);
        return connector;
    }
View Full Code Here

Examples of org.cipango.server.bio.TcpConnector

  public static void main(String[] args) throws Exception
    {
    Server server = new Server();
   
    UdpConnector udp = new UdpConnector();
    TcpConnector tcp = new TcpConnector();
   
    int port = Integer.getInteger("cipango.port", 5060);
    udp.setPort(port);
    tcp.setPort(port);
   
    server.getConnectorManager().setConnectors(new SipConnector[] { udp, tcp });
   
    SipAppContext sipapp = new SipAppContext();
    sipapp.setContextPath("/");
View Full Code Here

Examples of org.cipango.server.bio.TcpConnector

  public SipConnector[] createDefaultSipConnectors(String host, String portnum) throws Exception
  {
    AbstractSipConnector[] sipConnectors = new AbstractSipConnector[2];
    int port = ((portnum==null||portnum.equals(""))?DEFAULT_SIP_PORT:Integer.parseInt(portnum.trim()));
    sipConnectors[0] = new UdpConnector();
    sipConnectors[1] = new TcpConnector();
    if (host != null && !host.trim().equals(""))
    {
      sipConnectors[0].setHost(host);
      sipConnectors[1].setHost(host);
    }
View Full Code Here

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

Examples of org.openhab.binding.dscalarm.internal.connector.TCPConnector

        }
        break;
        case TCP:
            if(StringUtils.isNotBlank(apiIP) ) {
          if(dscAlarmConnector == null) {
            dscAlarmConnector = new TCPConnector(apiIP, DEFAULT_TCP_PORT, CONNECTION_TIMEOUT);
          }
            }
            else {
              logger.error("open(): Unable to Make API TCP Connection!");
              connected = false;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.