[PATCH v2 1/6] new routines for socket based synchronisation