Add socket_support.cpp