Walter.Net.Networking
SendBytes Method
Example 
Walter.Net.Networking Assembly > Walter.Net.Networking Namespace > ICMPSocket Class : SendBytes Method
The address to send.
The payload formatted in a proper ICPM message format.
Sends these bytes to the IP address.
Syntax
public void SendBytes( 
   IPAddress address,
   byte[] payload
)

Parameters

address
The address to send.
payload
The payload formatted in a proper ICPM message format.
Example
working with the socket event allows to work with the remote endpoint
var Answer=MakeAnswer()
 
if (Answer.IsBase64())
{
    client.SendBytes(RemoteEndpoint.Address, Convert.FromBase64String(Answer));
}
else
{
    client.SendBytes(RemoteEndpoint.Address, Encoding.ASCII.GetBytes(Answer));
}
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

ICMPSocket Class
ICMPSocket Members