(SocketCAsyncSocketCSocket) - IMDN开发者社群-imdn.cn">
登录
首页 » Visual C++ » SocketCAsyncSocketCSocket

SocketCAsyncSocketCSocket

于 2009-06-20 发布 文件大小:4KB
0 292
下载积分: 1 下载次数: 93

代码说明:

  Socket,CAsyncSocket,CSocket介绍 Socket有同步阻塞方式和异步非阻塞方式两种使用,事实上同步和异步在我们编程的生涯中可能遇到了很多,而Socket也没什么特别。虽然同步好用,不费劲,但不能满足一些应用场合,其效率也很低。 也许初涉编程的人不能理解"同步(或阻塞)"和"异步(或非阻塞)",其实简单两句话就能讲清楚,同步和异步往往都是针对一个函数来说的,"同步"就是函数直到其要执行的功能全部完成时才返回,而"异步"则是,函数仅仅做一些简单的工作,然后马上返回,而它所要实现的功能留给别的线程或者函数去完成。例如,SendMessage就是"同步"函数,它不但发送消息到消息队列,还需要等待消息被执行完才返回;相反PostMessage就是个异步函数,它只管发送一个消息,而不管这个消息是否被处理,就马上返回。(SocketCAsyncSocketCSocket)

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

发表评论

0 个回复

  • lv+VC+Flash
    自己用VC做的Flash播放器,可播放Flash的exe文件(own VC do Flash player, Flash can broadcast the exe file)
    2007-04-21 23:21:00下载
    积分:1
  • filetransserver
    务器端基于select I/O模型。为防止程序界面阻塞,有一个子线程用于不断接收socket并select其中的处理。客户端只有一个线程函数,不过其利用率很高,可用于远程目录交换,请求文件大小,创建若干线程来下载文件。文件传输有上传和下载,还有对等传输,这个项目中,传输文件具体指下载。 (side is based on the Treasury select I/O model. To prevent the program interface obstruction, a son threaded socket for receiving continuous and select which of treatment. Only one client thread function, but its high efficiency, long-distance directory can be used to exchange documents requested size, creating a number of threads to download files. Upload a file transfer and downloading, and the transmission of the project, specifically referring to transfer files downloaded.)
    2007-04-19 10:07:59下载
    积分:1
  • ADOTest
    VC2005通过ADO连接Access2007数据库的简单Demo,系统Vista SP1 + Visual Studio 2005 + Office 2007 !!!(VC2005 connected Access2007 database through ADO simple Demo, system, Vista SP1+ Visual Studio 2005+ Office 2007!!!)
    2009-06-20 14:27:01下载
    积分:1
  • paint_move
    能在MFC界面绘制随着鼠标移动的线条,在visual studio中正常显示(In MFC interface as the mouse moves the lines, the visual studio to the normal display)
    2016-01-25 22:28:19下载
    积分:1
  • 串口温度数据采集并实时显示
    串口温度数据采集并实时显示 读串口数据的原理是,只要当有数据向串口发数据来时,计算机就会自动将其数据写到一个特定的缓冲区,我们只要写程序去读那个特定的缓冲区就可以了. 有数据向串口发过来时,程序可以将数据接收到,接收的数据是字符型的,那么将数据转化为数字型的,再将这个数据的大小作为画图的某一个点的纵坐标,横坐标为数据的序号.将这些点用线连起来就是一个曲线图了,这个就是图形显示基本原理. 查看原来的数据的原理也是这样的,不同的地方就是,数据是从文件中来,同样的也是将多个数据分成一个一个的,然后这一个数据的大小就是画图的某一个点的纵坐标,横坐标同样为数据的序号,再将这些点用线连起来就是曲线图. 图形能移动的原理,是我们首先改变的只是数据,图形并没有变,但图形的形式是由这些数据来确定的,当数据发生变化后,我们通过刷新显示区来变化的.(Serial temperature data acquisition and real-time serial data reading the principle is, as long as when a serial data to the data, the computer will automatically writes data to a specific buffer, we can write specific procedures read that the buffer zone would be fine. Serial data to be sent, process data can be received, the receiving of data is the character, then transform data into digital type, and then the size of the data as a drawing of a point Ordinate, the abscissa serial data. these points will be used to link line is a curve, this is the graphic display the basic tenets. View the original data is the same principle, the difference is, the data from the file, the same data also will be divided into a number one, and then this one is the size of the data to draw a certain point )
    2020-06-26 07:40:02下载
    积分:1
  • socket
    socket编程实现服务端与客户端互发消息(exchange message between server and client)
    2011-04-29 01:32:40下载
    积分:1
  • USB_Blaster_WIN7_x64
    altera usb-blaster win7下驱动,经测试可用(altera usb-blaster win7 to drive, the test can be used)
    2020-06-25 21:20:01下载
    积分:1
  • MAudioReci
    麦克风声音的实时采集并播放,停停止时保存为wav文件 (Microphone sounds real-time acquisition and playback, stop stop saved as wav file)
    2012-08-26 09:49:26下载
    积分:1
  • day
    openGl大作业,包含光源,移动物体,简易动画,纹理场,建筑等。(openGl large operations, including light, moving objects, simple animation, texture field, construction and so on.)
    2020-09-13 13:47:58下载
    积分:1
  • AryanRat
    国外著名的远程控制RAT 适合改成自己的专用(Famous for the remote control RAT into its own dedicated)
    2009-07-12 18:58:05下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载