设为首页 加入收藏

TOP

Windows Sockets 1.1应用实例(117)
2010-12-30 20:58:11 来源: 作者: 【 】 浏览:62227
Tags:Windows Sockets 1.1 应用 实例
 
return (bytes_read);

 }

 

/* eof */

 

3.4.3.6 tshout.c清单

/*

 * 文件名: TSHOUT.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 TWriteData(SOCKET hSock, HWND hOurDlg, int send_len)

{

    int counter;

    static int DataBuffer[BUF_SIZE];    /* Buffer to hold generated data  */

    long total_len = 1024L*1024L;  /* Total # of bytes to generate   */

    long bytes_sent = 0L;      /* Counter of bytes on connection */

    int   tmp = 0;           /* holds count for bytes written  */

    long write_count = 0L;    /* number of times   

首页 上一页 114 115 116 117 118 119 120 下一页 尾页 117/143/143
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
分享到: 
上一篇Windows Socket 1.1库函数概览 下一篇Windows Sockets 1.1编程

评论

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