Read without ads and support Scribd by becoming a Scribd Premium Reader.
 
1
Socket ProgrammingSocket Programmingin Javain Java
CSE 3214, Winter 2011Instructor: N. Vlajic
Required reading:Kurose 2.7, 2.8
 
2
Socket Programming
SocketSocket
 –
a local-host, application created, OS controlled interface (a “door”)into which application process can send/receive messages to/fromanother application process
also,a door between application process and enda door between application process and end--toto--end transportend transportprotocol TCP or UDPprotocol TCP or UDP
each TCP/IP socket is uniquely identified with two pieces of information
(1) name or address of the host (IP addressIP address
))
(2) identifier of the given process in the destination host (port number port number )
 
socket (IP address, port)must be known
 
3
Socket ProgrammingSocket Programming
 –
development of client/server development of client/server application(sapplication(s) that) thatcommunicate using socketscommunicate using sockets
developer has control of everything on applicationdeveloper has control of everything on applicationside but has little control of transport side of socketside but has little control of transport side of socket
only control on transport-layer side is
(1) choice of transport protocol (TCP or UDP)(2) control over a few transport-layer parameters e.g.max buffer and max segment size
Socket Programming (cont.)
Socket programming refers to programming at the application level/layer!
 
Socket programming refers to programming at the application leveSocket programming refers to programming at the application level/layer!l/layer!
TCP vs. UDP inTCP vs. UDP inSocket ProgrammingSocket Programming
 –
to decide which transport-layer protocol, i.e. whichtype of socket, our application should use, we needto understand how TCP and UDP differ in terms of 
reliabilityreliability
timingtiming
overheadoverhead
Search History:
Searching...
Result 00 of 00
00 results for result for
  • p.
  • Notes
    Load more