Sock.SetSocketOption(SocketOptionLevel.IP, SocketOptionName.TypeOfService, 0x03) Socket sock = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp) You can vary the encoding to see how that effects the transmitted data. The following is a client and server that should work as you are expecting. ![]() ![]() the code is receiving bytes and converting them to a string using the incorrect encoding).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |