电脑装两块网卡,使用Libevent设现的tcp客户端如何指定网卡。
不同网卡有不同IP,指定IP就可以· http_addr="192.168.1.2"`
int ret = evhttp_bind_socket(http_server,http_addr,http_port);