登录
首页 » Visual C++ » winsocket

winsocket

于 2009-06-16 发布 文件大小:1517KB
0 402
下载积分: 1 下载次数: 72

代码说明:

  用Winsocket实现网络中聊天和文件传输, VC++编写(you can use it to communicate with other or transfer some files.)

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • client-server
    多协议文件传输c/s网络应用设计与实现,程序用 TCP/UDP 两个协议模拟多协议服务器。首先服务器端要将两种协议的套接字创建好,并且监听 TCP 端口的连接。必要时使用select函数来进行多连接处理和非阻塞处理。而客户端直接可以按照发送的地址和端口号来进行通讯。 首先要运行服务器端,服务器会监听 TCP 端口。然后运行客户端,根据事先设定好的 IP和端口,就可以进行连接传输数据了。 程序实现的关键步骤: 以TCP协议为例 服务器端: 1.创建套接字;2.绑定端口;3.进入无穷的循环;4.接收请求;5.处理请求;6.应答。 客户端: 1.找到服务器的IP地址和协议的端口号;2.创建套接字;3.确定连接需要任意的,没有使用的端口号允许TCP去选择一个;4.将套接字和服务器连接;5.使用应用层协议和服务器交互;6.关闭连接。 (Multi-protocol file transfer c/s network application design and implementation of programs simulate multi-protocol server with TCP/UDP both protocols. First socket server to create a good two protocols, TCP port and listens for connections. If necessary, use the function to handle multiple connections and non-blocking treatment. And the client can follow directly address and port number to communicate. First run on the server side, the server listens on TCP port. Then run the client, according to pre-configured IP and port, you can connect the data transmission. The key step program implementation: In TCP protocol as an example Service-Terminal: 1. Create a socket 2 bound port 3 enter an infinite loop 4. receiving a request 5. processing requests 6 response. Clients: 1. Locate the server s IP address and protocol port number 2 creates a socket 3 connections need to determine arbitrary, unused port allows TCP to choose a 4 and the socket server connections 5 using appli)
    2016-07-11 10:19:07下载
    积分:1
  • eMuleBT_Src
    eMuleBT驴 源程序,是一个较好的使用p2p技术的实现,其流行也带动了p2p技术的快速发展。(donkey eMuleBT source is a better use of p2p technology, realize, and its popularity has also led to the rapid development of p2p technologies.)
    2008-07-01 10:56:14下载
    积分:1
  • network-advanced-programing
    学网络高级编程不可多得的好书,讲得很详细(High school network programming rare books, very detailed)
    2011-10-22 09:39:22下载
    积分:1
  • KONI
    可以参考直接使用S7协议连接西门子plc(You can refer to the direct use of the S7 protocol to connect SIEMENS PLC)
    2018-05-14 11:51:16下载
    积分:1
  • video_trans
    基于udp协议和openCV编程实现的视频传输程序,具有自动获取本地IP地址功能,客户端输入服务器端IP,点击发送,服务器端可实现实时的接收和播放,在可靠的局域网环境下,多次测试传输可靠,除此以外具有原理简单,可扩展的优点。(Udp protocol and openCV programming-based video transmission program has automatic access to the functions of the local IP address, server-side IP client input and click send, the server side can receive and play real-time, reliable LAN environment, several testsreliable transmission, in addition to a simple principle, scalable advantages.)
    2021-03-30 17:39:10下载
    积分:1
  • Internet文件下载
    一个文件下载软件,通过填写Internet文件的URL和本地保存路径就可以下载,并且可以显示下载速度和进度。(a download software through the Internet to fill in the URL and document preservation of the local trails can be downloaded and shows download speed and progress.)
    2005-05-17 19:06:58下载
    积分:1
  • VB
    说明:  vb聊天室源码,一对一聊天。winsock控件实现的一款聊天软件。(VB Talking station.)
    2013-12-07 14:00:17下载
    积分:1
  • STR
    structures for rf online 2/2/3 server
    2010-06-05 13:52:20下载
    积分:1
  • 多人聊天
    基于TCP/IP的多人聊天程序(包含服务器和客户端)( Chat the procedure based on the TCP/IP multi- people (to contain server and customer end) )
    2004-07-03 23:37:55下载
    积分:1
  • qqsniffer.src
    局域网QQ密码嗅探器QQsniffer,不要用于非法哦(LAN QQ password sniffer QQsniffer, not used in the illicit Oh)
    2007-10-15 22:33:32下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载