Home » U++ Library support » U++ Library : Other (not classified elsewhere) » Error in Web Package example... for sockets
Error in Web Package example... for sockets [message #34765] |
Sun, 11 December 2011 21:04  |
Wolfgang
Messages: 146 Registered: November 2011 Location: Germany
|
Experienced Member |
|
|
In
the first example:
Socket my_sock;
int port=2000;
String host = "192.168.1.2";
if( ClientSocket(my_sock, port, host) );
{
my_sock.Write("hello world!");
my_sock.Close();
}
I think the ; behind
if( ClientSocket(my_sock, port, host) );
is to much and I think you have to give host as second argument and port as third.
if( ClientSocket(my_sock, host, port) )
[Updated on: Mon, 12 December 2011 12:47] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Tue May 13 11:50:02 CEST 2025
Total time taken to generate the page: 0.00943 seconds
|