我现在需要做一个两方以上的多人通讯的东西,就像web里的聊天室那样,
通讯协议我选用udp, 我准备这么做比如有4个人在通讯a,b,c,d
如果a发出信息则a->b
a->c
a->d这样大家都能收到。
这是4个人通讯,但是不知道如果10个人100个人通讯会不会有问题
因为我初学socket编程,不知道有没有什么更好的方式还实现我的需求!
通讯协议我选用udp, 我准备这么做比如有4个人在通讯a,b,c,d
如果a发出信息则a->b
a->c
a->d这样大家都能收到。
这是4个人通讯,但是不知道如果10个人100个人通讯会不会有问题
因为我初学socket编程,不知道有没有什么更好的方式还实现我的需求!
when you send a message to the other all ,you can send this message to server .
then the server can send your message to the other all one by one.
SendTo(),参数地址为NULL;
但是如果在Internet上,只好用一个Server来转发了。