IPC poke timeout too long Topic is solved

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
Cursor
Earned some good credits
Earned some good credits
Posts: 120
Joined: Sun Aug 29, 2004 3:09 pm
Location: Grenoble, France
Contact:

IPC poke timeout too long

Post by Cursor » Fri Feb 23, 2007 10:22 am

Hello.

I want to know is there is any way to modify timeout for IPC transactions ?

I use IPC (wxConnection & wxClient) to send a command to another instance of my app but if the other instance doesnt respond (system pause ...) the connection is ok but I must wait the "10 minutes" of the standard wxSocketBase timeout. As wxConnection's sockets are not public, I cant modify their timeout.

Is any way exists to globaly modify the wxSocketBase default timeout ?

Thanks.
What is little and green, witch go up and down ??
Yoda playing with the force.

gurkesaft
Experienced Solver
Experienced Solver
Posts: 54
Joined: Mon Jul 17, 2006 1:48 pm
Contact:

Post by gurkesaft » Thu Aug 30, 2007 3:44 pm

The only way I've found to do it is to find the appropriate instance of wxSocketBase and call SetTimeout(). I don't think you can do it globally (aside from editing some .h file I'm sure).

Hope this helps,
Jack

Post Reply