Hot Search : Source embeded web remote control p2p game More...
Location : Home Search - socket txt
Search - socket txt - List
用VC++6.0的Sockets API实现一个聊天室程序.txt   VC++对网络编程的支持有socket支持,WinInet支持,MAPI和ISAPI支持等。其中,Windows Sockets API是TCP/IP网络环境里,也是Internet上进行开发最为通用的API。最早美国加州大学Berkeley分校在UNIX下为TCP/IP协议开发了一个API,这个API就是著名的Berkeley Socket接口(套接字)。在桌面操作系统进入Windows时代后,仍然继承了Socket方法。在TCP/IP网络通信环境下,Socket数据传输是一种特殊的I/O,它也相当于一种文件描述符,具有一个类似于打开文件的函数调用-socket()。可以这样理解:Socket实际上是一个通信端点,通过它,用户的Socket程序可以通过网络和其他的Socket应用程序通信。Socket存在于一个"通信域"(为描述一般的线程如何通过Socket进行通信而引入的一种抽象概念)里,并且与另一个域的Socket交换数据。Socket有三类。第一种是SOCK_STREAM(流式),提供面向连接的可靠的通信服务,比如telnet,http。第二种是SOCK_DGRAM(数据报),提供无连接不可靠的通信,比如UDP。第三种是SOCK_RAW(原始),主要用于协议的开发和测试,支持通信底层操作,比如对IP和ICMP的直接访问。 -VC++6.0 using the Sockets API procedures for the realization of a chat room. Txt VC++ on the support network programming socket support, WinInet support, MAPI and ISAPI support. One, Windows Sockets API is TCP/IP network environment, but also for the development of Internet, the most common API. The first University of California, Berkeley campus in UNIX for the TCP/IP protocol has developed an API, the API is well-known Berkeley Socket interface (socket). Into the Windows desktop operating system in the era after the Socket method inherited. In the TCP/IP network communication environment, Socket data transmission is a special kind of I/O, it is equivalent to a file descriptor, open the file with a similar function call in-socket (). Can interpret it this way: Socket is a communication endpoint, through which users can program the Socket and other network applications of Socket Communications. Socket exist in a "communication domain" (as described in the general thread o
Date : 2025-12-16 Size : 3kb User : 李涛
CodeBus is one of the largest source code repositories on the Internet!
Contact us :
1999-2046 CodeBus All Rights Reserved.