">

">

题43图给出了基于TCP客户与服务器的典型 Socket API函数调用过程,请写出图中序号(1)~(6)处所调用的Socket API函数。

题43图给出了基于TCP客户与服务器的典型 Socket API函数调用过程,请写出图中序号(1)~(6)处所调用的Socket API函数。


【正确答案】:(1)ms=socket();
(2)listen(ms);
(3)connect(cs);
(4)send(cs);
(5)recv(cs);
(6)close(ms)
Top