首页 > 代码库 > c++ socket 编程步骤

c++ socket 编程步骤

服务器

socket()

 

bind()

 

listen()

                  客户机

accept()                                                 socket()

                   connect()

read()               write()

 

write()               read()

 

close()               close()

 

c++ socket 编程步骤