Compartir a través de


Winsock Options Sample (Windows CE 5.0)

Send Feedback

The Opttest sample application illustrates the use of the Windows 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

Bluetooth Application Development | Bluetooth Samples

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.