Dear Experts,
please help i am very much confused here and not getting the right path,
actually i want to send a file from client to a server,
initially i used mmap() which is failing most of the time so i want to use general IO streams to do that,
i can open a file in "rb" mode
and read to a buffer by using malloc ,
after this i have to use send(buffer(empty, filesize) to send the contents ow to relate them please give me some good suggestion overall i want to replace mmap with general IO methods please tell me how to achieve send(from server)
recv(from client) to work properly.