Package etch.util.core.nio

Examples of etch.util.core.nio.Tcp2Connection.localAddress()


    assertNull( dh.xsender );
    assertNull( dh.xbuf );
   
//    c.flush();
    assertNotNull( c.remoteAddress() );
    assertNotNull( c.localAddress() );
    assertEquals( c.remoteAddress(), t.socket().getLocalSocketAddress() );
    assertEquals( c.localAddress(), t.socket().getRemoteSocketAddress() );
   
    t.close();
   
View Full Code Here


   
//    c.flush();
    assertNotNull( c.remoteAddress() );
    assertNotNull( c.localAddress() );
    assertEquals( c.remoteAddress(), t.socket().getLocalSocketAddress() );
    assertEquals( c.localAddress(), t.socket().getRemoteSocketAddress() );
   
    t.close();
   
    assertWhat( What.DOWN, dh.what );
    assertNull( dh.xsender );
View Full Code Here

        "t.remote", t.socket().getRemoteSocketAddress() );
     
      assertWhat( What.UP, dh.what );
     
      assertEquals( t.socket().getLocalSocketAddress(), c.remoteAddress() );
      assertEquals( t.socket().getRemoteSocketAddress(), c.localAddress() );
     
      write( t, i );
      assertWhat( What.DATA, dh.what );
      assertNull( dh.xsender );
      assertNotNull( dh.xbuf );
View Full Code Here

     
      assertWhat( What.UP, dh.what );
//      Log.report( "up", "c.local", c.localAddress(), "c.remote", c.remoteAddress() );
     
      assertEquals( t.socket().getLocalSocketAddress(), c.remoteAddress() );
      assertEquals( t.socket().getRemoteSocketAddress(), c.localAddress() );
     
      write( t, i );
      assertWhat( What.DATA, dh.what );
      assertNull( dh.xsender );
      assertNotNull( dh.xbuf );
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.