TCP read and write from client and server

后端 未结 3 1562
夕颜
夕颜 2021-01-29 13:16

I\'m trying to make a client and server which can read and write info back and forth between each other. I can write from the client and server reads it but not vise versa and I

3条回答
  •  借酒劲吻你
    2021-01-29 13:31

    I don't think you are initializing Writer. Make sure that gets initialized before calling it.

    You catch the first NullReferenceException, but then in the catch, you call Writer again, throwing a new one.

提交回复
热议问题