ethernet to usb by BBB

in my project I need to get files by the etherntet connector to BBB and then pass them to another device.
my questions are: does there is a program in C to this thing? in what environment is best way to devlope it?

thanks a lot