Home » U++ Library support » U++ MT-multithreading and servers » TcpSocket issues on XP but not on Win7?
TcpSocket issues on XP but not on Win7? [message #38488] |
Thu, 20 December 2012 09:57 ![Go to next message Go to next message](theme/default/images/down.png) |
NilaT
Messages: 70 Registered: November 2011 Location: Austria
|
Member |
|
|
Hello again,
I coded a server application which handles multiple TCP connections to the RS232.
Everything works fine on Win7, but when I test it on Win XP (and Win POS ready (xp embedded) too) it seems that the TcpSocket does not close correctly.
The connection works the first time, but on the second connect, it won't.
I followed this example:
http://www.ultimatepp.org/reference$HttpServer$de-de.html
Can you tell me if this is really correct? (and why)
ServerMutex.Leave();
if(b) {
ServerMutex.Leave();
The TcpSocket socket; gets destroyed after the if and newly initilized in the for(;;)
Does that example work on xp for you?
Thanks in advance and merry christmas ![Razz](images/smiley_icons/icon_razz.gif)
// edit: Is there also an issue when the server works with TcpSocket class but the client with normal Socket? (Client needs 2010 sources)
[Updated on: Thu, 20 December 2012 11:08] Report message to a moderator
|
|
|
|
|
Goto Forum:
Current Time: Thu Apr 25 14:18:38 CEST 2024
Total time taken to generate the page: 0.02915 seconds
|