IUdpServerProvider.cs 602 B

1234567891011121314151617
  1. using System.Net;
  2. using System;
  3. namespace IFramework.Net.Udp
  4. {
  5. public interface IUdpServerProvider:IDisposable
  6. {
  7. OnDisconnectedHandler DisconnectedCallbackHandler { get; set; }
  8. OnReceivedHandler ReceivedCallbackHandler { get; set; }
  9. OnReceivedSegmentHandler ReceivedOffsetHanlder { get; set; }
  10. OnSentHandler SentCallbackHandler { get; set; }
  11. bool Send(SegmentOffset dataSegment, IPEndPoint remoteEP, bool waiting = true);
  12. int SendSync(IPEndPoint remoteEP, SegmentOffset dataSegment);
  13. void Start(int port);
  14. void Stop();
  15. }
  16. }