Home » U++ Library support » U++ MT-multithreading and servers » Bug with socket
Re: Bug with socket [message #31572 is a reply to message #31550] |
Tue, 15 March 2011 10:28   |
nlneilson
Messages: 644 Registered: January 2010 Location: U.S. California. Mojave &...
|
Contributor |
|
|
Thanks Ion but that would be more complicated than necessary.
It's basically just the code in C:\upp\reference\SocketClient\SocketClient.cpp
which hangs the same with a Win .exe run in Linux with Wine.
String snd(String r, int a){
Socket s;
if(!ClientSocket(s, "127.0.0.1", 5024)) {
return "x";
}
if(IO) s.Write(r + "\n");
if(a==1 && IO){
String st = s.ReadUntil('\n');
return st;
}
return "y";
}
The code where the app hangs is:
if(!ClientSocket(..
when the server socket is not available, has not been opened, has been closed or whatever, it hangs.
Using socket.cpp and socket.h from 3226 or earlier fixes my problem.
I pointed this problem out in case someone else runs into it or if it needs to be fixed.
Neil
[Updated on: Tue, 15 March 2011 11:08] Report message to a moderator
|
|
|
 |
|
Bug with socket
|
 |
|
Re: Bug with socket
|
 |
|
Re: Bug with socket
By: tojocky on Tue, 15 March 2011 07:51
|
 |
|
Re: Bug with socket
|
 |
|
Re: Bug with socket
By: tojocky on Thu, 17 March 2011 09:21
|
 |
|
Re: Bug with socket
|
 |
|
Re: Bug with socket
By: mirek on Sat, 19 March 2011 11:15
|
 |
|
Re: Bug with socket
By: mirek on Sat, 19 March 2011 12:44
|
 |
|
Re: Bug with socket
By: mirek on Sat, 19 March 2011 14:50
|
 |
|
Re: Bug with socket
By: mirek on Fri, 18 March 2011 19:39
|
 |
|
Re: Bug with socket
By: mirek on Fri, 18 March 2011 20:30
|
 |
|
Re: Bug with socket
|
 |
|
Re: Bug with socket
|
 |
|
Re: Bug with socket
By: mirek on Sat, 19 March 2011 23:50
|
 |
|
Re: Bug with socket
|
 |
|
Re: Bug with socket
By: mirek on Sun, 20 March 2011 07:50
|
 |
|
Re: Bug with socket
|
 |
|
Re: Bug with socket
By: tojocky on Sun, 20 March 2011 10:50
|
 |
|
Re: Bug with socket
By: mirek on Sat, 16 April 2011 21:26
|
 |
|
Re: Bug with socket
By: tojocky on Sun, 17 April 2011 13:40
|
 |
|
Re: Bug with socket
|
Goto Forum:
Current Time: Sat Jul 05 12:51:58 CEST 2025
Total time taken to generate the page: 0.03519 seconds
|