I'm currently programming a tcp/ip server using WSA. After some troubleshooting a friend of mine said that i should use bool __cdecl winsock_server ( void )
instead of bool winsock_server()
.
But he didn't explain to me what __cdecl
and (void)
are doing. I already know that __cdecl
changes the way how arguments are put on the stack on assembler level, but what does (void)
mean?
I should point out that I'm new to C++. I only programmed in C# and VB.NET before.
Thanks in advance!