Package org.cspoker.server.xml.sockets

Examples of org.cspoker.server.xml.sockets.ClientContext.closeConnection()


      if (numBytesRead == -1) {
        // No more bytes can be read from the channel
        logger.debug("channel has reached end-of-stream");
        ClientContext context = getContext(key, client);
        context.closeConnection();
      } else {
        logger.trace("Reading " + numBytesRead + " bytes from socket");
        // To read the bytes, flip the buffer
        buffer.flip();
        ClientContext context = getContext(key, client);
View Full Code Here


        }
      }
    } catch (IOException e) {
      logger.debug("Exception reading from socket, closing socket: "+e.getMessage());
      ClientContext context = getContext(key, client);
      context.closeConnection();
      // Rethrow exception as declared
      throw (e);
    }

  }
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.