Tài liệu Bài giảng TCP/IP - Chapter 16: Socket Interface: Chapter 16SocketInterfaceCONTENTS SOME DEFINITIONS SOCKETS BYTE ORDERING ADDRESS TRANSFORMATION BYTE MANIPULATION FUNCTIONS INFORMATION ABOUT REMOTE HOST SOCKET SYSTEM CALLS CONNECTIONLESS ITERATIVE SERVERCONTENTS (continued) UDP CLIENT-SERVER PROGRAMS CONNECTION-ORIENTED CONCURRENT SERVER TCP CLIENT-SERVER PROGRAMSSOME DEFINITIONS16.1Figure 16-1Data typesFigure 16-2Internet address structureSOCKETS16.2Figure 16-3Socket addressFigure 16-4Socket structureFigure 16-5Socket typesBYTE ORDERING16.3Figure 16-6Big-endian byte orderFigure 16-7Little-endian byte orderThe byte order for the TCP/IPprotocol suite is big endian.Figure 16-8Bite-order transformationFigure 16-9Declarations for byte-order transformationADDRESSTRANSFORMATION16.4Figure 16-10Address transformationFigure 16-11Declarations for address transformation functionsBYTEMANIPULATIONFUNCTIONS16.5Figure 16-12Declarations for byte-manipulation functionsINFORMATIONABOUT REMOTEHOST16.6Figure 16-13Declaration for gethostbynameFig...
44 trang |
Chia sẻ: honghanh66 | Lượt xem: 780 | Lượt tải: 0
Bạn đang xem trước 20 trang mẫu tài liệu Bài giảng TCP/IP - Chapter 16: Socket Interface, để tải tài liệu gốc về máy bạn click vào nút DOWNLOAD ở trên
Chapter 16SocketInterfaceCONTENTS SOME DEFINITIONS SOCKETS BYTE ORDERING ADDRESS TRANSFORMATION BYTE MANIPULATION FUNCTIONS INFORMATION ABOUT REMOTE HOST SOCKET SYSTEM CALLS CONNECTIONLESS ITERATIVE SERVERCONTENTS (continued) UDP CLIENT-SERVER PROGRAMS CONNECTION-ORIENTED CONCURRENT SERVER TCP CLIENT-SERVER PROGRAMSSOME DEFINITIONS16.1Figure 16-1Data typesFigure 16-2Internet address structureSOCKETS16.2Figure 16-3Socket addressFigure 16-4Socket structureFigure 16-5Socket typesBYTE ORDERING16.3Figure 16-6Big-endian byte orderFigure 16-7Little-endian byte orderThe byte order for the TCP/IPprotocol suite is big endian.Figure 16-8Bite-order transformationFigure 16-9Declarations for byte-order transformationADDRESSTRANSFORMATION16.4Figure 16-10Address transformationFigure 16-11Declarations for address transformation functionsBYTEMANIPULATIONFUNCTIONS16.5Figure 16-12Declarations for byte-manipulation functionsINFORMATIONABOUT REMOTEHOST16.6Figure 16-13Declaration for gethostbynameFigure 16-14Hostent structureSOCKET SYSTEMCALLS16.7Figure 16-15Declaration for socket functionFigure 16-16Declaration for bind functionFigure 16-17Declaration for connect functionFigure 16-18Declaration for listen functionFigure 16-19Declaration for accept functionFigure 16-20Declaration for sendto functionFigure 16-21Declaration for recvfrom functionFigure 16-22Declaration for read functionFigure 16-23Declaration for write functionFigure 16-24Declaration for close functionCONNECTIONLESSITERATIVESERVER16.8Figure 16-25Socket interfacefor connectionlessiterative serverUDP CLIENT-SERVERPROGRAMS16.9CONNECTION-ORIENTEDCONCURRENT SERVER16.10Figure 16-26Socket interfacefor connection-orientedconcurrent serverFigure 16-26 (repeated), Part I Figure 16-26 (repeated), Part II Figure 16-27, Part IClientand ServerFigure 16-27, Part II
Các file đính kèm theo tài liệu này:
- ch16_2051.ppt