Problem with Socket and Serialization C#

前端 未结 6 1073
陌清茗
陌清茗 2021-01-27 13:23

I implemented a Client and Server model that uses Socket with thread

When I want to pass only a string from Client to the Server, it works. But I want to pass an object

6条回答
  •  孤独总比滥情好
    2021-01-27 13:46

    I also recommend WCF. But if you continue using sockets, the key element that you're missing in your protocol is message framing.

提交回复
热议问题