Well, i'm new to sockets, and i'm using the winsock2 library.
I came across a problem, why i need to tell the lenght of the clientservice variabile?
Here is an exemple:
1 2 3 4 5 6 7 8
bind(m_socket, (SOCKADDR*)&clientService, sizeof(clientService)
I Get m_socket, and the cast, but why do i need to specify the size of my sockaddr_in structure?
The length, in bytes, of the value pointed to by the name parameter.