Chapter 21 Flashcards

1
Q

What is socket

A

A socket is an end point of a two-way communication link between two programs running on the network.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is the relationship of socket and port

A

Socket is bound to port number

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is port

A

Port is transport address to which processes can listen for connection requests

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Port below 1024 use for what kind of services

A

Standard services

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What are TCP and UDP

A

They are 2 different protocols used to send and receive data

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

64k port use to TCP and 64K port use for UDP. True/false

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is port number of http protocol

A

80

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is name of socket for server

A

server socket

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is name of socket for client

A

Communication socket

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Which socket is used for communication between client and server

A

Communication socket

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is package of java for socket programming

A

java.net

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is socket method to get output

A

getOutputStream()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is socket method to close it

A

close()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What accept() method do

A

Wait for incoming communication

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is echo server

A

Echo server response back to client

How well did you know this?
1
Not at all
2
3
4
5
Perfectly