If I not mistake, you are trying to use UNICODE string -- tchar. Use standard
int main(int argc,char **argv)
Artyom
2009-02-15 17:39:45
If I not mistake, you are trying to use UNICODE string -- tchar. Use standard
int main(int argc,char **argv)
You would run the program with the IP or Hostname of the server you want to connect to. tcp::resolver::query takes the host to resolve or the IP as the first parameter and the name of the service (as defined e.g. in /etc/services on Unix hosts) - you can also use a numeric service identifier (aka port number). It returns a list of possible endpoints, as there might be several entries for a single host.