Examples of UdpConnector


Examples of Extasys.Network.UDP.Client.Connectors.UDPConnector

     * @param serverPort is the server's udp port.
     * @return the connector.
     */
    public UDPConnector AddConnector(String name, int readBufferSize, int readTimeOut, InetAddress serverIP, int serverPort)
    {
        UDPConnector connector = new UDPConnector(this, name, readBufferSize, readTimeOut, serverIP, serverPort);
        fConnectors.add(connector);
        return connector;
    }
View Full Code Here

Examples of ch.ethz.inf.vs.elements.UDPConnector

   * @param address the address
   * @param config the configuration
   * @return the connector
   */
  private static Connector createUDPConnector(InetSocketAddress address, NetworkConfig config) {
    UDPConnector c = new UDPConnector(address);
    c.setReceiverThreadCount(config.getInt(NetworkConfigDefaults.UDP_CONNECTOR_RECEIVER_THREAD_COUNT));
    c.setSenderThreadCount(config.getInt(NetworkConfigDefaults.UDP_CONNECTOR_SENDER_THREAD_COUNT));
    c.setReceiveBufferSize(config.getInt(NetworkConfigDefaults.UDP_CONNECTOR_RECEIVE_BUFFER));
    c.setSendBufferSize(config.getInt(NetworkConfigDefaults.UDP_CONNECTOR_SEND_BUFFER));
    c.setLogPackets(config.getBoolean(NetworkConfigDefaults.UDP_CONNECTOR_LOG_PACKETS));
    c.setReceiverPacketSize(config.getInt(NetworkConfigDefaults.UDP_CONNECTOR_DATAGRAM_SIZE));
    return c;
  }
View Full Code Here

Examples of org.cipango.dns.bio.UdpConnector

        addResolver(resolver);
      }
    }
   
    if (_connectors == null || _connectors.length == 0)
      addConnector(new UdpConnector());
   
    if (_searchList.isEmpty())
    {
      sun.net.dns.ResolverConfiguration resolverConfiguration = sun.net.dns.ResolverConfiguration.open();
      for (Object name : resolverConfiguration.searchlist())
View Full Code Here

Examples of org.cipango.lab.UdpConnector

{
  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();
View Full Code Here

Examples of org.cipango.server.bio.UdpConnector

{
  private UdpConnector connector;
 
  protected void doStart() throws Exception
  {
    connector = new UdpConnector();
    connector.setThreadPool(new QueuedThreadPool());
    //connector.setHandler(this);
    connector.start();
  }
View Full Code Here

Examples of org.cipango.server.bio.UdpConnector

 
  public SipClient(int port)
  {
    _server = new Server();
   
    UdpConnector connector = new UdpConnector();
    connector.setPort(port);
   
    _server.getConnectorManager().addConnector(connector);
    _server.setApplicationRouter(new SipClientApplicationRouter());
   
    SipContextHandlerCollection handler = new SipContextHandlerCollection();
View Full Code Here

Examples of org.cipango.server.bio.UdpConnector

 
  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.mule.transport.udp.UdpConnector

        return "udp-namespace-config.xml";
    }

    public void testConfig() throws Exception
    {
        UdpConnector c = (UdpConnector)muleContext.getRegistry().lookupConnector("udpConnector");
        assertNotNull(c);

        assertEquals(1234, c.getReceiveBufferSize());
        assertEquals(2345, c.getTimeout());
        assertEquals(3456, c.getSendBufferSize());
        assertEquals(true, c.isBroadcast());
        assertEquals(false, c.isKeepSendSocketOpen());

        assertTrue(c.isConnected());
        assertTrue(c.isStarted());
    }
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.