Package org.snova.framework.event

Examples of org.snova.framework.event.SocketConnectionEvent


  public void close()
  {
    if (!isClosed)
    {
      logger.info(String.format("Session[%d]closed", localHandler.getId()));
      SocketConnectionEvent closeEv = new SocketConnectionEvent();
      closeEv.status = SocketConnectionEvent.TCP_CONN_CLOSED;
      closeEv.addr = proxyAddr.toString();
      closeEv.setHash(localHandler.getId());
      requestEvent(closeEv);
      int sid = null != localHandler ? localHandler.getId() : 0;
      sessionTable.remove(sid);
    }
    if (null != rangeTask)
View Full Code Here


                chunk.content.length));
        break;
      }
      case CommonEventConstants.EVENT_TCP_CONNECTION_TYPE:
      {
        SocketConnectionEvent ev = (SocketConnectionEvent) event;
        if (ev.status == SocketConnectionEvent.TCP_CONN_CLOSED)
        {
         
          if (null != proxyAddr
                  && proxyAddr.toString().equals(ev.addr))
View Full Code Here

TOP

Related Classes of org.snova.framework.event.SocketConnectionEvent

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.