-/**
- @header@
+/*
+ * (c) 2015 Cable Television Laboratories, Inc. All rights reserved.
*/
package org.pcmm.rcd;
+import org.umu.cops.stack.COPSHandle;
import org.umu.cops.stack.COPSMsg;
-import java.net.InetAddress;
+import java.io.IOException;
/**
* <p>
/**
* PCMM client-type
*/
- static final short CLIENT_TYPE = (short) 0x800A;
+ short CLIENT_TYPE = (short) 0x800A;
/**
* sends a message to the server.
/**
* tries to connect to the server.
- *
- * @param address
- * server address
- * @param port
- * server port
- * @return connection state
+ * @throws IOException
*/
- boolean tryConnect(String address, int port);
-
- /**
- * tries to connect to the server.
- *
- * @param address
- * server address
- * @param port
- * server port
- * @return connection state
- */
- boolean tryConnect(InetAddress address, int port);
+ void connect() throws IOException;
/**
* disconnects from server.
*
* @return client handle
*/
- String getClientHandle();
+ COPSHandle getClientHandle();
- /**
- *
- * sets the client handle
- *
- * @param handle
- * cleint hanlde
- */
- void setClientHandle(String handle);
+ void setClientHandle(COPSHandle handle);
}