Gilles Posted June 17, 2014 Posted June 17, 2014 Hi I use Pcomm32 with Ethernet to communicate with a geobrick. Sometimes I get a WSAETIMEOUT error popup windows : see attached file. I think I have some dropped packets, but this is not a problem. My application is not a GUI and run on a computer with no screen, keyboard and mouse, so nobody can valide this popup message and my application is blocked. Can I configure Pcomm32 to remove this popup window when a dropped packet occurs ? Thanks Gilles
fahmad Posted June 18, 2014 Posted June 18, 2014 Gilles, The socket timeout message pops up if the communication is lost and is not re-configurable unless we recompile Pcomm32. What needs to be investigated is why the communication is lost in the first place. Farooq Hi I use Pcomm32 with Ethernet to communicate with a geobrick. Sometimes I get a WSAETIMEOUT error popup windows : see attached file. I think I have some dropped packets, but this is not a problem. My application is not a GUI and run on a computer with no screen, keyboard and mouse, so nobody can valide this popup message and my application is blocked. Can I configure Pcomm32 to remove this popup window when a dropped packet occurs ? Thanks Gilles
Gilles Posted June 18, 2014 Author Posted June 18, 2014 Farooq, Thanks for you quick reply. Currently this window appears randomly. The connection may last one or two days before this window appears. Have you ever tested the connection over such long periods? I need to find a method to diagnose the connection loss. Best regards Gilles
Gilles Posted June 25, 2014 Author Posted June 25, 2014 Farooq, Can you give me the timeout value used in Pcomm32 ? Thanks Gilles
fahmad Posted June 25, 2014 Posted June 25, 2014 Farooq, Can you give me the timeout value used in Pcomm32 ? Thanks Gilles Gilles, There are several timeout values for socket timeouts. #define FLUSH_SOCKTO 250 #define SENDLINE_SOCKTO 500 #define GETBUFFER_SOCKTO 2000 //(This is a 2 second wait time while receiving data from PMAC before you get an error message) #define GETSETMEM_SOCKTO 500 #define SENDCHAR_SOCKTO 250 #define INPORT_SOCKTO 500 #define FLUSH_TIMEOUT 10 Can you also tell me what version of Pcomm32 library ( Pro or Pro2) are you using? Farooq
Recommended Posts