public event EventHandler<EventArgs<EndPoint, IPPacketInformation, int>> ReceiveDataFrom
Public Event ReceiveDataFrom As EventHandler(Of EventArgs(Of EndPoint, IPPacketInformation, Integer))
public:
event EventHandler<EventArgs<EndPoint^, IPPacketInformation, int>^>^ ReceiveDataFrom {
void add (EventHandler<EventArgs<EndPoint^, IPPacketInformation, int>^>^ value);
void remove (EventHandler<EventArgs<EndPoint^, IPPacketInformation, int>^>^ value);
}
function add_ReceiveDataFrom(value);
function remove_ReceiveDataFrom(value);
This event can be used to receive a notification that server data has arrived. The Read(Byte, Int32, Int32) method can then be used to copy data to an existing buffer. In many cases it will be optimal to use an existing buffer instead of subscribing to the ReceiveDataFromComplete event.
Argument1 is the end-point that data has been received from.
Argument2 is the number of bytes received in the buffer from the server.