-
局域网文件传输
为了设计统一和用户操作方便,我们希望将服务端与客户端融合在一起,形成一个程序,这样用户理解起来,更加直观一点(其实这样做也是为了方便调试,大...
局域网文件传输
为了设计统一和用户操作方便,我们希望将服务端与客户端融合在一起,形成一个程序,这样用户理解起来,更加直观一点(其实这样做也是为了方便调试,大家可以在本机上测试,自己传文件给自己)。所以,我们在程序中需要使用两个Winsock控件,一个负责监听,一个负责发送,当发送端连接成功以后,便选择一个待发送的文件(可以是任意二进制文件),接着将文件名和文件字节长度发送给接收端,接收端收到这个消息以后,将文件名和文件长度解析出来,然后通知发送端可以开始发送文件;发送端读到这个消息之后,将文件流以字节的形式发送到接收端,接收端收到后,将二进制流回写,保存成文件即可。这里要注意两点,一个是由于Winsock每次最大传输8K的内容,所以需要将文件分解,每次传输固定数目的字节流,这样发送和接收时都可以根据这个数目来判断文件传输的进程,一旦字节流数目等于文件的大小,就需要关闭相应的文件句柄;另一点是由于我只使用一个Winsock控件接收,接收文本时需要注意要将UNICODE转码,解析成可识别的信息。
-LAN file transfer to uniform design and user convenience, we hope it will end service and client together and form a process so that users understand, a more intuitive 1:00 (in fact, do so in order to facilitate debugging, you can test the machine, its own text- items for himself). Therefore, we need procedures in the use of two Winsock Control, a charge of wiretapping, a charge of this, when the transmitter connects successfully, it will be a choice to send the document (can be arbitrary binary files), will then file names and the
- 2022-04-14 22:25:12下载
- 积分:1
-
WPF C# abrir 普纳 en 监视器双
En 埃斯特角 sencillo ejemplo 他 creado dos 普纳que se ejecutaran dependiendo si estamos trabajando o 没有 con 联合国监控虚拟,en 劝阻相反 nos arrojara 联合国 mensaje al respecto。Espero les sirva。Saludos.
- 2023-02-13 03:00:03下载
- 积分:1
-
获取网络流量、网卡接口消息、物理磁盘读写带宽信息
获取网络流量、网卡接口消息、物理磁盘读写带宽信息-Access to network traffic, interface card information, physical disk bandwidth to read and write information
- 2022-03-12 19:31:04下载
- 积分:1
-
NS的编程和调试
NS编程与调试 - NOAH 模块
noah是一个无线路由代理(相对于DSDV ,路由, ... )只支持直接沟通的无线节点之间或基站和移动节点的情况下移动IP的使用。这使得模拟的情况下多跳无线路由是不受欢迎的。noah不会发送任何路由相关的数据包。-NS programming and debugging- NOAH Module
NOAH is a wireless routing agent that (in contrast to DSDV, DSR, ...) only supports direct communication between wireless nodes or between base stations and mobile nodes in case Mobile IP is used. This allows to simulate scenarios where multi-hop wireless routing is undesired. NOAH does not send any routing related packets.
- 2022-03-10 12:11:40下载
- 积分:1
-
application for a treeview inorder to drag treenode from one place to other plac...
a application for treeview inorder to drag treenode from one place to other place-application for a treeview inorder to drag treenode from one place to other place
- 2022-02-10 13:09:44下载
- 积分:1
-
这项工作与RAS连接创建拨号
This program work with RAS connection create a dial-up connection (find model of model from registry) and set it to default connection(work with registry) and used these API functions "RegEnumValueA" ,"RegOpenKeyA","RegOpenKeyExA","RegEnumKeyExA"
- 2022-05-30 23:47:45下载
- 积分:1
-
a simulation of a small LED display procedures, can show good numbers, letters a...
一个模拟LED显示的小程序,能很好的显示数字,字母和时间-a simulation of a small LED display procedures, can show good numbers, letters and time
- 2022-06-18 22:50:38下载
- 积分:1
-
由于vb6自身的安装程序比较简单,所以这个COM可以放到安装程序中,然后利用COM自注册的特点运行用户的其它代码...
由于vb6自身的安装程序比较简单,所以这个COM可以放到安装程序中,然后利用COM自注册的特点运行用户的其它代码-VB6 own as a result of the installation process is relatively simple, so the COM can be on the installation process, and then use COM self-registration features of the other running user code
- 2023-07-15 10:15:03下载
- 积分:1
-
This is a process memory control module, as well as use the psapi.lib includes t...
这是一个进程内存监控模块,以及所用到的psapi.lib,包含了exe和核心算法-This is a process memory control module, as well as use the psapi.lib includes the exe and the core algorithm
- 2022-08-10 12:49:34下载
- 积分:1
-
Delaunay Triangulation VB source, the use of the procedures to facilitate the es...
构建Delaunay三角网的VB源程序,利用该程序可以方便的建立GIS中的Delaunay三角网,对GIS开发人员有很大的帮助-Delaunay Triangulation VB source, the use of the procedures to facilitate the establishment of GIS Delaunay net of GIS developers will be very helpful
- 2022-10-31 15:25:03下载
- 积分:1