zturner accepted this revision.
zturner added a comment.
This revision is now accepted and ready to land.

In the places where you want to read from an `ifstream` and write to a socket, 
you might consider using `llvm::sys::fs::copy_file`, declared in 
`Support/FileSystem.h`.  Currently it takes two paths, but all it does is call 
`openFileForRead()` on the first one and `openFileForWrite()` on the second one 
to get FDs.  So you could probably add an overload that takes two FDs, and have 
the path version just call the FD version.  Then you could call the FD version 
directly with an FD for your file and an FD for your socket.


https://reviews.llvm.org/D31079



_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to