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++ 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 Go to previous message
Wolfgang is currently offline  Wolfgang
Messages: 146
Registered: November 2011
Location: Germany
Experienced Member
In
Quote:

http://www.ultimatepp.org/srcdoc$Web$ConnectionOriented$en-u s.html


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

 
Read Message
Read Message
Previous Topic: AESStream + OpenSSL installed + cannot open file 'out32\libeay32.lib'
Next Topic: LibX11 error & lock-up in debug mode with GridCtrl
Goto Forum:
  


Current Time: Sat Apr 20 12:35:21 CEST 2024

Total time taken to generate the page: 0.03760 seconds