IrDA and SOCKADDR_IRDA Structure

The SOCKADDR_IRDA structure is used for IrDA sockets. For convenience, the structure definition is presented here (if discrepancies exist, the reference in Windows Sockets is definitive).

#include <windows.h>

typedef struct _SOCKADDR_IRDA
{
  u_short    irdaAddressFamily;
  u_char     irdaDeviceID[4];
  char       irdaServiceName[25];
} SOCKADDR_IRDA, *PSOCKADDR_IRDA, FAR *LPSOCKADDR_IRDA;

irdaAddressFamily

For IrDA applications, the irdaAddressFamily member is always AF_IRDA.

irdaDeviceID

Client applications fill in all fields. The irdaDeviceID member is the device address of the device that the client connects to using the Windows Sockets connect function; the device address is returned from a previous discovery operation initiated by a Windows Sockets getsockopt function call with the IRLMP_ENUMDEVICES option. The irdaDeviceID member is ignored by the server application.

irdaServiceName

Server applications use irdaServiceName to specify their well-known service name during a call to the Windows Sockets bind function.

Remarks

IrDA applications must not issue a connect function call after issuing a bind call.

 

 

Community Additions

ADD
Show: