VC Windows API应用之GetDesktopWindow ——获得桌面所有窗口句柄的方法 Windows API Windows 这个多作业系统除了协调应用程序的执行.分配内存.管理资源…之外, 它同时也是一个很大的服务中心,调用这个服务中心的各种服务(每一种服务就是一个函数),可以帮应用程式达到开启视窗.描绘图形.使用周边设备等目的,由于这些函数服务的对象是应用程序(Application), 所以便称之为 Application Programming Interface,简称 A…
转:http://www.linuxforu.com/2011/09/creating-your-own-server-the-socket-api-part-2/ By Pankaj Tanwar on September 1, 2011 in Coding, Developers · 0 Comments Earlier, we created a simple server and client program using the socket API. This time, we’ll…
转:http://www.linuxforu.com/2011/08/creating-your-own-server-the-socket-api-part-1/ By Pankaj Tanwar on August 1, 2011 in Coding, Developers · 2 Comments In this series of articles aimed at newbies to network programming (knowledge of C is a prerequis…
在本篇文章中,先介绍一下Socket编程的一些API,然后利用这些API实现一个客户端-服务器模型的一个简单通信例程.该例子中,服务器接收到客户端的信息后,将信息重新发送给客户端. socket()函数 socket()函数用于创建一个套接字.这就好像购买了一个电话.不过该电话还没有分配号码. #include <sys/types.h> #include <sys/socket.h> int socket(int domain, int type, int protocol) 参…
转:http://www.linuxforu.com/2011/12/socket-api-part-5-sctp/ By Pankaj Tanwar on December 29, 2011 in Coding, Developers · 11 Comments This article on socket programming deals with the Stream Control Transmission Protocol (SCTP). Similar to TCP and UDP…
转:http://www.linuxforu.com/2011/11/socket-api-part-4-datagrams/ By Pankaj Tanwar on November 1, 2011 in Coding, Developers · 0 Comments Let’s try to develop server clients using UDP, the protocol behind some important services like DNS, NFS, etc. UDP…
转:http://www.linuxforu.com/2011/10/socket-api-part-3-concurrent-servers/ By Pankaj Tanwar on October 1, 2011 in Coding, Developers · 2 Comments In this part of the series, we will learn how to deal with multiple clients connected to the server. Welco…