Home > OS >  Have used Linux sendfile function memory data is sent directly to the socket of the great god
Have used Linux sendfile function memory data is sent directly to the socket of the great god

Time:01-23

See online example is sendfile often used for network transmission 2 files, but my data currently on the physical address (already through mmap mapped to a virtual address);

So, how should I pass the function of in_fd ginseng? Open/dev/mem get fd?

PS: online also didn't see anyone so used, are all writing is special transmission network file using sendfile function,
  • Related