登录
首页 » 其他 » VC++ 模拟实现网络语音电话

VC++ 模拟实现网络语音电话

于 2022-02-14 发布 文件大小:38.64 kB
0 220
下载积分: 2 下载次数: 1

代码说明:

VC++ 模拟实现网络语音电话,类似语音聊天的功能,这是一个通过网络实现的网络语音电话,功能目前是比较基础的,仅供学习参考吧。本实例当时在Windows 2000环境下运行通过。相关的代码如下:   #define BUFFERSIZE 5120 //缓冲区大小   static HWAVEIN hWaveIn ; //录音设备句柄   static HWAVEOUT hWaveOut ; //播放设备句柄   static PBYTE pBufferIn[2]; //用于接收和播放的两块缓冲区   static PBYTE pBufferOut[2]; //用于发送和录音的两块缓冲区   static PWAVEHDR pWHIn[2]; //用于录音的PWAVEHDR结构数组   static PWAVEHDR pWHOut[2]; //用于播放的PWAVEHDR结构数组   static WAVEFORMATEX waveform ; //用于打开音频设备的WAVEFORMATEX结构   int nIn = 0; //当前播放缓冲区号   int nOut = 0; //当前录音缓冲区号   int nComState = 1; //显示通话状态信息的变量   CString LocalIP; //本机IP地址   CString RemoteIP; //远端主机IP地址   CServerAS sServer; //服务器套接字   CClientAS sClient; //客户端套接字   CServerAS sListen; //监听套接字   BOOL ConnectDown = FALSE; //“连接”按钮是否被按下   BOOL sState = FALSE; //是否处于服务器端状态   BOOL cState = FALSE; //是否处于客户端状态

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • : proposed security agreement on the nature of the agreement is the main means o...
    :提出安全协议本质上是协议主体利用密码学手段通过挑战一响应来对协议另一方的存在做出判断,并同 时完成对一些数据例如会话密钥等的协商。依据这种思想,结合认证逻辑中的一些成果,提出了一种新的安全协 议关联性的分析方法,该方法对协议认证目标进行了基于线空间模型语义的定义,并将关联性分析归结为Strand 的存在关系和Strand参数一致性的分析问题。-: proposed security agreement on the nature of the agreement is the main means of the use of cryptography through the response to a challenge to the existence of other agreements made judgment and be completed at the same time on some key data such as the oral consultations. Based on this idea and certification of some logical outcome, a new security agreement relevance of the analysis method, The objective of the agreement for the certification based on linear space model semantic definition, Correlation analysis will be reduced to the existence of relations between the Strand and Strand parameters consistency of the problem.
    2022-02-05 09:18:38下载
    积分:1
  • Android重力感应测试代码
    Android 手机重力传感器调用+源码,作者:Himi,手机加速度传感器 ,也称为重力传感器,自SDK 1.5(api 3)就支持传感器了。解释:此传感器不仅对玩家反转手机的动作可以检测到,而且会根据反转手机的程度,得到传感器的值也会不同!sensor = sm.getDefaultSensor(Sensor.TYPE_ACCELEROMETER);//得到一个重力传感器实例   //TYPE_ACCELEROMETER 加速度传感器(重力传感器)类型。   //TYPE_ALL 描述所有类型的传感器。   //TYPE_GYROSCOPE 陀螺仪传感器类型   //TYPE_LIGHT 光传感器类型   //TYPE_MAGNETIC_FIELD 恒定磁场传感器类型。   //TYPE_ORIENTATION 方向传感器类型。   //TYPE_PRESSURE 描述一个恒定的压力传感器类型   //TYPE_PROXIMITY 常量描述型接近传感器   //TYPE_TEMPERATURE 温度传感器类型描述
    2022-09-05 16:10:02下载
    积分:1
  • 以前一直用vb,只有这类源码。现在在学c,请支持。
    以前一直用vb,只有这类源码。现在在学c,请支持。-previously been used vb, the only such source. C in school now, please support.
    2023-06-04 12:45:03下载
    积分:1
  • LED constant pressure calculation tool to calculate constant pressure LED circui...
    LED恒压计算工具 计算LED恒压电路的小工具,通过使用您可以学习到LED的基本知识。-LED constant pressure calculation tool to calculate constant pressure LED circuit of small tools, You can through the use of LED learn the basic knowledge.
    2022-09-05 07:30:03下载
    积分:1
  • 聊天室DLL 聊天室D
    聊天室DLL 聊天室D-DLL chat rooms chat rooms D
    2022-07-23 19:13:09下载
    积分:1
  • a small J2ME games, a child playing jigsaw puzzles, things done, but not past En...
    一个j2me的小游戏,儿时玩的拼图板,东西做出来了,但却完不过去,咳,年纪大了,呵呵.-a small J2ME games, a child playing jigsaw puzzles, things done, but not past End, cough, age, huh.
    2022-07-07 14:19:17下载
    积分:1
  • 6502汇编器 要将6502汇编语言源文件汇编成二进制文件
    6502汇编器 要将6502汇编语言源文件汇编成二进制文件-Assembler 6502 to 6502 assembly language source files compiled into binary files
    2022-02-04 11:13:11下载
    积分:1
  • Calculation of parametres for the task of frequency for microprocessors MSP430
    Calculation of parametres for the task of frequency for microprocessors MSP430
    2022-03-21 05:43:02下载
    积分:1
  • jQuery图片轮播插件(焦点图特效)
    一个支持缩略图的jquery图片轮播插件,用来在网页上生成焦点图特效或图片幻灯片效果,无鼠标点击时,本效果可自动轮播图片,兼容ie8及更高版本的IE浏览器,以及火狐、Chrome、360等主流浏览器。同时调用方法简单,只需要根据自己的html样式修改调用参数即可,插件运行效果如上图所示。
    2022-02-06 09:09:31下载
    积分:1
  • kaba key 2009 kaba key 2009
    kaba key 2009 kaba key 2009
    2022-07-23 11:13:29下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载