Web design rates - 1.3 1.3 g 7 section does not try

1.3 1.3 g 7 section does not try to be complete for the complete description, you may want to check the reading material listed in the References. With only a few exceptions, UNIX operating systems abstract system resources as files. For instance, the hard disk device is abstracted as a file such as /dev/rwd0c. Even physical memory on the machine is abstracted as a file, /dev/mem. You can open(2), read(2), write(2), or close(2) files, and files already opened by a process are identified by an integer file descriptor. int fd; /* file descriptor */ char buf[128]; fd = open( /tmp/foo , O_RDONLY, 0); if (fd < 0) { perror( open ); exit(1); /*NOTREACHED*/ } if (read(fd, buf, sizeof(buf)) < 0) { perror( read ); exit(1); /*NOTREACHED*/ } close(fd); exit(0); Accesses to the network are also abstracted as special kinds of files, called sockets. Sockets are created by a socket(2) system call. Sockets are a special kind of file descriptor, so they are represented as an integer and can be terminated by using close(2). On a socket(2) call, you need to identify the following three parameters: Protocol family AF_INET identifies IPv4. Type of socket SOCK_STREAM means connetion-oriented socket model. SOCK_DGRAM means datagram-oriented socket model. Protocol type such as IPPROTO_TCP or IPPROTO_UDP. For the Internet protocol, there are two kinds of sockets: connection-oriented and connectionless sockets. Connection-oriented sockets abstract TCP connections, and connectionless sockets abstract communication over UDP. Type of socket and protocol type has to be consistent; SOCK_STREAM has to be used with IPPROTO_TCP. Note: There are transport layer protocols other than TCP/UDP proposed in the IETF, such as SCTP or DCCP. They are also abstracted as connection-oriented or connectionless sockets. Chapter
We are the the largest streaming host company, and we provide professional audio & video web hosting streaming using Real Networks, QuickTime, Flash and Windows Media.We strongly recommend you to visit and check web hosting streaming services.

Leave a Reply