討論串[問題] socket接受multi client的問題
共 2 篇文章
首頁
上一頁
1
下一頁
尾頁

推噓0(0推 0噓 0→)留言0則,0人參與, 最新作者hn12404988 (Willy)時間8年前發表 (2016/12/16 11:10), 8年前編輯資訊
0
0
0
內容預覽:
================== 這個是子thread的執行部份 =============================. auto execute = [&](short int index){. std::string str;. while(server.msg_to_args(ind
(還有1246個字)

推噓1(1推 0噓 14→)留言15則,0人參與, 最新作者viewstock (股市觀察者)時間8年前 (2016/12/16 02:22), 編輯資訊
0
0
0
內容預覽:
if ( (sockfd = socket(AF_INET, SOCK_STREAM, 0)) == -1 ){. perror("socket");. exit(1);. }. addr.sin_family = AF_INET;. addr.sin_port = htons(5000);. ad
(還有1185個字)
首頁
上一頁
1
下一頁
尾頁