Bugs fixed. Libswift works again as it should. Adding a new socket remains to be tested.