간단한 텔넷 접속 예제
초 간단 텔넷 접속 C 예제...#include “winsock2.h”void main() {// Initialize Winsock.WSADATA wsaData;int iResult = WSAStartup( MAKEWORD(2,2), &wsaData );if ( iResult != NO_ERROR )printf(“Error at WSAStartup()\n”);// Create a socket.SOCKET m_socket;m_socket = socket( AF_INET, SOCK_STREAM, IPPROTO_TCP );if ( m_socket == INVALID_SOCKET ) {printf( “Error at socket(): %ld\n”, WSAGetLastError() );WSACleanup();re..