12345678910111213141516171819202122232425262728293031323334353637383940 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using SuperSocket.SocketBase.Command;
- using SuperWebSocket.Protocol;
- namespace SuperWebSocket.Command
- {
-
-
-
-
- class Plain<TWebSocketSession> : CommandBase<TWebSocketSession, IWebSocketFragment>
- where TWebSocketSession : WebSocketSession<TWebSocketSession>, new()
- {
-
-
-
- public override string Name
- {
- get
- {
- return OpCode.PlainTag;
- }
- }
-
-
-
-
-
- public override void ExecuteCommand(TWebSocketSession session, IWebSocketFragment requestInfo)
- {
- var plainFragment = requestInfo as PlainFragment;
- session.AppServer.OnNewMessageReceived(session, plainFragment.Message);
- }
- }
- }
|