Package tahrir.io.net.TrNetworkInterface

Examples of tahrir.io.net.TrNetworkInterface.TrMessageListener


    i2 = new UdpNetworkInterface(conf2, kp2);

    final UdpNetworkLocation ra1 = new UdpNetworkLocation(InetAddress.getByName("127.0.0.1"), conf1.listenPort);
    final UdpNetworkLocation ra2 = new UdpNetworkLocation(InetAddress.getByName("127.0.0.1"), conf2.listenPort);

    final TrMessageListener noopListener = new TrMessageListener() {

      public void received(final TrNetworkInterface iFace, final PhysicalNetworkLocation sender,
                 final ByteArraySegment message) {
      }

    };

    listener = new TrMessageListener() {

      public void received(final TrNetworkInterface iFace, final PhysicalNetworkLocation sender,
                 final ByteArraySegment message) {
        Assert.assertEquals(message, sentMessage);
        receivedSuccessfully.called = true;
View Full Code Here

TOP

Related Classes of tahrir.io.net.TrNetworkInterface.TrMessageListener

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.