Windows CE Networking
Windows CE supports a variety of networking options that range from serial link networking over a modem to wireless communications. Networking capabilities include:
- Sending an ICMP request, also known as a ping
- Communicating over the Internet (WinINET API)
- Accessing remote file systems
- Using Windows Sockets
- Using network security features
- Accessing an IR transceiver using the IrDA protocols
There are several types of networking that are supported:
- Local area networking
- Wired serial-link networking using serial cables or modems
- IR networking
- Wireless networking
Windows CE network support is organized in layers. The network stack is responsible for taking data from applications, breaking it into one or more packets, and adding whatever header information is necessary to ensure that the packet arrives at its destination. The following illustration describes the schematics of the network stack.
Network stack schematics
There are several ways to access the network stack:
- The Windows Sockets (Winsock) API provides applications with the means to exchange packets with a remote site. It handles all the details of creating the needed header information, but leaves the format of the data up to the application. All network communication on Windows CE uses Winsock directly or indirectly.
- The WinINET API supports high-level data protocols, such as Hypertext Transmission Protocol (HTTP) or File Transfer Protocol (FTP). These APIs ensure that the data is properly structured and relieve applications of the need to use Winsock directly.
- A Common Internet File System (CIFS) redirector gives applications access to remote file systems. Windows CE also provides support for a Remote Access Service (RAS) client, which allows a Windows CE-based device to connect to a remote host.
The following sections describe the Windows CE network stack from the top to the bottom.