コード例 #1
0
ファイル: Tracker.cs プロジェクト: KDERazorback/Netst
 protected virtual void OnMessageReceived(IPEndPoint endpoint, byte[] data, NodeInfo info)
 {
     MessageReceived?.Invoke(this, new TrackerMessageReceivedEventArgs(endpoint, data, info));
 }
コード例 #2
0
 public TrackerMessageReceivedEventArgs(IPEndPoint source, byte[] data, NodeInfo remoteInfo)
 {
     RemoteEndPoint = source;
     ReceivedData   = data;
     RemoteNodeInfo = remoteInfo;
 }