updated socks5_utils.cpp with additional methods