Click here to Skip to main content
16,016,882 members
Please Sign up or sign in to vote.
2.43/5 (6 votes)
See more:
how to do socket programming in unicode?
can any one provide code for sender and receiver?
Posted

Sockets transfer raw bytes. There is nothing special in sending and receiving UNICODE characters other than setting properly the buffer pointer parameter and the buffer size one.
:)
 
Share this answer
 
You could take any[^] example,
place it in an UNICODE project,
then - compile and improve the (few) converting errors :)

Please note,
that the sockets communication functions (like send or receive)
are working with BYTE sequences (not with some coded strings) :)
 
Share this answer
 
Just use the ANSI version and multiply by two.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900