12345678910111213141516171819 |
- using System;
- namespace IFramework.Net.WebSocket
- {
- public interface IWSServerProvider:IDisposable
- {
- OnAcceptedHandler OnAccepted { get; set; }
- OnDisconnectedHandler OnDisconnected { get; set; }
- OnReceivedHandler OnReceived { get; set; }
- OnReceivedSegmentHandler OnReceivedBytes { get; set; }
- OnSentHandler OnSent { get; set; }
- void Close(SocketToken sToken);
- bool Send(SegmentToken session, bool waiting = true);
- bool Send(SocketToken sToken, string content, bool waiting = true);
- bool Start(int port, string ip = "0.0.0.0");
- void Stop();
- }
- }
|