Add sendpeers function to replace send callback