Unicode中的套接字编程 [英] Socket programming in unicode

查看:75
本文介绍了Unicode中的套接字编程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何用unicode进行套接字编程?

how to do socket programming in unicode?
can any one provide code for sender and receiver?

推荐答案

套接字传输原始字节.除了正确设置缓冲区指针参数和缓冲区大小一个以外,发送和接收UNICODE字符没有什么特别的.
:)
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.
:)


您可以使用任何 [
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) :)


只需使用ANSI版本并乘以2.
Just use the ANSI version and multiply by two.


这篇关于Unicode中的套接字编程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆