Package org.cipango.server.bio

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


  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

TOP

Related Classes of org.cipango.server.bio.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.