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.
-
INTERVAL
-
-
REGN_PORT
-
-
RegnSocket()
- Bind to local port and listen
-
Connect()
- Accept connection from another host
-
GetSocket()
- Get socket if sock is connected
-
getUpdateMsg()
- Utility routine to return the message with list of currently
registered cpnums
-
send(String)
- Send given message on socket
-
UpdateSocket(Socket)
- Update the socket status
REGN_PORT
public static final int REGN_PORT
INTERVAL
public static final int INTERVAL
RegnSocket
public RegnSocket() throws IOException
- Bind to local port and listen
Connect
public void Connect() throws IOException
- Accept connection from another host
UpdateSocket
public synchronized void UpdateSocket(Socket sock)
- Update the socket status
GetSocket
public synchronized Socket GetSocket()
- Get socket if sock is connected
getUpdateMsg
public static String getUpdateMsg()
- Utility routine to return the message with list of currently
registered cpnums
send
public void send(String msg)
- Send given message on socket
All Packages Class Hierarchy This Package Previous Next Index