OBEXCOMMAND (Compact 2013)

3/26/2014

This structure contains a pre-parsed Object Exchange (OBEX) Protocol packet.

Syntax

typedef struct _obex_command {
  unsigned int uiOp;
  unsigned int uiResp;
  unsigned int fFinal;
  ObexPacketData sPktData;
  unsigned int cProp;
  unsigned int * aPropID;
  ObexVariant * aPropVar;
} ObexCommand;

Members

  • uiOp
    The operation selector. This member contains one of the following values.

    Value

    Description

    OBEX_OP_CONNECT

    Connect to a remote device.

    OBEX_OP_DISCONNECT

    Disconnect from a remote device.

    OBEX_OP_PUT

    Transfer a packet of information from the local device to the remote device.

    OBEX_OP_GET

    Transfer a packet of information from the remote device to the local device.

    OBEX_OP_SETPATH

    Set the current path name.

    OBEX_OP_ABORT

    Abort the transfer of the packet.

  • uiResp
    The response code from the server (indicates success or failure of the transmission of a packet).
  • fFinal
    Indicates whether the last packet sent is the final packet in the data stream. If the last packet sent is the final packet, this member is equal to OBEX_OP_FINAL.
  • sPktData
    Contains information related to the current command in an ObexPacketData structure.
  • cProp
    The property array identifier.
  • aPropID
    The property ID of the OBEX packet.
  • aPropVar
    Pointer to an array of ObexVariant structures that contain the properties of the OBEX packet.

Requirements

Header

obexserver.h

See Also

Reference

OBEX Structures