Package org.cspoker.server.xml.common

Examples of org.cspoker.server.xml.common.XmlServerContext


    return serverContext!=null;
  }

  public void login(LoginAction action) {
    try {
      serverContext = new XmlServerContext(cspokerServer.login(action.getUsername(), action.getPasswordHash()),
          new UniversalServerListener(
              new ServerEventListener(){
                public void onServerEvent(ServerEvent event) {
                  send(event);
                }
View Full Code Here


      state = contexts.getOrCreate(credentials.getLeft(), new IFactory1<Pair<StaticServerContext, Queue<ServerEvent>>, LoginException>(){

        public Pair<StaticServerContext, Queue<ServerEvent>> create() throws LoginException {
          ServerContext serverContext = cspokerServer.login(credentials.getLeft(), credentials.getRight());
          final ConcurrentLinkedQueue<ServerEvent> eventQueue = new ConcurrentLinkedQueue<ServerEvent>();
          StaticServerContext staticServerContext = new XmlServerContext(serverContext,
              new UniversalServerListener(
                  new ServerEventListener(){

                    public void onServerEvent(ServerEvent event) {
                      eventQueue.offer(event);
View Full Code Here

TOP

Related Classes of org.cspoker.server.xml.common.XmlServerContext

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.