Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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
NilaT is currently offline  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

// 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

Re: TcpSocket issues on XP but not on Win7? [message #38495 is a reply to message #38488] Thu, 20 December 2012 13:56 Go to previous messageGo to next message
NilaT is currently offline  NilaT
Messages: 70
Registered: November 2011
Location: Austria
Member
Okay nevermind,

removing the second Leave solved the Problem.
Thanks anyway Wink

Greets
Re: TcpSocket issues on XP but not on Win7? [message #38606 is a reply to message #38495] Fri, 28 December 2012 11:42 Go to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Thanks, fixed.

Mirek
Previous Topic: 'Web/Web.h': No such file or directory
Next Topic: ARM threadind does not work
Goto Forum:
  


Current Time: Fri Apr 19 17:10:23 CEST 2024

Total time taken to generate the page: 0.02363 seconds