Setting up conenction Unable to connect to server! send failed: 10093 Are the game started? Waiting for server... Waiting for server... Waiting for server... Waiting for server... Waiting for server... |
|
|
|
|
|
|
|
|
#define DEFAULT_HOST "localhost"
Successful WSAStartup not yet performed. Either the application has not called WSAStartup or WSAStartup failed. The application may be accessing a socket that the current active task does not own (that is, trying to share a socket between tasks), or WSACleanup has been called too many times. |
type in your IP |
# Copyright (c) 1993-2009 Microsoft Corp. # # This is a sample HOSTS file used by Microsoft TCP/IP for Windows. # # This file contains the mappings of IP addresses to host names. Each # entry should be kept on an individual line. The IP address should # be placed in the first column followed by the corresponding host name. # The IP address and the host name should be separated by at least one # space. # # Additionally, comments (such as these) may be inserted on individual # lines or following the machine name denoted by a '#' symbol. # # For example: # # 102.54.94.97 rhino.acme.com # source server # 38.25.63.10 x.acme.com # x client host # localhost name resolution is handled within DNS itself. # 127.0.0.1 localhost # ::1 localhost |
recv reads information from the socket, and return the number of bytes read from the socket. The reason that my wrapper don't work was that I messed with some pointers and char arrays, there is a pretty long time since I used C++ last time. And since I have a pretty small amount of time to finish this I did not take me time to check how I actually are going to do it. And it is not a game, is is a kind of a game bot to a competition here at The Gathering :p |
LilJoje: I know that, but since this is a one threaded console application I dont really see the point. If I can't get anything out of the socket the program will be useless. |