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.
套接字的客户机端在运行客户端应用程序的机器上创建,该客户端应用程序获得一个端口并在该端口上侦听来自服务器应用程序的连接。
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.
然后客户机会等待响应,但是,如果套接字的另一端没反应,客户机会再次尝试启动服务器。
Each time a corresponding client socket contains any read, write or error operations, the corresponding callback function is called.
每当对应的客户端套接字包含读、写或错误操作时,调用对应的回调函数。
When a client connects to the server socket, it will give me a socket representing that connection.
当一个客户端连接到该服务器套接字时,它将为我提供一个套接字,显示连接。
For ClearCase Remote Client checkin and AddToSourceControl (mkelem) operations, there are multiple threads involved in streaming the data from the request socket to the back end.
对于ClearCaseRemoteClient检入以及AddToSourceControl (mkelem)操作,从请求插座到末端中的流数据会涉及到多个线程。
Because it requires you only to open a socket using, say, Telnet, a client using any language can communicate with the JMS broker.
因为它只要求打开一个套接字(比如使用telnet),所以使用任何语言的客户机都能够与JMS代理进行通信。
This method constructs a socket targeted to the TCP server on the localhost at a host number known both to the client and server through URIConstants.
此方法将通过URIConstants在客户机和服务器已知的主机编号上构造一个套接字,该套接字以本地主机上的TCP服务器为目标。
If the client process has not explicitly issued a bind system call before initiating the connection, implicit binding on the local socket is taken care of by the stack.
如果在初始化连接之前,客户端进程没有显式发布bind系统调用,则堆栈负责本地套接字上的隐式绑定。
The call to accept blocks until the server socket accepts a client request for connection.
对accept的调用将一直阻塞,直到服务器套接字接受了一个请求连接的客户机请求。
When a client connects to the load balancer, Node.js creates a socket between the client and itself.
当一个客户的连接到负载平衡器时,Node . js在客户端与自己本身之间创建一个套接字,我们称之为client_socket。
You'll need a place to hold all of client connections so that you can write to all of them when you write data. Here is the variable that holds all of the client socket connections
您将需要一个位置来保存所有客户端连接,以便在写入数据时可以写到它们中去。
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.
如果该套接字不存在,或者不能打开,客户端将尝试不停地访问服务器。
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.
在这个简单的非阻塞服务器-套接字示例中,服务器读取发送自客户机的文件名,显示该文件的内容,然后将内容写回到客户机。
This new socket is connected to the client and the other socket s remains in LISTEN state to accept further connections.
将此新的套接字连接到客户端,使另外一个套接字s保持LISTEN状态,以接受进一步连接。
Let's look at another client socket example that takes data from the Internet and displays it.
我们来看另一个网络编程示例,可以从互联网获取数据,然后显示这些数据。
The client writes a message to the socket, the server processes the message and writes its response back with type PSEUDO_MSG_ACK.
客户端编写一条到该套接字的消息,服务器处理该消息并编写类型为PSEUDO_MSG_ACK的响应。
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.
图3中的架构图显示了客户端和服务器应用程序如何访问具有输入和输出流的套接字。
In Listing 1, the call to select blocks until the server either receives a new client or detects available bytes being written to an open socket.
在清单1中,在服务器接收新客户机或检测到正把可用的字节写到打开的socket前,select的调用阻塞了。
In the client, I create an SCTP socket, then create a sockaddr structure containing the endpoint to which it will connect.
在客户机中,我们首先创建了一个SCTP套接字,然后创建了一个sockaddr结构,其中包含了将要连接的端点。
The MessageServer detects a socket connection from the client.
MessageServer检测来自客户机的套接字连接。
URIClient will strip off the parameters (i.e., claim=25222) and will attempt to make a socket connection to the URIServer at a port number known to the client and server.
URIClient将移除参数(即,claim=25222)并将尝试在客户机和服务器已知的端口号上建立与URIServer 之间的套接字连接。
The code in Listing 4 shows how you can open a client socket from flex.
清单4中的代码展示了如何通过Flex打开客户端套接字?
The QueueManager reads from the socket to obtain the complete message from the client.
QueueManager从该套接字中得到来自客户机的完整消息。
To establish a WebSocket connection, the client and server upgrade from the HTTP protocol to the Web Socket protocol during an initial handshake, as shown in Example 1.
要建立一个WebSocket连接,客户端和服务器在初次握手的时候从HTTP协议提升到WebSocket协议,如例1所展示的。
Client processes communicate with the pseudo daemon through a UNIX-domain socket (that's a socket in the file system) rather than using TCP or UDP.
客户机进程通过unix域套接字(即文件系统中的套接字)与pseudo守护进程进行通信,而不是使用TCP或UDP进行通信。
You want to emulate a socket server you temporarily do not have, and you want to keep traffic from the server low and improve response time from the client side.
此时,我们需要模拟目前暂时不可用的socket服务器,并且想要让来自服务器的流量保持很低并能够改进来自客户机端的响应时间。
tcp_usrreq () now calls soisconnecting (), which sets the state of the socket on the client host as SYN_SENT.
tcp_usrreq ()现在调用soisconnecting (),它可以将客户端主机上的套接字的状态设置为 SYN_SENT。
This is accomplished by installing and using a Flash - (client-side) and Ruby - (server-side) based socket connection to let chat clients permanently pull updates from the server.
为了实现此目的,可以安装并使用一个基于Flash(客户机端)和Ruby(服务器端)的socket连接以使chat客户机能永久地从服务器获取更新。
The client implemented its own TCP stack and ran on top of the raw socket kernel API.
客户机实现自己的tcp栈并在原始socket内核api上运行。
应用推荐