Hm, maybe this should go in netasync.h instead so that peer.c can stay a bit more host-agnostic.