Today I had written my first C++ Socket program with eclipse Ganymede and MinGW under Windows. It’s different to UNIX, for example the WSAStartup, the return types (SOCKET_ERROR, INVALID_SOCKET) and the socket datatype.
The first thing that costs me some minutes, was to configure the C++ Linker. You need to configure the ws2_32 library besides there will be a build error (undefined reference to `WSAStartup@8′).
The ws2_32 (Winsock Library) will required to perform TCP/IP network communication.
Leia Mais…
