*@param uri the destination uri, which must be in the format [protocol:]//host:port[/...]
*/
@Override
public void send(byte[] bytesMessage, String uri) throws NetworkException {
if (bytesMessage == null) {
throw new NetworkException("ReliableUDPClient: Cannot send message: Message is null");
}
else if (bytesMessage.length == 0) {
throw new NetworkException("ReliableUDPClient: Cannot send message: No message to send");
}
else {
ReliableProtocolMessage[] rmsgs = this.createMessage(bytesMessage, uri);
Debug.println("Sending " + rmsgs.length + " reliable messages", "programming5.net.sockets.ReliableUDPClient");
for (ReliableProtocolMessage rmsg : rmsgs) {