added some socket prototypes