wxSocketServer Accept issues

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
killerbot
Experienced Solver
Experienced Solver
Posts: 75
Joined: Wed Dec 26, 2007 1:13 pm

wxSocketServer Accept issues

Post by killerbot »

Has anyone run into issues with wxSocKetServer::Accept.

In my application after a certain amount of time the following occurs.
* occasionally the Accept fails (returns 0), the Accept is used in the event handler in case of wxSOCKET_CONNECTION_FLAG

* and from a given moment even this failure no longer occurs, but no client is able to connect. All connections fail.

Any help or tips to check certain things are welcome.
Many thanks.
protocol
Moderator
Moderator
Posts: 680
Joined: Wed Jan 18, 2006 6:13 pm
Location: Dallas, TX
Contact:

Post by protocol »

Two questions:

What version of wxWidgets are you using?

Have you read: http://forums.wxwidgets.org/viewtopic.php?t=2736 ?
/* UIKit && wxWidgets 2.8 && Cocoa && .Net */
QuRegExmm
wxPCRE & ObjPCRE - Regex It!
killerbot
Experienced Solver
Experienced Solver
Posts: 75
Joined: Wed Dec 26, 2007 1:13 pm

Post by killerbot »

I am using wx 2.8.10.
And I have read that post already several times.

One of my issues is what the example describes as :

Code: Select all

    //
    // If a wierd fluke happens and we get a null socket break out
    //
    if(!pSocket)
        return; 
But the most severe ting is at a given moment no more sockets connections can be made ..
Post Reply