Java TCP Flashcards

1
Q

What does the Java API use for TCP communication?

A

java.net.Socket, java.net.ServerSocket, java.net.InetAddress, java.net.InputStream, java.net.OutputStream

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

Describe java.net.Socket

A

Explicitly created by a client to with a specified server IP address and port number

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

Describe java.net.ServerSocket

A

It is a socket bound to a particular port waiting to accept connection requests from client sockets

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

Describe java.net.InetAddress

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

Describe java.net.InputStream

A

Stream to receive bytes

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

Describe java.net.OutputStream

A

Stream to send bytes to

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