* @param c
* the connection to set the Id on
* @throws IOException
*/
private void setClientIdOnConnection(RiakConnection c, byte[] clientId) throws IOException {
RpbSetClientIdReq req = com.basho.riak.protobuf.RiakKvPB.RpbSetClientIdReq.newBuilder().setClientId(ByteString.copyFrom(clientId)).build();
try {
c.send(RiakMessageCodes.MSG_SetClientIdReq, req);
c.receive_code(RiakMessageCodes.MSG_SetClientIdResp);
c.setClientId(clientId);