[C++] TCP socket_file descriptor, text file descriptor
#include #include #include #include #include #include #include #include #define MAXLINE 1000 #pragma warning(disable: 4996) int main() { // Initialize Winsock WSADATA wsaData; int iResult = WSAStartup(MAKEWORD(2, 2), &wsaData); if (iResult != NO_ERROR) printf("Server: Error at WSAStartup().\n"); // Create a SOCKET for listening for incoming connection requests. SOCKET sockListen; sockListen = so..
C, C++
2020. 3. 11. 02:54