c - multi-threaded file transfer with socket -
i trying make multi-threaded server-client file transfer system in c. there clients send or list or other choice (in switch case can see) , server storing files , serving lot of clients. multi-thread ideology difficult far can see. needs experience instead of knowledge. have been working on project more 1 week , haven't been able on top of problems. there 4 choices: first 1 lists local files of client in directory, second 1 list files transferred between client , server, third reading filename user , copy file server's directory. my vital issue here multi-threading. cannot connect multiple clients. have read code z heaps of times can't catch errors , stuck. the other issue client end when sigint caught, but, instance, after choosing list files when press ctrl-c doesn't stop. same issue server file well. more troublesome compared client's catching because when server gets sigint , clients disconnected respectively server. thanks helps! server.c /