[feature] introduce new internal function tcp_socket_init()