Package org.cspoker.external.pokersource

Examples of org.cspoker.external.pokersource.PokersourceConnection.send()


        @Override
        public void onSelfInPosition(SelfInPosition selfInPosition) {
          super.onSelfInPosition(selfInPosition);
          try {
            conn.send(new Call(serial, game_id));
          } catch (IOException e) {
            throw new IllegalStateException(e);
          }
        }
View Full Code Here


        @Override
        public void onSitOut(SitOut sitOut) {
          super.onSitOut(sitOut);
          if(sitOut.getGame_id()==game_id && sitOut.getSerial() == serial){
            try {
              conn.send(new Sit(serial, game_id));
            } catch (IOException e) {
              throw new IllegalStateException(e);
            }
          }
        }
View Full Code Here

        }

      };
      conn.addListener(listener);

      conn.send(new Login("foobar", "foobar")).await();
      conn.send(new TablePicker(serial, true)).await();
      conn.startPolling(game_id);
      conn.send(new SitOut(serial, game_id));
     
      try {
View Full Code Here

      };
      conn.addListener(listener);

      conn.send(new Login("foobar", "foobar")).await();
      conn.send(new TablePicker(serial, true)).await();
      conn.startPolling(game_id);
      conn.send(new SitOut(serial, game_id));
     
      try {
        Thread.sleep(30000);
View Full Code Here

      conn.addListener(listener);

      conn.send(new Login("foobar", "foobar")).await();
      conn.send(new TablePicker(serial, true)).await();
      conn.startPolling(game_id);
      conn.send(new SitOut(serial, game_id));
     
      try {
        Thread.sleep(30000);
      } catch (InterruptedException e) {
        e.printStackTrace();
View Full Code Here

    try {
      SerialListener serial = new SerialListener();
      TransListener transListener = new TransListener();
      final PokersourceConnection conn = new PokersourceConnection(server);
      conn.addListeners(serial, transListener);
      conn.send(new Login(username, password));
      serialObtained.await();
      conn.removeListeners(serial, transListener);
      return new PSServerContext(conn, serial.getSerial());
    } catch (IOException e) {
      throw new LoginException(e.getMessage());
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.