Anyone know how to use a pair of ports with wxSockets?

Hugo Jackson hugojackson at speedfactory.net
Tue Jul 3 09:57:55 PDT 2007


you can open an arbitrary number of ports with wxSockets (subject to  
OS maximums etc. ). you simply create another instance of the  
wxSocket type you require and use that, opening, closing and  
processing data as you do with your first, and/or other ports.
perhaps you're trashing a pointer to your original port?

On Jul 3, 2007, at 12:39 PM, David Mathews wrote:

> I'm trying to use a pair of ports since I have activity that is  
> initiated from either one of my communicating programs.
> All is working with a single port, but when I add a listener  
> (server) for a different port, all the code for the original port  
> fails.
> (With a single port, I can't have both apps on the same machine as  
> they can't both listen to the same port. But running a client on  
> the server box is a requirement.)
>
> Is there something special required to make this work, or is  
> wxSockets not capable of handling two ports?
> Any work around?
>
> Thanks,
> David
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: wx-users-unsubscribe at lists.wxwidgets.org
> For additional commands, e-mail: wx-users-help at lists.wxwidgets.org
>





More information about the wx-users mailing list