CodeBus
www.codebus.net
Search
Sign in
Sign up
Hot Search :
Source
embeded
web
remote control
p2p
game
More...
Location :
Home
Search - gethostbyaddr
Main Category
SourceCode
Documents
Books
WEB Code
Develop Tools
Other resource
Search - gethostbyaddr - List
[
TCP/IP stack
]
tcp-ipayixidailv
DL : 0
一个简单的TCP客户端程序流程 1、使用WSAStartup()初始化WinSock库。 2、使用socket()创建一个IPPROTO_TCP SOCKET。 3、使用gethostbyname()/gethostbyaddr()获取主机信息。 4、使用connect()和我们创建的套接字连接服务器。 5、使用send()/recv()发送和接收数据,直到我们的TCP会话结束。 6、使用closesocket()关闭套接字连接。 7、使用WSACleanup()释放WinSock。 -a simple TCP client a process, the use of WSAStartup () initialization WinSock library. 2, the use of socket () to create a IPPROTO_TCP SOCKET. 3, the use of gethostbyname () / gethostbyaddr () mainframe access information. 4, the use of connect (), and we create the socket connections server. 5, the use of send () / recv () to send and receive data until we TCP end of the session. 6, the use of closesocket () closes socket connections. 7, the use of WSACleanup () release WinSock.
Date
: 2008-10-13
Size
: 4.98kb
User
:
顾谦
[
TCP/IP stack
]
tcp-ipayixidailv
DL : 0
一个简单的TCP客户端程序流程 1、使用WSAStartup()初始化WinSock库。 2、使用socket()创建一个IPPROTO_TCP SOCKET。 3、使用gethostbyname()/gethostbyaddr()获取主机信息。 4、使用connect()和我们创建的套接字连接服务器。 5、使用send()/recv()发送和接收数据,直到我们的TCP会话结束。 6、使用closesocket()关闭套接字连接。 7、使用WSACleanup()释放WinSock。 -a simple TCP client a process, the use of WSAStartup () initialization WinSock library. 2, the use of socket () to create a IPPROTO_TCP SOCKET. 3, the use of gethostbyname ()/gethostbyaddr () mainframe access information. 4, the use of connect (), and we create the socket connections server. 5, the use of send ()/recv () to send and receive data until we TCP end of the session. 6, the use of closesocket () closes socket connections. 7, the use of WSACleanup () release WinSock.
Date
: 2025-12-26
Size
: 5kb
User
:
顾谦
CodeBus
is one of the largest source code repositories on the Internet!
Contact us :
1999-2046
CodeBus
All Rights Reserved.