Socket Programming
Hello I am Developing an API in C#
which requires me to connect to a server and send and receive data
i am able to create a socket
i need to send a data in the following Format (Protocol Frame)
<0x03><0x20><LLLL>Data....................<0x04>
i am able to do everything except the Lenght (LLLL) field which need to be 4 Bytes and should be in Big Endian Format
i tried doing everything but cudn't do it
i used host to network order method but didnt knew how to append it to the message i am supposed to send.
I'll appreciate any help on this issue
Thanks,
Lisa
Regards,
Lisa
|