I think this belongs in native/net , but can move it later (assuming you're OK with MIT instead of GPL).