Export (0) Print
Expand All

Winsock Application Development (Windows Embedded CE 6.0)

1/6/2010

Windows Sockets (Winsock) is a programming interface that is based on the familiar socket interface from the University of California at Berkeley. Winsock includes extensions designed to take advantage of the message-driven nature of Windows Embedded CE, and is used to discover and use communications capabilities of underlying transport protocols.

Most Windows Embedded CE network communication passes through the Winsock interface. Windows CE .NET 4.1 and later supports Winsock 2.2 which provides easier access to multiple transport protocols.

A socket enables network applications access to data on a data network. A computing device may have only one physical connection to a network, but many sockets can use the one physical connection simultaneously.

Winsock client and server applications provide endpoints of communication for network applications. A server application executes, then it waits to receive a packet from the client application. Once communication is established, client and server applications can exchange data. A server application can handle multiple clients simultaneously.

Ee493301.note(en-US,WinEmbedded.60).gifNote:
Winsock client and server applications must be of the same socket type to communicate. For example, they must both be using byte stream sockets that use TCP, or they must both be using unreliable datagram sockets that use UDP.

Winsock 2.2

Provides information about Winsock 2.2 support in Windows Embedded CE, including the architecture, multiple transport protocols, overlapped I/O and event objects, name resolution, backward compatibility, and secure sockets. Also provides information about stream socket applications, User Datagram Protocol (UDP) Datagram Socket application, and Internet Protocol (IP) Multicast application, and creating an Infrared Winsock application.

Using WSAStartup to Initialize Winsock

Describes how to initialize Winsock.

Stream Socket Application

Describes how to create a socket server, a socket client, and socket server and socket client applications.

Creating a UDP Datagram Socket Application

Describes how to create a UDP datagram socket server application.

Creating an IP Multicast Application

Describes how to create an IP Multicast application, including how to map an address, send and receive a datagram, join and leave a multicast group, and read sockets.

Determining if a Network Connection is Present

Provides information about how to determine programmatically if the local device is connected to a network.

Winsock Service Provider Interface (SPI)

Provides information about the Winsock service provider interface (SPI), including socket creation and descriptor management, event objects, notification of network events, socket connections, socket I/O, shared sockets, and name resolution.

Raw Sockets

Provides information about raw sockets support in Windows Embedded CE.

Community Additions

ADD
Show:
© 2014 Microsoft