DCT Lightfoot v3 API specification

com.dctl.j2me.net
Class TCPServer

java.lang.Object
  |
  +--com.dctl.j2me.net.TCPServer

public class TCPServer
extends Object

This wraps up all the TCP server specific socket methods


Constructor Summary
TCPServer()
           
 
Method Summary
static int accept(int handle)
          Accept an incoming connection
static void bind(int handle, int address, int port)
          Bind the socket to a port and address
static void listen(int handle)
          Listen for incoming connections
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TCPServer

public TCPServer()
Method Detail

bind

public static void bind(int handle,
                        int address,
                        int port)
                 throws IOException
Bind the socket to a port and address

Parameters:
handle - The handle
address - The address of the interface to bind to
port - The port to bind to
Throws:
IOException - if there is an error

listen

public static void listen(int handle)
                   throws IOException
Listen for incoming connections

Parameters:
handle - The handle
Throws:
IOException - if there is an error

accept

public static int accept(int handle)
                  throws IOException
Accept an incoming connection

Parameters:
handle - The handle
Returns:
the handle of the connection
Throws:
IOException - if there is an error

DCT Lightfoot v3 API specification

DCT Lightfoot v3 API specification