Chapter 21 Flashcards
What is socket
A socket is an end point of a two-way communication link between two programs running on the network.
What is the relationship of socket and port
Socket is bound to port number
What is port
Port is transport address to which processes can listen for connection requests
Port below 1024 use for what kind of services
Standard services
What are TCP and UDP
They are 2 different protocols used to send and receive data
64k port use to TCP and 64K port use for UDP. True/false
True
What is port number of http protocol
80
What is name of socket for server
server socket
What is name of socket for client
Communication socket
Which socket is used for communication between client and server
Communication socket
What is package of java for socket programming
java.net
What is socket method to get output
getOutputStream()
What is socket method to close it
close()
What accept() method do
Wait for incoming communication
What is echo server
Echo server response back to client