1 - Introduction To Socket Programming
1 - Introduction To Socket Programming
1 - Introduction To Socket Programming
Sock-et (noun)
A specially-made or
specially-shaped
hole or set of holes
into which
something is fitted
Example:- eye
socket & electrical
device socket
9/22/2011
1.
2.
9/22/2011
Operation
Explanation
Open
Close
Read
Write
Control (ioctl)
Name
9/22/2011
Layered model of
communication
9/22/2011
Element
Description
Host (Interface)
Network address (a
reachable network node)
Protocol
Port
0xC0A80101
9/22/2011
9/22/2011
On Linux systems:
the number of ports is limited to 65,535
many of the lower port numbers are reserved, such as:
port 80 for web servers
port 25 for sending mail
port 23 for telnet servers.
Ports are designated with a colon when describing an
IP address and port pair.
9/22/2011
9/22/2011
9/22/2011
Step 1
Step2
Step 3
Step 4
Step 5
Each
hardware
manufacturer can develop
its
own
hardware
architecture, it becomes
necessary to define a
standard
data
representation for data.
10