Share via


Winsock Options Sample (Windows Embedded CE 6.0)

1/6/2010

The Opttest sample application illustrates the use of the Windows Embedded CEā€“based Bluetooth stack Winsock getsockopt and setsockopt programming interfaces.

The compiled sample generates an Opttest.exe application that can be started as a server or client. When started as a server, it creates a socket and goes into accept loop mode. When started as a client, it takes a Bluetooth device address and connects to it. Once a connection is established, users can exchange text messages or files.

Users can specify particular options on created sockets. For example, connections can negotiate MTU, or be authenticated or encrypted before or after a connection is established.

To view supported command line options use OPTTEST /?. When a connection is established, the application displays supported commands.

Sample Location

%_WINCEROOT%\Public\Common\Sdk\Samples\Bluetooth\Opttest**

Note

This sample application has not been thoroughly tested and is not intended for production use.

See Also

Concepts

Bluetooth Application Development Samples
Bluetooth Samples

Other Resources

Bluetooth Application Development