Topic 2 Flashcards
TCP
(Transmission Control protocol) A reliable data flow between two computers by providing a point-to-point connection based channel for application
UDP
(User datagram protocol) uses independent data packets called datagrams to transport messages between applications
Internet address(IP)
Internet protocol a 32-bit quantity that identifies a machine connected to the internet
DomainName System(DNS)
translates an internet address in doted string format to the dotted numerical version
InetAddress
in java.net it encapsulates an internet address
Networking
The capability to make a connection from your application to a system over a network
URLs
Uniform Resource Locators, a pointer to a web resource which can be anything from a file to an object
Sockets
is one endpoint of a two-way communication link between two programs running on the network
accept()
listens for a connection to be made to this socket and accepts it
Socket classes
used to represent the connection between a client program and a server program
close()
closes this socket
getInetAddress()
returns the local InetAddress object of this server socket
getLocalPort()
returns the port on which this socket is listening as an integer
getInputStream()
returns an input stream for this socket
getLocalAddress()
Gets the local address to which the socket is bound
getLocalPort()
returns the local port to which this socket is bound
getOutputStream()
returns an output stream for this socket
getPort()
returns the remote port to which this socket is connected
getProtocol()
returns the protocol identifier of the URL object
getHost()
Returns the resource name(host) of the URL object
getPort()
returns the port number as an integer of the URL object
getFile()
returns the file name of the URL object
getRef()
returns the optional reference of the URL object
connect()
opens a communication link to the resource referenced by this URL
getContent()
retrieves the contents of this URL in the form of an object
toString()
returns a string representation of this url connection
Buffers
containers for data
channels
represent connections to entities capable of performing I/O operations