虽然比起linux下面的socket programming来有一些别扭,但是还能忍受。
基本的函数
WSAStartup()
socket()
bind()
listen()
accept()
send()
recv()
--------------
connect()
-------------
sockaddr_in类型实例的创建也应该注意一下:
sockaddr_in service;
service.sin_family = AF_INET;
service.sin_addr.s_addr = inet_addr("127.0.0.1");
service.sin_port = htons(80);
RECORDING MY FANTASY
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment