123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135 |
- using System;
- using System.Collections;
- using System.Collections.Generic;
- using System.Linq;
- using System.Net;
- using System.Text;
- using SuperSocket.Common;
- using SuperSocket.SocketBase.Logging;
- using SuperSocket.SocketBase.Command;
- using SuperSocket.SocketBase.Config;
- using SuperSocket.SocketBase.Protocol;
- namespace SuperSocket.SocketBase
- {
-
-
-
- public interface IAppSession : ISessionBase
- {
-
-
-
- IAppServer AppServer { get; }
-
-
-
- ISocketSession SocketSession { get; }
-
-
-
- IDictionary<object, object> Items { get; }
-
-
-
- IServerConfig Config { get; }
-
-
-
- IPEndPoint LocalEndPoint { get; }
-
-
-
-
-
-
- DateTime LastActiveTime { get; set; }
-
-
-
- DateTime StartTime { get; }
-
-
-
- void Close();
-
-
-
-
- void Close(CloseReason reason);
-
-
-
-
-
-
- bool Connected { get; }
-
-
-
-
- Encoding Charset { get; set; }
-
-
-
-
-
-
- string PrevCommand { get; set; }
-
-
-
-
-
-
- string CurrentCommand { get; set; }
-
-
-
- ILog Logger { get; }
-
-
-
-
-
-
-
-
- int ProcessRequest(byte[] readBuffer, int offset, int length, bool toBeCopied);
-
-
-
- void StartSession();
- }
-
-
-
-
-
- public interface IAppSession<TAppSession, TRequestInfo> : IAppSession
- where TRequestInfo : IRequestInfo
- where TAppSession : IAppSession, IAppSession<TAppSession, TRequestInfo>, new()
- {
-
-
-
-
-
- void Initialize(IAppServer<TAppSession, TRequestInfo> server, ISocketSession socketSession);
- }
- }
|