This structure specifies an IrSocket address.
At a Glance
Header file: | Winsock.h |
Windows CE versions: | 1.0 and later |
Syntax
struct sockaddr_irda {
u_short irdaAddressFamily;
u_char irdaDeviceID[4];
char irdaServiceName[25];
};
Members
irdaAddressFamily
Value for the address format member is AF_IRDA from the AF_IRDA.H header file.
irdaDeviceID
Device identifier returned by the SO_IRLMP_ENUMDEVICES option used in a getsockopt function call.
irdaServiceName
Null-terminated string of 25 characters that contains the service name of the application associated with this socket address. If the name is 25 characters or the string is not null-terminated, the connection fails. If the service name is of the form “LSAP-SELXXX” where XXX is a decimal integer in the range 1-127, the address indicates a specific LSAP-SELXXX rather than a service name.