Hot Search : Source embeded web remote control p2p game More...
Location : Home Search - named pipe
Search - named pipe - List
DL : 0
网络编程,一定离不开套接口;那什么是套接口呢?在Linux下,所有的I/O操作都是通过读写文件描述符而产生的,文件描述符是一个和打开的文件 相关联的整数,这个文件并不只包括真正存储在磁盘上的文件,还包括一个网络连接、一个命名管道、一个终端等,而套接口就是系统进程和文件描述符通信的一种 方法。目前最常用的套接口是字:字节流套接口(基于TCP)和数据报套接口(基于UDP),当然还有原始套接口,原始套接口提供TCP套接口和UDP套接 口所不提供的功能,如构造自己的TCP或UDP分组,我们这里主要介绍字节流套接口和数据报套接口。- Network programming, they must take sets of interfaces then what is a socket then? In Linux, all the I/O operations are generated through the read and write file descriptors, file descriptors and open a file associated with an integer, this document does not only include the real file is stored on disk, but also includes a network connection, a named pipe, a terminal and so on, while the socket is a system process and file descriptors communication methods. The most commonly used interface is a set of words: byte stream socket (based on TCP) and datagram sockets (based on UDP), of course, the original set of interfaces, the original set of interface provides TCP socket and UDP sockets are not provided by the features, such as TCP or UDP construct their own group, we are here mainly introduces the byte stream sockets and datagram sockets.
Date : 2025-12-25 Size : 8kb User : rason

本书第一部分讲述的是传统的网络接口N e t B I O S、重定向器以及通过重定向器进行的各类网络通信。尽管本书大部分内容均围绕 Wi n s o c k编程这一主题展开,但是, A P I比起Wi n s o c k 来,仍然具有某些独到之处。其中,第 1章探讨的是N e t B I O S接口,它和Wi n s o c k类似,也是 一种与协议无关的网络A P I。N e t B I O S提供了异步调用,同时兼容于较老的操作系统,如 O S / 2 和D O S等等。第2章讨论了重定向器的问题,它是接下去的两个新主题—邮槽(第3章)和 命名管道(第4章)的基础。重定向器提供了与传输无关的文件输入/输出方式。邮槽是一种 简单的接口,可在Wi n d o w s机器之间实现广播和单向数据通信。最后,命名管道可建立一种双向信道,这种信道提供了对Wi n d o w s安全通信的支持。-The first part of the book tells the story of a traditional network interface N et BIOS, redirector and a variety of network communication conducted via redirector. Although most of the book revolves around the themes Wi nsock programming, however, API compared to Wi nsock years, still has some unique. Which is discussed in Chapter 1, N et BIOS interface, and Wi nsock similar, but also a network protocol independent API. N et BIOS provides asynchronous calls, while compatible with older operating systems such as OS/2 and DOS, and so on. Chapter 2 discusses the redirector problem, it is the next two new themes- Mail Slot (Chapter 3) and named pipes (Chapter 4) foundation. Redirect provides a transport-independent file input/output. The mail slot is a simple interface that enables broadcast and one-way data communication between Wi ndows machines. Finally, the named pipe can create a two-way channel, this channel provides support for Wi ndows secure communication.
Date : 2025-12-25 Size : 9.49mb User : 周舟
CodeBus is one of the largest source code repositories on the Internet!
Contact us :
1999-2046 CodeBus All Rights Reserved.