当前位置: 技术问答>linux和unix
connect失败
来源: 互联网 发布时间:2016-08-27
本文导语: // connect int ret = connect(fd + 1, (struct sockaddr*)&addr_in, sizeof(addr_in)); if(ret == -1) { cout
// connect
int ret = connect(fd + 1, (struct sockaddr*)&addr_in, sizeof(addr_in));
if(ret == -1)
{
cout
int ret = connect(fd + 1, (struct sockaddr*)&addr_in, sizeof(addr_in));
if(ret == -1)
{
cout