Description: 该实例完成一个服务器端和客户端简单的会话通信过程.要求主机上安装TCP/IP协议,并设定IP.服务器端和客户端使用同一台主机的不同端口号,服务器端使用的端口号为2000,客户端使用的端口号为3000. 服务器端程序先运行,首先初始化Winsock,然后创建套接字,在2000端口上进行绑定,接着在2000端口进行侦听,并进入等待状态.客户端后运行,同样首先初始化winsock,然后创建套接字,接着尝试和服务器端的连接.连接一旦建立,就可以在服务器端和客户端之间进行通信.客户端提示输入一个数字,比如输入50,那么客户端会从"data0"到"data49"发送50个字符串,输入0退出.-completed an example of the server and client simple oral communication process. Asked on the mainframe installed TCP/IP protocol and set the IP. Servers and clients using the same host of different ports, the use of the server port to 2000, clients use the port number as 3000. server operating procedures first, the first initialization Winsock, and then create socket, in 2000 ports on bonding, then the 2000 port for the interception, and entered the wait state. client after running the same protocols of the first initialization, and then create socket, and then try to server connections. connecting once established, can the server and client communications between. the client suggested the importation of a number, such as the importation of 50, then the client will "data0" to Platform: |
Size: 546816 |
Author:小亮 |
Hits:
Description: SOCKET多线程,使用TCP连接,当有一个连接请求时候,建立一个线程。共有两个文件,一个Server,还有一个是Client-SOCKET multithreading, the use of TCP connections, when a link request, the establishment of a thread. A total of two documents, one Server, there is a Client Platform: |
Size: 1200128 |
Author:的三分 |
Hits:
Description: TCP网络调试程序
本程序可以用来进行TCP通信的调试,程序包含了TCP服务器和客户端两个部分。
TCP服务器可以在指定的端口进行监听,并同时最多处理100个连接。实时显示每个连接发送过来的数据,并且可以手工选择需要对哪个连接回送数据,或者是断开某个连接。
TCP客户端可以对某个IP(或者直接输入域名)的端口进行连接,实时显示已经连接的服务器发送的信息,可以手动输入需要发送到服务器的内容。-TCP network debugger can be used to carry out this procedure debugging TCP communication, the program includes a TCP server and client in two parts. TCP server port can be designated to monitor and at the same time deal with a maximum of 100 connections. Real-time display of each connection send data and can manually select which connections need to return data, or disconnect a connection. TCP client can be on a certain IP (or directly enter the domain name) to connect the port, real-time display has been connected to the server send the information, you can manually enter the need to send content to the server. Platform: |
Size: 55296 |
Author:韩波 |
Hits:
Description: TCP网络调试程序与程序源码
可以用来进行TCP通信的调试,程序包含了TCP服务器和客户端两个部分。
TCP服务器可以在指定的端口进行监听,并同时最多处理100个连接。实时显示每个连接发送过来的数据,并且可以手工选择需要对哪个连接回送数据,或者是断开某个连接。
TCP客户端可以对某个IP(或者直接输入域名)的端口进行连接,实时显示已经连接的服务器发送的信息,可以手动输入需要发送到服务器的内容。
主要就是用了winsock的一些函数进行封装。
源码中包含了用VC与EVC编译的源码-TCP network source debugger and procedures can be used for debugging TCP communications, the program includes a TCP server and client in two parts. TCP server port can be designated to monitor and at the same time deal with a maximum of 100 connections. Real-time display of each connection send data and can manually select which connections need to return data, or disconnect a connection. TCP client can be on a certain IP (or directly enter the domain name) to connect the port, real-time display has been connected to the server send the information, you can manually enter the need to send content to the server. Is mainly spent some function winsock package. Source code is included with VC compiler source with EVC Platform: |
Size: 113664 |
Author:robotlee2002 |
Hits:
Description: 本程序可以用来进行TCP通信的调试,程序包含了TCP服务器和客户端两个部分。
TCP服务器可以在指定的端口进行监听,并同时最多处理100个连接。实时显示每个连接发送过来的数据,并且可以手工选择需要对哪个连接回送数据,或者是断开某个连接。
TCP客户端可以对某个IP(或者直接输入域名)的端口进行连接,实时显示已经连接的服务器发送的信息,可以手动输入需要发送到服务器的内容。
这个程序在对一些自己编写的服务器或者客户端的程序进行调试的时候比较有用。-This procedure can be used for TCP communication debugging, the program includes a TCP server and client in two parts. TCP server port can be designated to monitor and at the same time deal with a maximum of 100 connections. Real-time display of each connection send data and can manually select which connections need to return data, or disconnect a connection. TCP client can be on a certain IP (or directly enter the domain name) to connect the port, real-time display has been connected to the server send the information, you can manually enter the need to send content to the server. This procedure in the preparation of some of their own server or client process more useful when debugging. Platform: |
Size: 1963008 |
Author:雷钊 |
Hits:
Description: spserver 是一个实现了半同步/半异步(Half-Sync/Half-Async)和领导者/追随者(Leader/Follower) 模式的服务器框架,能够简化 TCP server 的开发工作。
spserver 使用 c++ 实现,目前实现了以下功能:
1.封装了 TCP server 中接受连接的功能;
2.使用非阻塞型I/O和事件驱动模型,由主线程负责处理所有 TCP 连接上的数据读取和发送,因此连接数不受线程数的限制;
3.主线程读取到的数据放入队列,由一个线程池处理实际的业务。
4.一个 http 服务器框架,即嵌入式 web 服务器(请参考: SPWebServer:一个基于 SPServer 的 web 服务器框架)
-spserver is a realization of a semi-synchronous/semi-asynchronous (Half-Sync/Half-Async) and leader/followers (Leader/Follower) model server framework, to simplify the development of TCP server. spserver use c++ realize now realize the following functions: 1. Packaging the TCP server to accept connections function 2. the use of non-blocking type I/O and event-driven model, by the main thread responsible for handling all TCP connection read and send data, so connections are not thread a few restrictions 3. the main thread to read data Add queue, by a thread pool handle the actual business. 4. A http server framework, that is, embedded web server (please refer to: SPWebServer: a web server based on the framework of SPServer) Platform: |
Size: 71680 |
Author:Eagle518 |
Hits:
Description: 关于TCP,UDP协议的网络编程,程序实现了客户端和服务器端的通信连接,通过socket建立连接,可以互相发送消息接收。-On TCP, UDP network programming protocols, procedures realize the client and server communications connections to establish a connection through the socket, you can send a message to receive each other. Platform: |
Size: 64512 |
Author:周人 |
Hits:
Description: 一个windows SOCKET client端测试程序,与Remote Server 连接后可以发送和接收TCP Packet。在作网络程序开发时,我们用它做网络测试程序。基于microsoft visual studio 开发。-A windows SOCKET client-side test procedure, with the Remote Server connections can send and receive TCP Packet. In program development for the network, we use it to do network testing procedures. Development based on microsoft visual studio. Platform: |
Size: 6830080 |
Author:doujiange |
Hits:
Description: rinetd source code. full code is added in zip. Redirects TCP connections from one IP address and port to another. rinetd is a single-process server which handles any number of connections to the address/port pairs specified in the file /etc/rinetd.conf. Since rinetd runs as a single process using nonblocking I/O, it is able to redirect a large number of connections without a severe impact on the machine. This makes it practical to run TCP services on machines inside an IP masquerading firewall. rinetd does not redirect FTP, because FTP requires more than one socket Platform: |
Size: 1499136 |
Author:krish |
Hits:
Description: iocp_test 演示了styleman_iocp的使用方法.
netclienttest 使用styleman_network的客户端来连接上面iocp_test服务端.
经测试,iocp引擎可达到1000 tcp网络连接.并发每秒1KB/S的收发速度.-iocp_test demonstrates styleman_iocp to use. netclienttest use styleman_network client to connect to the server above iocp_test Tested, iocp engine up to 1000 tcp network connections. concurrency per 1KB/S transceiver speed. Platform: |
Size: 368640 |
Author:asdffd |
Hits:
Description: 初学者使用。J2ME的TCP连接应用,由六个Client和六个Server对应,逐步建立连接。开启一个服务器,同时开启多个客户端,通过服务器,多个客户端之间可以实现聊天-Beginners. J2ME application TCP connections, and six of six Client Server corresponding to gradually establish a connection. On a server, and open multiple clients through the server, multiple clients can chat between Platform: |
Size: 9216 |
Author:Micheal |
Hits:
Description: 演示将多个TCP客户端与单个服务器VI建立连接的方法。服务器VI跟踪现有活动的客户端连接数量,并向每个客户端VI发送随机数据。
-Method for establishing a connection between a plurality of TCP clients and a single server VI. The server VI tracks the number of clients that are active, and sends random data to each client VI. Platform: |
Size: 15360 |
Author:飞瑶 |
Hits:
Description: 演示将多个TCP客户端与单个服务器VI建立连接的方法。服务器VI跟踪现有活动的客户端连接数量,并向每个客户端VI发送随机数据。-Method for establishing a connection between a plurality of TCP clients and a single server VI. The server VI tracks the number of clients that are active, and sends random data to each client VI. Platform: |
Size: 15360 |
Author:飞瑶 |
Hits:
Description: 演示将多个TCP客户端与单个服务器VI建立连接的方法。服务器VI跟踪现有活动的客户端连接数量,并向每个客户端VI发送随机数据。-Method for establishing a connection between a plurality of TCP clients and a single server VI. The server VI tracks the number of clients that are active, and sends random data to each client VI Platform: |
Size: 20480 |
Author:飞瑶 |
Hits:
Description: 多协议文件传输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 Platform: |
Size: 22675456 |
Author:大酱 |
Hits: