Anyone know how to use a pair of ports with wxSockets?
David Mathews
grnbriar at mindspring.com
Tue Jul 3 12:30:22 PDT 2007
I was only using the server pointer once, but when I kick it off I
was using an address object on the stack. I changed this to a server
address variable in my object, so it persists, and now everything
works like a charm!
Wouldn't think that would make a difference, but it works fine now.
I've had to switch a lot of the socket calls to blocking, or they
have intermittent problems.
For my app using blocking calls is not a problem.
So my client app is ready to move to Mac and Linux now.
Thanks!
David
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