Custom-UDP-Transfer-Protocol-Server--Multi-Client- is a project mainly written in C, it's free.
Very rough impl of Proof of concept transfer protocol