The UNIX Operating System

TOP

UP


Ray Seyfarth

ORCA


Computer Science

COST

USM




System Data Structures for Sockets


  • In order to use a socket, the kernel needs to keep track of several pieces of data

  • Protocol Family: a parameter to the socket call

  • Service Type (Stream, Datagram): parameter to socket

  • Local IP Address: can be set with bind

  • Local Port: can be set with bind

  • Remote IP Address: can be set with connect

  • Remote Port: can be set with connect

  • Ultimately all 6 values must be known to communicate


University of Southern Mississippi
Ray.Seyfarth@usm.edu
Updated 20:05 Jun 5, 2000