php.java.bridge
Class TCPServerSocket

java.lang.Object
  extended by php.java.bridge.TCPServerSocket
All Implemented Interfaces:
ISocketFactory

 class TCPServerSocket
extends java.lang.Object
implements ISocketFactory


Field Summary
(package private)  boolean local
           
(package private) static int TCP_PORT_BASE
           
 
Method Summary
 java.net.Socket accept()
          Create a new socket instance.
 void close()
          Close all instances.
static ISocketFactory create(java.lang.String name, int backlog)
           
 java.lang.String getSocketName()
          Return the socket# as a string.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TCP_PORT_BASE

static int TCP_PORT_BASE

local

boolean local
Method Detail

create

public static ISocketFactory create(java.lang.String name,
                                    int backlog)
                             throws java.io.IOException
Throws:
java.io.IOException

close

public void close()
           throws java.io.IOException
Description copied from interface: ISocketFactory
Close all instances.

Specified by:
close in interface ISocketFactory
Throws:
java.io.IOException

accept

public java.net.Socket accept()
                       throws java.io.IOException
Description copied from interface: ISocketFactory
Create a new socket instance.

Specified by:
accept in interface ISocketFactory
Returns:
The new communication socket.
Throws:
java.io.IOException

getSocketName

public java.lang.String getSocketName()
Description copied from interface: ISocketFactory
Return the socket# as a string.

Specified by:
getSocketName in interface ISocketFactory
Returns:
The socket number as a string.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object