|
|
|
@ -78,6 +78,8 @@ int send_file_info_rpc(const char* server_ip, int server_port, const char* file_ |
|
|
|
sprintf(request, "{\"service\":\"UpFileService\",\"method\":\"SendFileInfo\",\"params\":{\"filepath\":\"%s\",\"timestamp\":%lld}}", |
|
|
|
file_path, (long long)now); |
|
|
|
|
|
|
|
printf("Sending request: %s\n", request); |
|
|
|
|
|
|
|
// Send RPC request
|
|
|
|
if (send(sock, request, strlen(request), 0) == SOCKET_ERROR) { |
|
|
|
printf("Failed to send RPC request\n"); |
|
|
|
|