All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class iceberg.iap.gsm_iap.RegnSocket

java.lang.Object
   |
   +----iceberg.iap.gsm_iap.RegnSocket

public class RegnSocket
extends Object
Implements the socket (TCP) on which regn messages and update messages IMSIAttach/IMSIDetach messages are sent.


Variable Index

 o INTERVAL
 o REGN_PORT

Constructor Index

 o RegnSocket()
Bind to local port and listen

Method Index

 o Connect()
Accept connection from another host
 o GetSocket()
Get socket if sock is connected
 o getUpdateMsg()
Utility routine to return the message with list of currently registered cpnums
 o send(String)
Send given message on socket
 o UpdateSocket(Socket)
Update the socket status

Variables

 o REGN_PORT
 public static final int REGN_PORT
 o INTERVAL
 public static final int INTERVAL

Constructors

 o RegnSocket
 public RegnSocket() throws IOException
Bind to local port and listen

Methods

 o Connect
 public void Connect() throws IOException
Accept connection from another host

 o UpdateSocket
 public synchronized void UpdateSocket(Socket sock)
Update the socket status

 o GetSocket
 public synchronized Socket GetSocket()
Get socket if sock is connected

 o getUpdateMsg
 public static String getUpdateMsg()
Utility routine to return the message with list of currently registered cpnums

 o send
 public void send(String msg)
Send given message on socket


All Packages  Class Hierarchy  This Package  Previous  Next  Index