FileDocCategorySizeDatePackage
ServerSocket.javaAPI DocphoneME MR2 API (J2ME)2284Wed May 02 18:00:14 BST 2007com.sun.midp.io.j2me.socket

ServerSocket

public interface ServerSocket
Enables the server socket package to be optional.

Fields Summary
Constructors Summary
Methods Summary
public voidopen(int port)
Opens a port to listen on.

param
port TCP to listen on
exception
IOException if some other kind of I/O error occurs
exception
SecurityException if the current MIDlet suite does not have permission to open a server socket

public voidopen(int port, com.sun.midp.security.SecurityToken token)
Opens a port to listen on. For privileged use only.

param
port TCP to listen on; if less than or equal to zero, a port will be assigned automatically
param
token the security token
exception
IOException if some other kind of I/O error occurs
exception
SecurityException if the token is invalid