Home » U++ Library support » U++ MT-multithreading and servers » Bug with socket
Re: Bug with socket [message #31606 is a reply to message #31572] |
Thu, 17 March 2011 09:21   |
|
nlneilson wrote on Tue, 15 March 2011 11:28 | 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
|
can you test "ZMQ_HelloeWorld_Srv" and "ZMQ_HelloWorld_Clnt" from bazaar?
I tried to test "ZMQ_HelloWorld_Clnt" with "SocketServer" but it seems to be incompatible.
|
|
|
 |
|
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: Tue Aug 26 08:04:31 CEST 2025
Total time taken to generate the page: 0.05463 seconds
|