Examples of ServerConnection


Examples of chatroom.connection.ServerConnection

    }

    /** Handles incoming TCP sockets */
    @Override
    public void onConnection(SocketChannel channel) throws IOException {
        ServerConnection cnt = new ServerConnection(channel);
        connectionPool.put(cnt.getConnectionId(), cnt);
        ChatroomServer.getServer().addUser(cnt);
        cnt.setDaemon(true);
        cnt.start();
    }
View Full Code Here

Examples of client.Network.ServerConnection

   
    _frame.registerConnectToClientEvent(this);
    _frame.registerSendMsgToClientEvent(this);
   
    // connection to server
    _serverConnection = new ServerConnection();
    _serverConnection.registerSettingsFilledEvent(this);
    _serverConnection.registerReceiveOpenMsgEvent(this);
    _serverConnection.registerServerConnectionEvent(this);
   
      _networkThread = new Thread(_serverConnection);         
View Full Code Here

Examples of com.barrybecker4.game.common.online.server.connection.ServerConnection

     * @return the server connection.
     */
    @Override
    protected IServerConnection createServerConnection() {

        return new ServerConnection(getServerPort());
    }
View Full Code Here

Examples of connection.server.ServerConnection

    updateDownload(download);
  }

  public void updateDownload(FileDownload download)
  {
    ServerConnection serverConnection;
    try
    {
      serverConnection = connectionManager.getConnection();
    }
    catch (IllegalStateException e)
View Full Code Here

Examples of io.undertow.server.ServerConnection

    }

    @Override
    public AuthenticationMechanismOutcome authenticate(final HttpServerExchange exchange,
                                                       final SecurityContext securityContext) {
        ServerConnection connection = exchange.getConnection();
        NegotiationContext negContext = connection.getAttachment(NegotiationContext.ATTACHMENT_KEY);
        if (negContext != null) {
            exchange.putAttachment(NegotiationContext.ATTACHMENT_KEY, negContext);
            if (negContext.isEstablished()) {
                IdentityManager identityManager = securityContext.getIdentityManager();
                final Account account = identityManager.verify(new GSSContextCredential(negContext.getGssContext()));
View Full Code Here

Examples of io.undertow.server.ServerConnection

                        if (holder != null) {
                            holder.connection = result;
                        } else {
                            final ExclusiveConnectionHolder newHolder = new ExclusiveConnectionHolder();
                            newHolder.connection = result;
                            ServerConnection connection = exchange.getConnection();
                            connection.putAttachment(exclusiveConnectionKey, newHolder);
                            connection.addCloseListener(new ServerConnection.CloseListener() {

                                @Override
                                public void closed(ServerConnection connection) {
                                    ClientConnection clientConnection = newHolder.connection.getConnection();
                                    if (clientConnection.isOpen()) {
View Full Code Here

Examples of io.undertow.server.ServerConnection

            this.exchange = exchange;
        }

        @Override
        public void completed(final ClientConnection connection) {
            final ServerConnection serverConnection = exchange.getConnection();
            //we attach to the connection so it can be re-used
            serverConnection.putAttachment(clientAttachmentKey, connection);
            serverConnection.addCloseListener(new ServerConnection.CloseListener() {
                @Override
                public void closed(ServerConnection serverConnection) {
                    IoUtils.safeClose(connection);
                }
            });
            connection.getCloseSetter().set(new ChannelListener<Channel>() {
                @Override
                public void handleEvent(Channel channel) {
                    serverConnection.removeAttachment(clientAttachmentKey);
                }
            });
            callback.completed(exchange, new ProxyConnection(connection, uri.getPath() == null ? "/" : uri.getPath()));
        }
View Full Code Here

Examples of io.undertow.server.ServerConnection

                        if (holder != null) {
                            holder.connection = result;
                        } else {
                            final ExclusiveConnectionHolder newHolder = new ExclusiveConnectionHolder();
                            newHolder.connection = result;
                            ServerConnection connection = exchange.getConnection();
                            connection.putAttachment(exclusiveConnectionKey, newHolder);
                            connection.addCloseListener(new ServerConnection.CloseListener() {

                                @Override
                                public void closed(ServerConnection connection) {
                                    ClientConnection clientConnection = newHolder.connection.getConnection();
                                    if (clientConnection.isOpen()) {
View Full Code Here

Examples of net.jini.jeri.connection.ServerConnection

    public static ServerRequestInfo getServerRequestInfo(
  KerberosServerEndpoint ep, InboundRequest r)
    {
  ServerRequestInfo info = new ServerRequestInfo();
  ServerConnection c =
      (ServerConnection) inboundRequestConnection.get(r);
  info.serverConnection = c;
  info.inboundRequestHandle =
      (InboundRequestHandle) inboundRequestHandle.get(r);
  info.serverPrincipal =
View Full Code Here

Examples of net.minecraft.server.v1_6_R3.ServerConnection

      setPlayerConnection(nm, cp.getHandle().playerConnection);
      Field handlerList = null;
      try {
        handlerList = ServerConnection.class.getDeclaredField("c");
        handlerList.setAccessible(true);
        ServerConnection sc = ((DedicatedServer) MinecraftServer.getServer()).ag();
        List rhandlerList = (List) handlerList.get(sc);
        rhandlerList.remove(oldHandler);
        rhandlerList.add(handler);
      } catch (NoSuchFieldException ex) {
        Logger.getLogger(SpoutCraftPlayer.class.getName()).log(Level.SEVERE, null, ex);
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.