Ja.NET Standard Edition 5.0

Documentation API Specification

Contents

HttpServerSocket Class Reference

Inherits java::net::ServerSocket, and org::apache::harmony::rmi::transport::proxy::ProxyConstants.

List of all members.


Detailed Description

HTTP server socket, detects connection type and forwards the HTTP requests to HttpInboundSocket.

Author:
Mikhail A. Markov, Vasily Zakharov
Version:
Revision
1.1.2.1

Public Member Functions

 HttpServerSocket (int port) throws IOException
 Creates this socket bound to the specified port.
 HttpServerSocket (int port, int backlog) throws IOException
 Creates this socket bound to the specified port, with the specified backlog.
Socket accept () throws IOException
 Retrieve the first connection request and answer the 'host' socket that will conduct further communications with the requesting 'client' socket.

Returns:
Socket the 'host' socket
Exceptions:
IOException if an error occurs while instantiating the 'host' socket

String toString ()
 Answers a string containing a concise, human-readable description of the server socket.

The port field is reported a zero, as there is no connection formed to the server.

Returns:
String the description


Constructor & Destructor Documentation

HttpServerSocket ( int  port  )  throws IOException

Creates this socket bound to the specified port.

Parameters:
port Port.
Exceptions:
IOException If I/O error occurs.

HttpServerSocket ( int  port,
int  backlog 
) throws IOException

Creates this socket bound to the specified port, with the specified backlog.

Parameters:
port Port.
backlog Backlog.
Exceptions:
IOException If I/O error occurs.


Member Function Documentation

Socket accept (  )  throws IOException

Retrieve the first connection request and answer the 'host' socket that will conduct further communications with the requesting 'client' socket.

Returns:
Socket the 'host' socket
Exceptions:
IOException if an error occurs while instantiating the 'host' socket

Reimplemented from ServerSocket.

String toString (  ) 

Answers a string containing a concise, human-readable description of the server socket.

The port field is reported a zero, as there is no connection formed to the server.

Returns:
String the description

Reimplemented from ServerSocket.