+ -
当前位置:首页 → 问答吧 → sendto 报错 Address family not supported by protocol 是什么意思

sendto 报错 Address family not supported by protocol 是什么意思

时间:2011-10-21

来源:互联网

/* send result to the client */
int server :: sendto_data()
{
  int n;

  if((n = sendto(sockfd, &result, sizeof(result), 0, (struct sockaddr*)&clieaddr, cli_len)) == -1){
  perror("sendto");
  return -1;
  }
}

作者: zhangxun077   发布时间: 2011-10-21

填写过clieaddr的family域?

作者: qq120848369   发布时间: 2011-10-21

我在上面有个recvfrom函数,将clieaddr都填好了啊

作者: zhangxun077   发布时间: 2011-10-21

热门下载

更多