Package com.peterhi.rudp.Endpoint

Examples of com.peterhi.rudp.Endpoint.Listener


public class ServerApp {

  public static void main(String[] args) throws Exception {
    Endpoint server = new Endpoint(22222);
    server.addListener(new Listener() {
      @Override
      public void received(Event event) {
        String reliableStr = event.isReliable() ? "reliable" : "unreliable";
        String string = new String(event.getData());
        System.out.println("RECEIVED!!!");
View Full Code Here

TOP

Related Classes of com.peterhi.rudp.Endpoint.Listener

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.