设为首页 加入收藏

TOP

Windows Sockets 1.1应用实例(123)
2010-12-30 20:58:11 来源: 作者: 【 】 浏览:62215
Tags:Windows Sockets 1.1 应用 实例
(LPSTR) prbuf);

      

       ltemp = 8 * (bytes_sent/total_time);

       wsprintf((LPSTR)prbuf,"%ld\n", ltemp);

       SetDlgItemText(hOurDlg, IDD_BITS,  (LPSTR) prbuf);

    } /* end if (total_time) */

          

    /* All done */

    SetDlgItemText(hOurDlg, IDD_COMMENT, "...TCP Shout Done");

    return bytes_sent;

}

 

/* eof */

 

3.4.3.7 tlisten.c清单

/*

 * 文件名:TLISTEN.C

 */

 

#include "wshout.h"

 

/* MSC Include files: */

#include <stdio.h>

#include <io.h>

#include <string.h>

#include <stdlib.h>

#include <time.h>

 

 

/* Returns the number of bytes written */

long TReadData(SOCKET hSock, HWND hOurDlg, int read_len)

{

   

首页 上一页 120 121 122 123 124 125 126 下一页 尾页 123/143/143
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
分享到: 
上一篇Windows Socket 1.1库函数概览 下一篇Windows Sockets 1.1编程

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容: