在这个简单的非阻塞服务器-套接字示例中,服务器读取发送自客户机的文件名,显示该文件的内容,然后将内容写回到客户机。
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.
执行此函数后,您将不再能够从文件或套接字中读取任何信息。
You are no longer able to read from the file or socket after this function.
在AIX 上,进程是关于OS 控制资源(比如文件和套接字信息)、虚拟地址空间以及至少一个执行线程的一系列信息。
On AIX a process is a collection of information about OS-controlled resources (such as file and socket information), a virtual address space, and at least one thread of execution.
描述符可以表示到设备、管道或套接字的连接,这些连接用于与另一个进程或普通文件进行通信。
Descriptors might represent a connection to a device, pipe, or a socket for communicating with another process or to a normal file.
使用零拷贝的应用程序要求内核直接将数据从磁盘文件拷贝到套接字,而无需通过应用程序。
Applications that use zero copy request that the kernel copy the data directly from the disk file to the socket, without going through the application.
可以看出,输出流是参数化的:您可以把一些日志记录放在文件中,其他的送往网络套接字。
As you can see, the output stream is parameterized: you can send some logs to a file and others to a network socket.
应用程序实际上在这里担当了一个不怎么高效的中介角色,将磁盘文件的数据转入套接字。
In effect, the application serves as an inefficient intermediary that gets the data from the disk file to the socket.
文件本身、目录、管道、设备和套接字都被当作文件。
Files themselves, directories, pipes, devices, and sockets are treated as files.
请记住,文件描述符包括诸如套接字之类的内容。
选择网络传输方法,并在低级协议(如套接字、RMI、URL和文件等等)之中选择。
Select network transport method, choosing among low-level protocols such as sockets, RMI, URLs, files, and so on.
Handle给出进程所用句柄(文件、套接字等)的列表。
Handle shows the list of handles (to files, sockets, and so on) that a process is using.
不管连接是安全的还是不安全的,OpenSSL都使用了一个名为BIO的抽象库来处理包括文件和套接字在内的各种类型的通信。
OpenSSL USES an abstraction library called BIO to handle communication of various kinds, including files and sockets, both secure and not.
这些文件的执行方法与原始套接字应用程序中的对应文件的执行方法完全一样。
These are executed exactly as their counterparts in the raw socket application.
进行缓冲之后,out put .write方法将文件数据写入到outputStream对象的套接字中。
Once buffered, the file data is written through the output.write method into the socket of the OutputStream object.
客户机进程通过unix域套接字(即文件系统中的套接字)与pseudo守护进程进行通信,而不是使用TCP或UDP进行通信。
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.
此套接字的文件描述符对象。
此套接字的文件描述符对象。
应用推荐