• <ruby id="5koa6"></ruby>
    <ruby id="5koa6"><option id="5koa6"><thead id="5koa6"></thead></option></ruby>

    <progress id="5koa6"></progress>

  • <strong id="5koa6"></strong>
  • connect錯誤

    發表于:2007-05-26來源:作者:點擊數: 標簽:
     一個客戶端鏈接服務器端程序,
    我原來是非阻塞的,后來加了兩句代碼:
    if ((flag = fcntl(sock, F_GETFL, 0)) < 0)
    {
    printf("取短信套接字屬性錯誤\n");
    return -1;
    }
    if (fcntl(sock, F_SETFL, flag | O_NONBLOCK) < 0)
    {
    printf("設置短信套接字屬性錯誤\n");
    return -1;
    }
    把socket設置為非阻塞的,第一次能鏈接上,后來connect報錯,
    : Operation now in progress
    我把這兩句刪掉了,還報這個錯,why?

     小勁鴨 

    你看看下面的對你有沒有幫助:
    http://www.cygwin.com/ml/cygwin/2003-03/msg01919.html
     thanks ~!!

    原文轉自:http://www.kjueaiud.com

    評論列表(網友評論僅供網友表達個人看法,并不表明本站同意其觀點或證實其描述)
    老湿亚洲永久精品ww47香蕉图片_日韩欧美中文字幕北美法律_国产AV永久无码天堂影院_久久婷婷综合色丁香五月

  • <ruby id="5koa6"></ruby>
    <ruby id="5koa6"><option id="5koa6"><thead id="5koa6"></thead></option></ruby>

    <progress id="5koa6"></progress>

  • <strong id="5koa6"></strong>