Connecting to multiple servers from a single client socket C

后端 未结 3 711
栀梦
栀梦 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:38

    I think you are using TCP socket( aren't you?). So one socket for connection is needed. Then reuse port is not so important because your application is a client application, which is the part the start the connection. Any outbound port should be ok.

提交回复
热议问题