added socket_resolve.cpp