Added the socket library and basic connectivity functionality