找考题网-背景图
单项选择题

在实现基于TCP的网络程序,服务器端正确的处理流程是()。

A.Socket()->bind()->listen->connect()->read()/write()->close()
B.Socket()->bind()->listen->->read()/write()->close()
C.Socket()->bind()->listen->accept()->read()/write()->close()
D.Socket()->connect()->listen->connect()->read()/write()->close()