Package com.caucho.network.listen

Examples of com.caucho.network.listen.SocketLink


  /**
   * Called for a connection: close
   */
  protected void handleConnectionClose()
  {
    SocketLink conn = _conn;

    if (conn != null)
      conn.killKeepalive();
  }
View Full Code Here


  /**
   * Kills the keepalive.
   */
  public void killKeepalive()
  {
    SocketLink conn = _conn;

    if (conn != null)
      conn.killKeepalive();

    /*
    ConnectionController controller = _conn.getController();
    if (controller != null)
      controller.close();
View Full Code Here

   * The keepalives are preallocated at the start of the request to keep
   * the connection state machine simple.
   */
  public boolean isKeepaliveAllowed()
  {
    SocketLink conn = _conn;

    if (conn != null)
      return conn.isKeepaliveAllocated();
    else
      return true;
  }
View Full Code Here

    throws ServletException, IOException
  {
    if (request instanceof AbstractHttpRequest) {
      AbstractHttpRequest httpRequest = (AbstractHttpRequest) request;

      SocketLink connection = httpRequest.getConnection();

      if (connection instanceof TcpSocketLink) {
        TcpSocketLink tcpConnection = (TcpSocketLink) connection;

        long time = Alarm.getExactTime();
View Full Code Here

TOP

Related Classes of com.caucho.network.listen.SocketLink

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.