Академический Документы
Профессиональный Документы
Культура Документы
Client/Server Archietecture
• Client System
• Server System
IP Address
An Internet Protocol address (IP address) is a
logical numeric address that is assigned to every
single computer, printer, switch, router or any
other device that is part of a network.
The IP address is the core component on which
the networking architecture is built; no network
exists without it.
An IP address is a logical address that is used to
uniquely identify every node in the network.
Because IP addresses are logical, they can
change.
Static IP Address
◦ IP Address of Servers
Dynamic IP Address
◦ IP Address of Clients
Socket
A socket is one endpoint of a two-way link
between two programs running on a network.
A socket is bound to a port number so that the
TCP layer can identify the application that data is
destined to be sent to.
The socket provides a bidirectional
communication endpoint for sending and
receiving data with another socket.
Socket connections normally run between two
different computers on a local area
network (LAN) or across the internet, but they
can also be used for interprocess communication
on a single computer.
Socket Programming
Socket programming is a way of
connecting two nodes on a network to
communicate with each other.
One socket(node) listens on a particular
port at an IP, while other socket reaches
out to the other to form a connection.
Server forms the listener socket while
client reaches out to the server.
Socket Programming with UDP
clientSocket.close()
serverSocket.bind((’’, serverPort))
clientSocket.close()
serverSocket.bind((‘’,serverPort))