on-internet
← Community

File transfer using RPC(any type of file)

Stack Overflow ·

I want to construct a RPC Program to transfer any type of files. But I am getting segmentation fault after running the client:such as ./file_client localhost >get /home/ab/1.txt >put /home/1.txt Segmentation Fault For your convenience I am pasting my client and server and .x code: file.x const MAXLEN = 1024; /* * Type for storing path */ typedef string filename<MAXLEN>; /* * Structure for sending request. Expects the path of the file * and the byte number at which to start reading the file from */ struct request { filename name; int start; }; /* * Type that represents the structute for request

Comments

Sign in or sign up to comment and upvote.

No comments yet.