I'm pretty new to this, so somewhat confused. I want to send "OPTIONS" converted to hex using the Socket class. So here's what I have so far. I have "OPTIONS" converted to hex and want to send "4F5054494F4E53".
private void button2_Click(object sender, EventArgs e)
{
var message = Encoding.ASCII.GetBytes("4F5054494F4E53");
client.BeginSend(message, 0, message.Length, SocketFlags.None,
new AsyncCallback(SendData), client);
}
But when i set a breakpoint on BeginSend the message byte array contains "52705348" and not "4F5054" etc. How do I deal with this? Thanks