Partager via


Winsock Interface Samples (Compact 2013)

3/26/2014

The SockTest sample application illustrates the use of the Windows Embedded Compact-based Bluetooth stack over the Winsock interface.

The compiled sample generates executables. This application can be started as server or client. When connected, users can exchange text messages or files.

Note

Either the port name or service UUID can be specified. If the UUID is specified, the server registers the SDP entry and the client connects with the service UUID instead of the server channel.

SOCKTEST Sample

This is a sample Bluetooth application which illustrates the use of Windows Embedded Compact Bluetooth stack Winsock interface.

When started as server, it listens on a socket for incoming connections. When started as client, it connects to the server by its Bluetooth address and server channel. When connected, server sends a stream of packets to client. Client checks the data stream for integrity and reports errors and desynchronizations.

The sample is located at %_WINCEROOT%\Public\Common\Sdk\Samples\Bluetooth\Socktest\.

Note

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

To view supported command line options, use SOCKTEST /?

See Also

Tasks

Bluetooth Application Development Samples