sockaddr

#include <wsvv.h>

struct sockaddr_vv {
u_short sa_family; /* socket address format */
u_short wFlags; /* specifies optional behavior on a connection */
DWORD dwDeviceId; /* TAPI device ID to use for connections */
UUID uuidProtocol; /* socket protocol */
};

Socket address structure.

Addendum

Instead of using the protocol parameter of the socket function call, set that parameter to 0 and use the uuidProtocol field of the sockaddr structure. Pass the protocol, or return it , using that structure in the accept, bind, connect, , and sendto functions. Also, an application must call the bind function to specify the protocol before it calls the listen function.

The modified sockaddr structure has these fields:

sa_family

The value for the address format field is AF_VOICEVIEW.

wFlags

Reserved for future use. Its value should be 0.

dwDeviceId

Desired TAPI line device ID to use for subsequent calls.

uuidProtocol

16-byte universally unique identifier for the sockets protocol. It replaces the protocol parameter of the socket function.

To produce an application ID, use the EXTIDGEN.EXE or GUUIDGEN.EXE applications. Consult the release notes for the Microsoft Windows SDK for an alternative version. These applications generate a value that is guaranteed to be unique.

See Also

accept, bind, connect, getpeername, getsockname, recvfrom, sendto, socket