搜索资源列表
java实现服务器和客户机通讯的的方法
- 本文介绍一种用Java的Socket和ServerSocket实现服务器和客户机通讯的的方法。原理是在服务器端建立ServerSocket端口并监听,接收到客户端的连接请求时建立Socket,得到Socket的输入输出流。在客户端新建Socket并获得输入输出流。服务器和客户端的输入输出流建立后使用writeLine()和println()方法彼此发送和接收数据。为提高代码效率,建立两个类clientAgent和serverAgent。 -This article introduces a
Socket文件传输
- 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
www.cohoo.com.cn.socket
- 共四个演示。分别如下: 1:Sample 一个简单的使用了共享内存映射的例子,运行两个实例看看就知道,没有什么特别。 2:SendText 不用窗口子类化,而达到和发送自定义消息同样的效果。 3:SendFile 由于演示2中还是通过发消息来传递字符串,不可能传递大块文本,本例综合演示1和演示2达到传递大块文本的功能。 4:Chat 演示2和演示3使用的都是SendMessage来发放通知消息,所以不能异步通讯,SetWindowText
sendpack
- raw socket 发送数据包 sendpacket-send raw socket packet sendpacket
socket
- 我们自己创建各个的头部,系统只是把它们发送出去. 在实例中,由于我们要修改我们的源IP地址, 所以我们使用了setsockopt函数,如果我们只是修改TCP数据,那么IP数据一样也可以由系统来创建的. -To create all our own head, the system only to send them out. In the example, because we have to modify our source IP address, so we use the sets
QQ
- 主要实现接受和发送信息的功能。气动并属兔对方IP后单击连接按钮,来实现,能很好说明。NET在中Socket编程技术 -Mainly to receive and send messages to achieve functions. Pneumatic and other IP is a rabbit and click connect button, to achieve, can be a very good note. NET programming in Socket
FQ
- socket通讯的基本例子,发送消息和接受消息-The basic example of socket communication, send messages and receive information
vcsocket
- Visual c++下实现收发信息的socket源程序-Visual c++ under the socket to send and receive information source
Socket
- C#编写的利用Socket来发送数据(对方IP)的小程序-Written in C# use Socket to send data (the other IP) of the small program
UDP-sender
- UDP发包代码,可通过该代码模仿写socket发包-udp packet send code
SyncSocket
- windows系统下的一个基于WS2_32.lib的socket网络框架,与CAsyncSOcket类不一样的地方是它可以跨线程使用,采用select模型实现socket通讯,具有常见的事件方法,比如OnClose,OnAccept,OnReceive,OnSend等事件通知,还有常用的send等发送数据接口,简单易用。欢迎大家使用,也欢迎改进改软件框架。-1.base on S2_32.lib 2.select model 3.event model. 4.easy to use
Server
- socket通信的服务端,可以接受客户端发送到信息,并实现给客户端发送信息。-Socket communication service end, can accept client sends that information, and realize the client send information.
Sender
- send data by socket-send data by socket
rs232test
- SOCKET 接收命令 再利用 COM 口傳送命令出去. 再從 COM 口讀取資料, 送回SOCKET-define a socket to recive data from internet. transfer and send command via COM port, Read and post back via socket
UDP.rar
- 1、首先需要定义的对象: SOCKET ReceivingSocket //接收端的Socket SOCKADDR_IN ReceiverAddr //接收端的地址信息 char ReceiveBuf[1024] //接收数据缓冲区大小 int BufLength //缓冲区长度 SOCKADDR_IN SenderAddr //发送数据端地址信息 int SenderAddrSize = sizeof(SenderAddr) //发送
Server_To_Clinet
- MFC写的2个程序,通过socket通信,上下位机的。上位机发送一个名字给下位机,下位机通过查询数据库取得电话号码传回上位机,带详细文档。-MFC write two procedures, through the socket communication, next-bit machine. PC to send a name to the next crew, the next crew by querying the database to obtain the phone numbers
server
- 仿QQ聊天程序服务器端代码,利用socket套接字实现通信,可以向客户端发送消息-Imitation QQ chat program server-side code, the use of socket socket for communication, you can send a message to the client
tcpIP4
- 一个简单的web服务器,它仅能处理一个请求. Web服务器: (1)当一个客户(浏览器)连接时创建一个连接套接字; (2)从连接套接字接收http请求。 (3)解释该请求以确定所请求的文件; (4)从服务器的文件系统获得请求的文件。 (5)创建一个由请求的文件组成的http响应报文。报文前面有首部行。 (6)经TCP连接想请求的浏览器发送响应。如果浏览器请求的文件不在服务器,服务器返回“404 Not Found”差错报文。 Web客户端:采用浏览器实现。输入UR
tcpip2
- 简单的客户/服务器程序实现客户和服务器相互收发数据直到一端输入“end”结束。 具体: 客户:(1)客户创建流套接字,向服务器发起TCP连接。(或是客户创建数据报套接字) (2)连接创建成功后,通过套接字向服务器持续发送或是接收数据。 (3)输入或是收到命令”end”,结束收发数据,并断开与服务器的连接。 服务器:(1)服务器创建监听套接字,监听客户TCP连接请求。(或是创建数据报套接字) (2)当收到一个客户TCP连接请求,创建连接套接字同意与其创建连接。
