3 Internet Applications and Network Programming
3 Internet Applications and Network Programming
Abraham
Professor
University of Texas Pan American
Server side
Client side
Request and Reply
The client and server communicate
with each other through something
called Berkley socket or winsock
Socket API is a de facto standard for
Internet communication
SOCKET
SERVICE PORT
HTTP 80
POP3 110
SMTP 25
TELNET 23
FTP 21,20
FINGER 79
LOCAL LOOPS 0
Winsock properties
Bytes Returns the number (long integer) of bytes
Received currently in the receive buffer. Read-only.
LocalHost Returns the name of the local host. Read
Name only (Available at run time).
Local IP Returns IP assigned to the local machine.
You may use the name of the machine.
Local Port Returns the local port number. You may set
the port number with this property. Long
integer.
Protocol Either TCP or UDP. You can set this.
Package