WSAStartup :
Windock Version Check -> Library Init


MAKEWORD(2,2) -> 0X0202


socket : socket 생성, Descriptor 반환
bind : Addr, Port
listen : 연결 대기
accept : 연결 수락
connect : 연결요청


int socket(PF, TYPE, PROTOCOL) :
int : Descriptor
PF : socket 통신 환경
TYPE : SOCK_STREAM (연결지향) / SOCK_DGRAM (비연결지향)
PROTOCOL : IPPROTO_TCP (연결지향) / IPPROTO_UDP (비연결지향) => 0


TCP SOCKET -> socket(PF_INET, SOCK_STREAM, 0)
UDP SOCKET -> socket(PF_INET, SOCK_DGRAM, 0)


WSACleanup() :
terminate use of winsock

+ Recent posts