Location:
Search - send socket
Search list
Description: 多线程socket文件传输/支持断点续传/收发消息/点对多点 使用阻塞方式的socket,使用多线程,有较高的性能.在局域网中测试达到极限速度.支持断点续传.服务端可同时接收多个文件.传输文件的同时可以发送网络消息.-multi-threaded socket file transfer/support HTTP/transceiver news/obstruction use point-to-multipoint modes of socket, multi-threaded, high performance. In LAN test the speed limit. Support for HTTP. The server can also send multiple files. Transfer files with the when this network news.
Platform: |
Size: 136192 |
Author: 胡瓜 |
Hits:
Description: 摘 要:介绍了Win32平台(Windows95/98/NT)下socket的阻塞和非阻塞两种工作模式。结合两个具体程序模型,讨论了在网络环境下发送/接收数据使用阻塞式socket的必要性和不足之处,并提出用能延时退出的阻塞式socket读写函数的解决方案。-Abstract : the Win32 platform (describes) socket obstruction and two non-blocking mode. Combining two specific program model discussed in the network environment to send/receive data using block-socket and the need for deficiencies, and make use can delay the withdrawal of obstructive type socket read and write function solutions.
Platform: |
Size: 17408 |
Author: 王静 |
Hits:
Description: 用c#实现能过socket连接smtp实现发送邮件及附件的小程序,通常可用来定时通知什么的-with c# socket connections will be a realization smtp mail attachments and small programs, usually can be used to regularly informed of what
Platform: |
Size: 13312 |
Author: woodwater |
Hits:
Description: 1服务端接收文件,客户端发送文件。
2 每个Socket连接同时只能够传输一个文件。
3 可同时发送网络消息
-receive a document server, a client sends documents. Socket two each while only link to a document transmission. 3 can also send news network
Platform: |
Size: 1170432 |
Author: 冰火 |
Hits:
Description: 共四个演示。分别如下:
1:Sample
一个简单的使用了共享内存映射的例子,运行两个实例看看就知道,没有什么特别。
2:SendText
不用窗口子类化,而达到和发送自定义消息同样的效果。
3:SendFile
由于演示2中还是通过发消息来传递字符串,不可能传递大块文本,本例综合演示1和演示2达到传递大块文本的功能。
4:Chat
演示2和演示3使用的都是SendMessage来发放通知消息,所以不能异步通讯,SetWindowText不能跨进程使用,PostMessage只能在WM_USER以上的自定义消息中才能传递指针,那么如何才能异步通讯呢?我还没有好主意,就用定时器吧!看看这个可以聊天的程序就知道了。
Common目录下有四个模块。
其中ShareStr2.cls是原来大师Bruce MicKenney写的东西,就是这个东西害我浪费很多时间来调试。原来大师的东西也会有错。-a total of four demonstration. Respectively, as follows : 1 : Sample a simple use of shared memory mapping example, look at two examples run, we know that nothing special. 2 : SendText not window-type, and to achieve this definition of news from the same effect. 3 : As demonstrated SendFile 2 updates, or to pass through the string, impossible to send large text, the cases demonstrate a comprehensive and demonstration to send two large text functions. 4 : Chat demonstration two and three demonstration SendMessage are used to notify the news release, it is not asynchronous communications, inter-process SetWindowText not use, PostMessage WM_USER only in the above-defined messages can transfer target, How can we asynchronous communication? I have not a good idea, on the timer! Chat can look at
Platform: |
Size: 52224 |
Author: cohoo |
Hits:
Description: 这是一个用来通过一个套接字在指定时间内发送数据的程序,希望对大家有参考价值!
-This is a socket used by a specified time sent the data procedures, We hope to be a valuable reference.
Platform: |
Size: 1024 |
Author: 付歌 |
Hits:
Description: socket通讯程序,从客户端发送若干字符后在在服务器端接收-socket communication process, from the client to send a number of characters in the server side to receive
Platform: |
Size: 2334720 |
Author: wangkey |
Hits:
Description: 网络的相关知识,网络程序的编写,Socket是连接应用程序与网络驱动程序的桥梁,Socket在应用程序中创建,通过bind与驱动程序建立关系。此后,应用程序送给Socket的数据,由Socket交给驱动程序向网络上发送出去。计算机从网络上收到与该Socket绑定的IP+Port相关的数据后,由驱动程序交给Socket,应用程序便可从该Socket中提取接收到的数据。网络应用程序就是这样通过socket进行数据的发送与接收的。TCP与UDP的工作原理与编写过程,如何在程序中链接库文件。一个字符界面的聊天程序。-Network-related knowledge, procedures for the preparation of the network, Socket is connected applications and network bridge driver, Socket in your application to create, bind with the driver through the establishment of relations. Thereafter, the application data to the Socket, the Socket to the driver sent to the network. Computer from the network with the Socket Receive binding IP+ Port-related data, by the driver to the Socket, the application can be extracted from the Socket received data. Web applications is one such data through the socket send and receive. TCP and UDP and the preparation of the working principle of the process, how to link libraries in the proceedings document. A character interface chat program.
Platform: |
Size: 4700160 |
Author: jiangyang520 |
Hits:
Description: Socket文件传输
利用Socket传输文件的 实例-Socket File Transfer to transfer files using Socket Examples
Platform: |
Size: 77824 |
Author: 飞天侠 |
Hits:
Description: Socket服务器端-客户端程序:客户端链接服务器后,向服务器发送数据;服务器端建立连接后可以接受客户端数据,互相通信-Socket server-side- Client: Client link server, send data to the server server-side connection can accept client data, communicate with each other
Platform: |
Size: 6144 |
Author: |
Hits:
Description: 本Linux网络应用程序采用客户-服务器模型,并发型交互。在OSI参考模型的传输层,通过调用TCP套接字(Socket)的各种函数,使服务器和各个客户端之间建立快速可靠的连接,处理客户机发送的数据,实现流量检测与控制。-The Linux web applications in client- server model, and cross-hair. OSI reference model in the transport layer, by calling the TCP socket (Socket) of a variety of functions, so that the server and the client between the fast and reliable connections to deal with the client to send data, the achievement of traffic detection and control.
Platform: |
Size: 37888 |
Author: ll |
Hits:
Description: 使用 php 來建立 socket 連線,傳送資料-Using php to create a socket connection, send data
Platform: |
Size: 1024 |
Author: luck |
Hits:
Description: 用socket的UDP发送接收信息的,
VB.Net源代码。
-With the UDP send socket to receive the information, VB.Net source code.
Platform: |
Size: 35840 |
Author: 沐NeMo |
Hits:
Description: socket编程。winsock编程实现网络通信。
非阻塞模式实现面向连接一个服务器和多个客户端的收发数据(select模型)
阻塞模式实现面向无连接的一对一的通信
1.学习通过winsock编程实现网络通信。
2.学习面向连接和面向无连接的网络通讯方式的编程。
3.学习阻塞和非阻塞模式的网络通讯的编程。
4.熟悉与winsock有关的API函数的用法。
-socket programming. winsock network communications programming implementation. Non-blocking mode of connection-oriented implementation of a server and multiple client to send and receive data (select models) for non-blocking mode of communication to connect one-on-one 1. Learn through winsock network communications programming implementation. 2. Study connection-oriented and connectionless-oriented network communication programming. 3. Learn obstructive and non-blocking mode of network communication programming. 4. Familiar with winsock related to the usage of API functions.
Platform: |
Size: 7334912 |
Author: qingangjun |
Hits:
Description: 简单的socket编程,实现客户 与服务器文本的发送,客户端发送服务器接收-Simple socket programming, the realization of the client and the server send the text, the client sent the server to receive
Platform: |
Size: 75776 |
Author: donghuanhuan |
Hits:
Description: 本程序是用VC++开发的一个Socket程序,用户可以互相发送消息,发送文件等功能。-This procedure is used VC++ to develop a Socket procedures, users can send each other messages, send files and other functions.
Platform: |
Size: 1952768 |
Author: mao |
Hits:
Description: 基于Socket的网络通信设计,综合运用网络协议、编程语言、API和图形界面实现基于socket建立、监听、连接、发送数据和接收数据的网络通信程序。-Socket-based network communications design, the integrated use of network protocols, programming languages, API and socket-based graphical interface to establish, monitor, connection, send data and receive data network communication program.
Platform: |
Size: 3072 |
Author: 李爽 |
Hits:
Description: 用VC编写的socket,用于文件的收发,UDP协议-VC prepared with socket, used to send and receive documents, UDP protocol
Platform: |
Size: 2120704 |
Author: 张宏 |
Hits:
Description: Socket C++封装类, start, bind, listen, accept, close, send, recv-Socket C++ package type, start, bind, listen, accept, close, send, recv ...
Platform: |
Size: 7168 |
Author: Joker Lee |
Hits:
Description: tcp udp 网络编程源码 //创建套接字
sHost = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP)
if(INVALID_SOCKET == sHost)
{
printf("socket failed!\n")
WSACleanup() //释放套接字资源
return -1
}
//设置服务器地址
servAddr.sin_family =AF_INET
servAddr.sin_addr.s_addr = inet_addr("127.0.0.1")
servAddr.sin_port = htons((short)4999)
int nServAddlen = sizeof(servAddr)
//连接服务器
retVal=connect(sHost,(LPSOCKADDR)&servAddr, sizeof(servAddr))
if(SOCKET_ERROR == retVal)
{
printf("connect failed!\n")
closesocket(sHost) //关闭套接字
WSACleanup() //释放套接字资源
return -1
}
//向服务器发送数据
ZeroMemory(buf, BUF_SZIE)
strcpy(buf, "MyTCP")
retVal = send(sHost, buf, strlen(buf), 0)
if (SOCKET_ERROR == retVal)
{
printf("send failed!\n")
closesocket(sHost) //关闭套接字
WSACleanup() //释放套接字资源
return -1 -tcp udp network programming source code// create a socket sHost = socket (AF_INET, SOCK_STREAM, IPPROTO_TCP) if (INVALID_SOCKET == sHost) (printf ( " socket failed! \ n" ) WSACleanup () // release socket Word of resources return-1 )// set the server address servAddr.sin_family = AF_INET servAddr.sin_addr.s_addr = inet_addr ( " 127.0.0.1" ) servAddr.sin_port = htons ((short) 4999) int nServAddlen = sizeof ( servAddr) // connect to the server retVal = connect (sHost, (LPSOCKADDR) & servAddr, sizeof (servAddr)) if (SOCKET_ERROR == retVal) (printf ( " connect failed! \ n" ) closesocket (sHost) // Close socket WSACleanup () // release the socket resources return-1 )// to the server sending data ZeroMemory (buf, BUF_SZIE) strcpy (buf, " MyTCP" ) retVal = send (sHost, buf, strlen (buf), 0) if (SOCKET_ERROR == retVal) (printf ( " send failed! \ n" ) closesocket (sHost) // close the socket WSACleanup () // release socket resources to return
Platform: |
Size: 2048 |
Author: 闛靚 |
Hits:
« 12
3
4
5
6
7
8
9
10
...
44
»