Package net.sourceforge.peers.nat.api

Examples of net.sourceforge.peers.nat.api.TCPTransport


        super(myId, dataReceiver);
    }

    @Override
    public TCPTransport createTCPTransport(String peerId) {
        return new TCPTransport() {
            public void sendData(byte[] data) {
            }
        };
    }
View Full Code Here


        transport.sendData("hello world".getBytes());
    }

    @Test
    public void testCreateTCPTransport() {
        TCPTransport transport = peersClient.createTCPTransport("bob@biloxi.com");
        transport.sendData("hello world".getBytes());
    }
View Full Code Here

TOP

Related Classes of net.sourceforge.peers.nat.api.TCPTransport

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.