Listening for TCP and UDP requests on the same port

前端 未结 3 1706
慢半拍i
慢半拍i 2020-12-16 06:08

I am writing a Client/Server set of programs

Depending on the operation requested by the client, I use make TCP or UDP request.

Implementing the client side is

3条回答
  •  半阙折子戏
    2020-12-16 06:25

    AFAIK, you should be able to listen for both TCP connections and UDP messages on the same port. It would help if you posted your UDP code, and the exception + stacktrace that you are seeing.

提交回复
热议问题