Esempio n. 1
0
 internal void OnConnectedInternal(TcpSession session)
 {
     OnConnected(session);
 }
Esempio n. 2
0
 /// <summary>
 /// Handle session disconnected notification
 /// </summary>
 /// <param name="session">Disconnected session</param>
 protected virtual void OnDisconnected(TcpSession session)
 {
 }
Esempio n. 3
0
 /// <summary>
 /// Register a new session
 /// </summary>
 /// <param name="session">Session to register</param>
 internal void RegisterSession(TcpSession session)
 {
     // Register a new session
     Sessions.TryAdd(session.Id, session);
 }
Esempio n. 4
0
 internal void OnDisconnectingInternal(TcpSession session)
 {
     OnDisconnecting(session);
 }
Esempio n. 5
0
 /// <summary>
 /// Handle session connecting notification
 /// </summary>
 /// <param name="session">Connecting session</param>
 protected virtual void OnConnecting(TcpSession session)
 {
 }
Esempio n. 6
0
 public virtual void OnReceived(TcpSession tcpSession, byte[] buffer, long offset, long size)
 {
 }