JAVA NETWORKING SERVER SOCKET
Server Socket
![]() |
NETWORKING SERVER SOCKET |
The class
Server Socket in java implements server sockets.
This object
is used to establish communication with the clients.
The Server
Socket class is used to create servers that listen to its clients.
When Server
Socket is created, it will register itself with the system so that clients can
connect to it.
A
server socket waits
for requests to come in over the network. It performs some
operation based on that request, and then possibly
returns a result
to the requester.
This class
throws exception IO Exception.
The actual
work of the server socket
is performed by an instance of the Socket Impl class.
An application can change the socket factory
that creates the socket implementation to configure itself to create sockets
appropriate to the local firewall.
SYNTAX:
FOLLOWS:
Server Socket (int port)
Server Socket (int port, int
maxQueue)
Server Socket (int port, int
maxQueue, IneAddress localAddress)
Post a Comment