Windows Sockets

Windows Sockets (Winsock) specifies a programming interface based on the familiar "socket" interface from the University of California at Berkeley. It includes a set of extensions designed to take advantage of the message-driven nature of Microsoft Windows. Version 1.1 of the Windows Sockets specification was released in January 1993, and version 2.2.0 was published in May of 1996. Both specifications are available from the Microsoft Internet sites www.microsoft.com and ftp.microsoft.com. Windows CE supports Winsock version 1.1.

There are many Windows Sockets applications available. A number of the utilities that ship with Windows CE are based on Windows Sockets, including the FTP, DHCP, and Telnet clients. There are also higher-level programming interfaces that rely on Windows Sockets, such as the Windows Internet API (WININET) used by Internet Explorer.

Most Microsoft Windows CE network communication passes through the Winsock interface. Sockets is a general-purpose networking API. The Microsoft Windows implementation of sockets, Winsock, is designed to run efficiently on Windows operating systems while maintaining compatibility with the Berkeley Software Distribution (BSD) standard, known as Berkeley Sockets.

The Windows Internet API (WinInet) uses Winsock internally to handle network connections. However, Winsock can be used directly in applications. The following sections discuss how to use Winsock in Windows CE–based applications to directly control the creation and management of socket connections. TCP/IP, upon which Winsock is built, is also discussed.

Winsock supports socket-based infrared communications using industry standard Infrared Data Association (IrDA) Protocols. This support is referred to as Infrared Sockets (IrSock). Applications implement Infrared Sockets in the same way as conventional Winsock, although several Winsock functions are used differently. For more information on the using the IrDA protocols with Windows Sockets, see Using Winsock Functions with IrDA.

Windows CE supports Private Communication Technology 1.0 and Secure Sockets Layer (SSL) versions 2.0 and 3.0 security Protocols. These protocols are available either directly from Winsock or through WinInet. For more information on using security protocols directly from Winsock, see Using Secure Sockets. For more information on using security protocols through WinInet, see Internet Connections.

 Last updated on Friday, April 02, 2004

© 1992-2000 Microsoft Corporation. All rights reserved.