我有一个结构:
struct one { char name[10]; int age; }; struct two { int X; int Y; };
现在我想发送这个结构,例如第一个“一”,第二个“二”并从套接字接收。
但是,如果我不知道发送哪个结构(结构“一”或“二”),如何接收它?
c++ sockets struct
c++ ×1
sockets ×1
struct ×1