hi all,<div> Sorry to disturb you.</div><div> I wanna to add a new api to get some sheepdog cluster info, but I has get this error, I don't know how to do.</div><div><br></div><div> I have add a function to daemon/remote.c that call the libvirt.c 's api, remoteDispatchConnectExecuteCommand, and here i get the return value.</div>
<div><br></div><div> struct remote_connect_execute_command_ret {</div><div> remote_nonnull_string ret_val;</div><div> };</div><div> typedef struct remote_connect_execute_command_ret remote_connect_execute_command_ret;</div>
<div> </div><div> </div><div> static int</div><div> remoteDispatchConnectExecuteCommand (struct qemud_server *server ATTRIBUTE_UNUSED,</div><div> struct qemud_client *client ATTRIBUTE_UNUSED,</div>
<div> virConnectPtr conn,</div><div> remote_message_header *hdr ATTRIBUTE_UNUSED,</div><div> remote_error *rerr,</div><div> remote_connect_execute_command_args *args,</div>
<div> remote_connect_execute_command_ret *ret)</div><div><br></div><div> the return value has been in ret->ret_val. I know the func remoteDispatchDomainDumpXml returns it's values by ret->xml.</div>
<div> </div><div> And after this, the things is the same, but when I dump xml, it's ok, but when i wanna to get my value, it's cause</div><div> this error:</div><div> error : qemudClientReadBuf:1708 : gnutls_record_recv: A TLS packet with unexpected length was received.</div>
<div><br></div><div> Could any body tell me, if I wanna to get a string data, do I need to do any additional actions?</div>