Connecting to multiple servers from a single client socket C

后端 未结 3 706
栀梦
栀梦 2020-12-11 09:07

I have a single client that is trying to connect to my main server using socket s1. The client needs to keep trying to connect to main server with s1, but at the same time c

3条回答
  •  离开以前
    2020-12-11 09:57

    If your program is a client to multiple servers, use one socket per server. You don't need bind for a client socket at all, just connect.

提交回复
热议问题