它极大简化了网络编程,如TCP和UD P套接字服务器。
It greatly simplifies and streamlines network programming such as TCP and UDP socket server.
如何使用多个套接字服务器端来过滤接收UDP消息?
UNIX - How to use multiple sockets server-side to receive UDP messages in order to filter them?
这篇文章是关于一个可扩展的UD P套接字服务器程序。
我有一个异步套接字服务器,我们接收遥测数据,当远程设备不寄给我们数据,我们有能力来发送命令请求数据。
I have an asynchronous socket server where we receive telemetry data, and when the remote devices do not send us data, we have the ability to send commands to request data.
等待TIME_WAIT结束可能是令人恼火的一件事,特别是如果您正在开发一个套接字服务器,就需要停止服务器来做一些改动,然后重启。
Waiting for TIME_WAIT to finish can be annoying, especially if you're developing a socket server and you need to stop the server to make changes and then restart it.
最后一个内部处理作业是以期望端口号绑定到服务器套接字上。
The last housekeeping job is to bind to a server socket on the desired port number.
图7对整个过程进行了归纳,它不但从套接字api的角度展示了应用程序的流程,而且还从客户机和服务器的角度介绍了它们之间的关系。
Figure 7 Outlines the entire process and shows not only the flow of the application from a sockets API perspective but also the relationships from a client and server perspective.
打开或关闭远程主机或服务器的套接字是一个网络操作,不需要对运行此应用程序的图像进行大量处理工作。
The ability to open and close sockets to remote hosts or servers is a network operation and does not require any large amount of processing on the image running the application.
然后客户机会等待响应,但是,如果套接字的另一端没反应,客户机会再次尝试启动服务器。
The client will wait for a response, but if the other end of the socket goes away, the client then tries again to start the server.
如果这些技术能够通过服务器打开套接字,如果它们能够传输XML数据,我们的任务就完成了。
If these technologies could open a socket with the server and if they can transfer XML data, you're done.
起初令人惊讶的一个统计信息是,CORBA服务器比原始套接字实现具有更小的消息且速度更快。
One statistic that did come initially as a surprise is that the CORBA server had smaller messages and was faster than the raw sockets implementation.
和DROP 不同,REJECT不会在服务器和客户机上留下死套接字。
Unlike DROP, REJECT doesn't leave dead sockets around on the server and client.
套接字的输出流将成为服务器应用程序的输入流,反之亦然。
The output stream of the socket becomes the input stream to the server application and vice-versa.
客户端编写一条到该套接字的消息,服务器处理该消息并编写类型为PSEUDO_MSG_ACK的响应。
The client writes a message to the socket, the server processes the message and writes its response back with type PSEUDO_MSG_ACK.
图3中的架构图显示了客户端和服务器应用程序如何访问具有输入和输出流的套接字。
The architectural diagram below in Figure 3 shows how the client and server applications have access to a socket that has an input and an output stream.
只要此套接字对象读取到来自服务器的数据,就会触发ondata事件,该事件将由为onData定义的处理方法处理。
Whenever this socket object reads data from the server, it will fire an onData event that will be handled by the handler defined for onData.
在这里,我将服务器套接字绑定到localhost: 20340这一地址。
Here, I've bound the server socket at the localhost: 20340 address.
socket类提供了以任何格式对服务器套接字读写二进制数据的方法。
The socket class provides a means to read and write binary data to server sockets in any format.
Asyncore模块提供了以异步的方式写入套接字服务客户端和服务器的基础结构。
The Asyncore module provides the basic infrastructure for writing asynchronous socket service clients and servers.
套接字的服务器端是在运行服务器应用程序的机器上创建的,服务器应用程序获得一个端口并在该端口上侦听来自客户端应用程序的连接。
The server end of the socket is created on the machine where the server application is running and given a port, and it then listens on this port for a connection from a client application.
如果该套接字不存在,或者不能打开,客户端将尝试不停地访问服务器。
If the socket does not exist, or cannot be opened, the client attempts to spawn a server.
其原因(早些时候曾经提到过)是,用原始套接字,您需要为您向服务器作的每个请求建立一个新连接。
The reason for this (as mentioned earlier) is that with raw sockets you need to establish a new connection for every request that you make to the server.
在这个简单的非阻塞服务器-套接字示例中,服务器读取发送自客户机的文件名,显示该文件的内容,然后将内容写回到客户机。
In this simple nonblocking server-socket example, the server reads a file name sent from the client, displays the file contents, and writes the contents back to the client.
套接字的客户机端在运行客户端应用程序的机器上创建,该客户端应用程序获得一个端口并在该端口上侦听来自服务器应用程序的连接。
The client end of the socket is created on the machine where the client application is running and given a port, and it then listens on this port for a connection from a server application.
当一个客户端连接到该服务器套接字时,它将为我提供一个套接字,显示连接。
When a client connects to the server socket, it will give me a socket representing that connection.
通常使用套接字连接游戏服务器,常常使用UDP。
Socket connections to the game servers are common, often using UDP.
服务器端的套接字现在已建立。
完成之后,连接即建立,这个套接字现在即可用于从服务器推送数据。
When that's complete, the connection is established, and this socket can now be used to push data from the server.
这是类似于其他关系数据库的标准客户机/服务器数据库配置,允许出现使用TCP套接字的并发连接。
This is the standard client/server database configuration similar to other relational databases, allowing concurrent connections using TCP sockets.
服务器端的套接字状态现在是SYN_RCVD。
应用推荐