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
2
Q
Describe java.net.Socket
A
Explicitly created by a client to with a specified server IP address and port number
3
Q
Describe java.net.ServerSocket
A
It is a socket bound to a particular port waiting to accept connection requests from client sockets
4
Q
Describe java.net.InetAddress
A
5
Q
Describe java.net.InputStream
A
Stream to receive bytes
6
Q
Describe java.net.OutputStream
A
Stream to send bytes to