[PATCH v3 1/7] new routines for socket based synchronisation