We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
以结构体scws_response为例
scws_response
xunsearch/src/task.cc
Lines 1977 to 1982 in d1b72c7
如果客户端和服务端不在同一台服务器上,那么有可能客户端和服务端int大小不同或者字节序不同,关键是客户端和服务端都无法检测这一点。 最简单的方法是统一使用网络序(即大端)32位整数,已经足够表示4GB空间。如果32位整数可能不够,至少给客户端一个检测的手段(增加一个命令或在配置文件中加入这一项)
int
The text was updated successfully, but these errors were encountered:
No branches or pull requests
以结构体
scws_response
为例xunsearch/src/task.cc
Lines 1977 to 1982 in d1b72c7
根据后续代码,这个结构体是直接发送内存的。
如果客户端和服务端不在同一台服务器上,那么有可能客户端和服务端
int
大小不同或者字节序不同,关键是客户端和服务端都无法检测这一点。最简单的方法是统一使用网络序(即大端)32位整数,已经足够表示4GB空间。如果32位整数可能不够,至少给客户端一个检测的手段(增加一个命令或在配置文件中加入这一项)
The text was updated successfully, but these errors were encountered: