readme
来自「this gives details of the network progra」· 代码 · 共 34 行
TXT
34 行
UDP client and server code. The client sends a single 32bit integer to the server without convertingto network byte order.The server looks for incoming datagrams, and looks in each one fora 32 bit integer, which it prints out (without converting fromnetwork byte order).The point is: 1. sending binary data 2. watch things screw up if the server and client don't use the same representation for integers.To see the Network byte order problem, run one of the programs on aPC (Linux, BSD) and the other on a Sun.The client command line looks like this:client foo.cs.rpi.edu 2030 8765The first number is the server port number, the last number is theinteger that will be sent by the client to the server. If all goes well,the server will print out this number.Questions should be sent to netprog@cs.rpi.edu
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?