文件名称:SimpleSample
- 所属分类:
- Internet/网络编程
- 资源属性:
- [Windows] [Visual C] [源码]
- 上传时间:
- 2015-05-07
- 文件大小:
- 75kb
- 下载次数:
- 0次
- 提 供 者:
- 混*
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
服务器端创建监听套接字,并为它关联一个本地地址(指定IP地址和端口号),然后进入监听状态准备接受客户的连接请求。为了接受客户端的连接请求,服务器端必须调用accept函数。客户端创建套接字后即可调用connect函数去试图连接服务器监听套接字。当服务器端的accept函数返回后,connect函数也返回。此时客户端使用socket函数创建的套接守,服务器端使用accept函数创建的套接字,双方实现通信。-Server listening socket is created and associated with a local address (specified IP address and port number) for it, and then enters a listening state ready to accept connection requests of customers. In order to accept the connection request the client, the server must call the accept function. Clients can call the connect function to create a socket after listening socket to try to connect to the server. When the server returns accept function, connect function also returns. At this point the client to use the socket function socket created to defend, the server using sockets accept function to create, the two sides to communicate.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
SimpleSample
............\SimpleClient
............\............\RES
............\............\...\SimpleClient.ico
............\............\...\SimpleClient.rc2
............\............\Resource.h
............\............\SimpleClient.aps
............\............\SimpleClient.clw
............\............\SimpleClient.cpp
............\............\SimpleClient.dsp
............\............\SimpleClient.dsw
............\............\SimpleClient.h
............\............\SimpleClient.ncb
............\............\SimpleClient.opt
............\............\SimpleClient.plg
............\............\SimpleClient.rc
............\............\SimpleClientDlg.cpp
............\............\SimpleClientDlg.h
............\............\StdAfx.cpp
............\............\StdAfx.h
............\SimpleClient.exe
............\SimpleServer
............\............\RES
............\............\...\SimpleServer.ico
............\............\...\SimpleServer.rc2
............\............\Resource.h
............\............\SimpleServer.aps
............\............\SimpleServer.clw
............\............\SimpleServer.cpp
............\............\SimpleServer.dsp
............\............\SimpleServer.dsw
............\............\SimpleServer.h
............\............\SimpleServer.ncb
............\............\SimpleServer.opt
............\............\SimpleServer.plg
............\............\SimpleServer.rc
............\............\SimpleServerDlg.cpp
............\............\SimpleServerDlg.h
............\............\StdAfx.cpp
............\............\StdAfx.h
............\SimpleServer.exe