wxSocket服务器端怎样向客户端发送信息? Topic is solved

这是wxWidgets论坛的中文版本。在这里,您可以用您的母语汉语讨论上面任一子论坛所涉及的所有关于wxWidgets的话题。欢迎大家参与到对有价值的帖子的中英互译工作中来!
Post Reply
hats
Experienced Solver
Experienced Solver
Posts: 70
Joined: Wed Sep 16, 2009 3:50 pm
Location: China
Contact:

wxSocket服务器端怎样向客户端发送信息?

Post by hats » Sun Apr 04, 2010 5:10 pm

最近再看wxSocket,想做一个通信试验。现在能用wxSocketClient向wxSocketServer发送数据了,但不知道怎样在wxSocketServer上向指定IP地址的wxSocketClient发送数据。在客户端上不要创建wxSocketServer,在服务器和客户端连接的情况下,让服务器也能向它发送数据。下面是我的测试程序和源码.C::B的工程,wx:2.8.10,MinGW3.4.5,希望大家帮助一下!
Attachments
wxSocket.rar
(63.44 KiB) Downloaded 258 times
wx.jpg

hats
Experienced Solver
Experienced Solver
Posts: 70
Joined: Wed Sep 16, 2009 3:50 pm
Location: China
Contact:

Post by hats » Tue May 11, 2010 2:38 pm

搞定了,用vector保存一下sock标记

sishui
Earned some good credits
Earned some good credits
Posts: 121
Joined: Mon Mar 10, 2008 6:13 am
Location: 中國

Post by sishui » Tue May 11, 2010 4:50 pm

兄弟 问题解决了 就把帖子结了吧
work work!!!

Post Reply