Share via


BTH_SNIFF_MODE (Compact 2013)

3/26/2014

This structure contains the properties of a connection to a peer Bluetooth device that is in SNIFF mode.

Syntax

typedef struct _BTH_SNIFF_MODE {
  unsigned short sniff_mode_max;
  unsigned short sniff_mode_min;
  unsigned short sniff_attempt;
  unsigned short sniff_timeout;
  unsigned short interval;
} BTH_SNIFF_MODE, *PBTH_SNIFF_MODE;

Members

  • sniff_mode_max
    The maximum acceptable number of Baseband slots (0.625 msec each) between each sniff period. The valid range is 0x0001 through 0xFFFF. The valid time range is 0.625 msec through 40.9 seconds.
  • sniff_mode_min
    The minimum acceptable number of Baseband slots between each sniff period. Must be less than sniff_mode_max.
  • sniff_attempt
    The number of Baseband receive slots for each sniff attempt. The valid range is 0x0001 to 0x7FFF. The time range is equal to (2 * sniff_attempt -1) * 0.625 msec. The valid time range is 0.625 msec to 40.9 seconds.
  • sniff_timeout
    The number of Baseband receive slots for sniff timeout. The valid range for N is 0x0000 to 0x7FFF. The valid time range is 0 msec to 40.9 seconds. If sniff_timeout is 0, then the time is 0 msec; otherwise, the time is equal to (2 * sniff_timeout -1) * 0.625 msec.
  • interval
    The number of Baseband slots between sniff intervals.

Remarks

This structure is associated with the SO_BTH_ENTER_SNIFF_MODE socket option. See setsockopt (Bluetooth).

Requirements

Header

ws2bth.h

See Also

Reference

Bluetooth Application Development Structures
setsockopt (Bluetooth)