Register socket handlers in gproc