I've released modHostfs which is host0 filesystem and server for the psp, i've also released the supporting modNet which is my own way loading the sony tcp/ip libaries.
somebody (NOT ME) should write a server for Microcarp platforms.
FWIW, your sever code compiles and runs without a hitch on cygwin. I haven't tested if it works (no wifi atm), but since it opens a listening port and all, it should be fine I guess.