Package org.jgroups.util

Examples of org.jgroups.util.DefaultSocketFactory


        }
    }


    public void start() throws Exception {
        srv_sock=Util.createServerSocket(new DefaultSocketFactory(),
                                         "jgroups.tests.perf.TcpTransport.srv_sock", bind_addr, start_port);
        local_addr=new IpAddress(srv_sock.getInetAddress(), srv_sock.getLocalPort());
        System.out.println("-- local address is " + local_addr);
        ct.init();
View Full Code Here


    }


    protected TCPConnectionMap createConnectionMap(InetAddress bind_addr, int port) throws Exception {
        return new TCPConnectionMap("conn", new DefaultThreadFactory("ConnectionMapTest", true, true),
                                    new DefaultSocketFactory(), null, bind_addr, null, 0, port,port);
    }
View Full Code Here

    public void init(String local_addr, String remote_addr, int local_port, int remote_port) throws Exception {
        local=new InetSocketAddress(local_addr, local_port);
        remote=new InetSocketAddress(remote_addr, remote_port);
        destination=new IpAddress(remote.getAddress(), remote.getPort());
        srv_sock=Util.createServerSocket(new DefaultSocketFactory(), "server", local.getAddress(), local.getPort());
        System.out.println("Listening on " + srv_sock.getLocalSocketAddress());
        acceptor=new Acceptor();
        acceptor.start();

        sock=new Socket();
View Full Code Here

TOP

Related Classes of org.jgroups.util.DefaultSocketFactory

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.