I'm not too familiar with network programming. In order to get more experience, I've been trying to establish a client-server connection. As for the server, it runs smoothly and is patiently waiting for a connection.
The client, however, always fails to connect to the server whenever I call the "connect" function with the Errorcode 10014. According to Microsoft, it happens whenever the pointer of 'sockaddr_in' is invalid or the size of the structure was allocated with too little memory. I don't see anything which could possibly lead to this error.