bsd unix transport api the socket interface
play

BSD UNIX transport API: The Socket Interface 15 February, 2001 The - PDF document

BSD UNIX transport API: The Socket Interface 15 February, 2001 The Computer Communications Course 1 The Client-Server Programming Paradigm most networking applications can be divided into two pieces: most networking applications can


  1. � � BSD UNIX transport API: The Socket Interface 15 February, 2001 The Computer Communications Course 1 The Client-Server Programming Paradigm most networking applications can be divided into two pieces: most networking applications can be divided into two pieces: client and and server server client request Server Client response �������������������������������������������������������� ���������������������������������������������������� ������������������������������������������������� ��������������������������������������������������������������� ���������������������������������������������������������������������� ����������������������������� ��������������������������������������������������������������������� ������������������������������������� 15 February, 2001 The Computer Communications Course 2 1

  2. � � � � � � � � � � � � � � � � � � � � � � UNIX I/O Paradigm and Network I/O �������������������������� ����� ������������������������������ ��������� ���������������������������������������������������� ���������������������������������������������������� ������������������������������� ������������������������������� ������������������������� ������������������������� ��������������������������������������� ��������������������������������������� ��� ��� ��������������������������������������������� ��������������������������������������������� �������������������������������������� �������������������������������������� ���������������������������������������������� ���������������������������������������������� �������������������������������������� �������������������������������������� 15 February, 2001 The Computer Communications Course 3 Specifying A Protocol Interface ����������������������������������������������������������� ����������������������������������������������������������� ������������������������ ������������������������ ������������������������������������������� ������������������������������������������� ��������� ��������� ����������������� ����������������� ��������� ���������������� ���������������� ��������� ��������� ��������� ������������������� ������������������� 15 February, 2001 The Computer Communications Course 4 2

  3. � � � � � � � � The Socket Abstraction ���������������������������������������������������������� ���������������������������������������������������������� ���������������������������������������������������������������� ���������������������������������������������������������������� ��������� ��������� ����������������� ����������������� � � ���������������������������������������������������������������� ���������������������������������������������������������������� ������������ ������������ ������������������������������������������������������ ������������������������������������������������������ ������������������������������������������������ ������������������������������������������������ ���������������������������������������������������������������� ���������������������������������������������������������������� ���������� ���������� 15 February, 2001 The Computer Communications Course 5 System Data Structures for Sockets 0: family : PF_INET To the 1: service : SOCK_STREAM system file table 2: Local port: 3: Remote IP: Local IP: 4: Remote port: 15 February, 2001 The Computer Communications Course 6 3

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend