随笔- 348
文章- 6
评论- 117
阅读-
196万
08 2015 档案
自定义AppServer
摘要:TelnetSever.cs 1 public class TelnetServer : AppServer 2 { 3 protected override bool Setup(IRootConfig rootConfig, IServerConfig confi...
阅读全文
自定义AppSession
摘要:TelnetSession.cs 1 public class TelnetSession:AppSession 2 { 3 protected override void OnSessionStarted() 4 { 5 S...
阅读全文
分离Command
摘要:要点:1.请求类必须继承CommandBase 2.请求类类名为请求对象中的Key值,大小写可以不区分 3.类必须用public修饰,否则无法识别该请求,提示为无效请求 4.不能再调用NewRequestReceived事件代码实现:Progra...
阅读全文
创建简单的Telnet实例
摘要:step1.先加入库SuperSocket.Common.dll, SuperSocket.SocketBase.dll, SuperSocket.SocketEngine.dll,log4net.dll,System.Threading.dll。同时还需引入NET中的System.Configur...
阅读全文