Client / Server Programming with Tcp/Ip Sockets

Topics: IP address, Transmission Control Protocol, IPv4 Pages: 15 (4143 words) Published: August 27, 2013
Rajinder Yadav Copyright © 2007 www.devmentor.org
Client / Server Programming with TCP/IP Sockets
Author: Rajinder Yadav
Date: Sept 9, 2007
Web: http://devmentor.org
Email: rajinder@devmentor.org
Table of Content
Networks....................................................................................................................................................... 2 Diagram 1 – Communication Link............................................................................................................. 2 IPv4 Internet Protocol ................................................................................................................................. 2 IP Address................................................................................................................................................ 2 IP Classes ...................................................................................................................................................... 3 IP and the Hardware ................................................................................................................................... 3 IP and DNS................................................................................................................................................... 3 loopback................................................................................................................................................... 4 IP from hostname.................................................................................................................................... 4 hostname from IP.................................................................................................................................... 4 hostent structure ..................................................................................................................................... 4 TCP Transmission Control Protocol........................................................................................................... 5 Diagram 3 – Network Hop Topology ........................................................................................................ 5 TCP Window........................................................................................................................................... 5 Byte Ordering............................................................................................................................................... 6 Little-Endian ........................................................................................................................................... 6 Big-Endian............................................................................................................................................... 6 Diagram 4 – Address Byte Order............................................................................................................... 6 htons( ) and htonl( )................................................................................................................................. 6 ntohs( ) and ntohl( )................................................................................................................................. 6 Sockets .......................................................................................................................................................... 6 TCP Ports ................................................................................................................................................ 7 Table 1 – Well Known Ports...................................................................................................................... 7 Opening and closing a socket .................................................................................................................. 7 Initializing Winsock...
Continue Reading

Please join StudyMode to read the full document

You May Also Find These Documents Helpful

  • Tcp/Ip Essay
  • Tcp/Ip Essay
  • Tcp/Ip Essay
  • Socket Programming Essay
  • Osi vs Tcp/Ip Essay
  • Client and Server Essay
  • TCP/IP LAN Checkpoint Questions Essay
  • Client Server Essay

Become a StudyMode Member

Sign Up - It's Free