[PATCH 1/2] new routines for socket based synchronisation