Unable to receive socket events Topic is solved

Do you have a typical platform dependent issue you're battling with ? Ask it here. Make sure you mention your platform, compiler, and wxWidgets version.
Post Reply
johnnie
Experienced Solver
Experienced Solver
Posts: 64
Joined: Mon Jan 14, 2008 8:59 am
Location: Bangalore
Contact:

Unable to receive socket events

Post by johnnie »

Hi all,

I have been working on porting a application from Linux to windows. I am facing issues related to threads and sockets. I will explain the complete scenario here.

I have a server listening for the socket connections. The client is a static library which does two things. Establishes socket connection and creates a secondary thread. In secondary thread we again create a client socket for broadcasting.

The issue which I am facing is that the socket events are not received by the server. If there is only one socket, all the socket events are received by the server. But if there are two client sockets created, the INPUT event is not received by the server.


Please help me to get over this.

Regards
Johnnie
--johnniealan --
johnnie
Experienced Solver
Experienced Solver
Posts: 64
Joined: Mon Jan 14, 2008 8:59 am
Location: Bangalore
Contact:

Post by johnnie »

Hi all,

Any solution ?

Regards
Johnnie Alan J
--johnniealan --
johnnie
Experienced Solver
Experienced Solver
Posts: 64
Joined: Mon Jan 14, 2008 8:59 am
Location: Bangalore
Contact:

Post by johnnie »

Hi all,

After a long struggle I was able to figure out the issue. The issue was due to the sockets flags. The flags are set to SetFlags(wxSOCKET_BLOCK);.

After commenting this line out, every thing started to work fine.

Thanks for all help extended

Regards
Johnnie Alan J
--johnniealan --
Post Reply