7 import java.net.InetAddress;
9 import org.umu.cops.stack.COPSMsg;
13 * This is a Client Type 1, which represents existing "legacy" endpoints (e.g.,
14 * PC applications, gaming consoles) that lack specific QoS awareness or
15 * signaling capabilities. This client has no awareness of DOCSIS, CableHome, or
16 * PacketCable messaging, and hence no related requirements can be placed upon
17 * it. Client Type 1 communicates with an Application Manager to request
18 * service, and does not (cannot) request QoS resources directly from the MSO
24 public interface IPCMMClient {
29 static final short CLIENT_TYPE = (short) 0x800A;
32 * sends a message to the server.
34 * @param requestMessage
37 void sendRequest(COPSMsg requestMessage);
40 * Reads message from server
42 * @return COPS message
44 COPSMsg readMessage();
47 * tries to connect to the server.
53 * @return connection state
55 boolean tryConnect(String address, int port);
58 * tries to connect to the server.
64 * @return connection state
66 boolean tryConnect(InetAddress address, int port);
69 * disconnects from server.
71 * @return disconnection status.
77 * @return whether the client is connected to the server of not.
79 boolean isConnected();
82 * gets the client handle
84 * @return client handle
86 String getClientHandle();
90 * sets the client handle
95 void setClientHandle(String handle);