Share via


Networking Code Samples (Compact 7)

3/12/2014

Windows Embedded Compact 7 contains the following code samples that apply to Networking.

Warning

The sample code is only a starting point for development. As with any code, you must ensure proper error handling, identify security risks, and thoroughly test it before considering it for production use.

Feature area Description Location Related topic

Network User Interface

Implements the Network and Dial-up Connections application. Demonstrates how to configure dial-up, virtual private network (VPN), LAN, and other network connection types

%_WINCEROOT%\public\COMMON\oak\drivers\netsamp\connmc

Network UI Sample Application Connmc

Network User Interface

Demonstrates how to display a networking icon in the notification area and provides a basic configuration dialog box if no previous configuration is available

%_WINCEROOT%\public\COMMON\oak\drivers\netsamp\ethman

Network UI Sample Application Ethman

Network User Interface

Provides a sample terminal emulation tool

%_WINCEROOT%\public\COMMON\oak\drivers\netsamp\pegterm\app

Network UI Sample Application Pegterm

Network User Interface

Provides a sample application that displays status information while a dial-up or VPN connection is established

%_WINCEROOT%\public\COMMON\oak\drivers\netsamp\rnaapp

Network UI Sample Application Rnaapp

Network Driver Interface Specification (NDIS)

Logs network traffic by producing files that Windows Network Monitor (NetMon) can read

%_WINCEROOT%\public\COMMON\oak\utils\netlog

%_WINCEROOT%\public\COMMON\oak\utils\netlogctl

NDIS Sample Tool Netlog, NDIS Sample Tool Netlogctl

Network Utilities

Prints the TCP/IP-related configuration data of a host

%_WINCEROOT%\public\COMMON\oak\drivers\netsamp\ipconfig

Network Utilities Samples

Network Utilities

Displays active TCP connections, ports on which the computer is listening, Ethernet statistics, the IP routing table, IPv4 statistics, and IPv6 statistics

%_WINCEROOT%\public\COMMON\oak\drivers\netsamp\netstat

Network Utilities Samples

Network Utilities

Demonstrates how to send ICMPv6 or ICMP Echo Request messages to perform network diagnostics and test reachability for a specific destination

%_WINCEROOT%\public\COMMON\oak\drivers\netsamp\ping

Network Utilities Samples

Network Utilities

Demonstrates how to send ICMPv6 or ICMP Echo Request messages to report information about each router that is crossed and the roundtrip time (RTT) for each hop

%_WINCEROOT%\public\COMMON\oak\drivers\netsamp\tracert

Network Utilities Samples

Telephony

Illustrates how to write a customized telephony service provider (TSP) by using the TSP Interface

Included in topic Telephony Service Provider Sample

Telephony Service Provider Sample

Telephony

Demonstrates and tests the interface to Unimodem for setting a device configuration

Included in topic Telephony Service Provider Unimodem Sample

Telephony Service Provider Unimodem Sample

Cellular Radio

Demonstrates how to send a Wireless Transfer Protocol (WTP) invoke request and read a WTP invoke indication

Included in topic WAP API Sample for Usage at the WTP Layer

WAP API Sample for Usage at the WTP Layer

Cellular Radio

Illustrates how to send and read a primitive with user data by using one device as both the initiator and the responder

Included in topic WAP API Sample for User Data at the WDP Layer

WAP API Sample for User Data at the WDP Layer

Remote Access Service (RAS)

Provides AutoDial functionality to dialer applications and implements a test application for RAS AutoDial

%_WINCEROOT%\public\COMMON\oak\drivers\netsamp\autoras

Dial-up Networking Reference

RAS

Provides a sample RAS dialing program

%_WINCEROOT%\public\COMMON\oak\drivers\netsamp\rasdial

Dial-up Networking Reference

RAS

Implements a sample application that makes RAS telephone book entries

%_WINCEROOT%\public\COMMON\oak\drivers\netsamp\rasentry

Dial-up Networking Reference

RAS

Demonstrates how to configure and initialize a RAS server to accept incoming calls

%_WINCEROOT%\public\COMMON\oak\drivers\netsamp\rasserver

RAS Server/PPTP Server (Incoming) Samples

Radio Interface Layer (RIL)

Provides a sample implementation of a RIL driver

%_WINCEROOT%\public\Cellcore\ril\driver\mdd

Radio Interface Layer

File Transfer Protocol (FTP)

Provides a sample FTP server implementation

%_WINCEROOT%\public\servers\sdk\samples\ftpd

FTP Server Reference

Telnet

Implements a sample Telnet server that you can install on a device to allow remote administration through a standard Telnet client by using the Telnet Server API

%_WINCEROOT\public\servers\sdk\samples\telnetd

Telnet Server

Web Server

Demonstrates how to monitor, configure, and remotely control a device or computer through the use of a Hypertext Transfer Protocol (HTTP) server by using the Web Server API

%_WINCEROOT%\public\servers\sdk\samples\http

%_WINCEROOT%\public\servers\oak\samples\http

Web Server (HTTPD) Reference

Network Logging

Provides logging functions for Autodial, Point-to-Point Protocol over Ethernet (PPPoE), and Native WiFi

%_WINCEROOT%\public\servers\oak\samples\logging

Networking

Wi-Fi

Uses the Auto Config Module (ACM) service to configure Wi-Fi

%_WINCEROOT%\public\servers\oak\samples\wlantool

Wi-Fi

See Also

Concepts

Code Samples

Other Resources

Windows Embedded Compact 7