Commits

Anonymous committed ac07799

Extract file path from first package.

Comments (0)

Files changed (1)

 int main(int argc, char* argv[]) {
     HANDLE hComm;
     DCB dcb;
-    char send_data[512], recv_data[132], choose, buffer[32], x_paket[132];
+    char send_data[512], recv_data[132], choose, buffer[132],
+         x_paket[132], file_path[98];
     long size, n, i, pos;
     int n_paket, z, l;
     FILE *fp;
                     for(i=0; i<32; i++)
                         buffer[i] = recv_data[3+i];
                     size = atoi(buffer);
-                    
+                    for(i=0; i<98; i++)
+                        file_path[i] = recv_data[35+i];
+                    printf("file path: %s", file_path);
                 }
                 else {
                     printf("Timeout!\n");