i'm not using the socket code in other projects yet (i do use the rest of it in libCEC indeed). this was something for libCEC 3.0+, so can be changed safely when all add-ons that use it are updated