Re: What are these address families?

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Sorry, this was my fault. One extra & in a place where it didn't belong. Windows is correctly putting a 2 where it belongs. Sorry again.

"Norman Diamond" <ndiamond@xxxxxxxxxxxxxxxx> wrote in message news:%23k%23gYsQMGHA.3064@xxxxxxxxxxxxxxxxxxxxxxx
I call getaddrinfo() and it succeeds, yielding a chain of two addrinfo structures.

In both addrinfo structures, the ai_family member is equal to PF_INET and the ai_addrlen member is equal to 16, great.

In one addrinfo structure, the ai_addr points to a sockaddr structure in which the sin_family member has value -31816. In the other, -31672.

According to file WinSock2.h, the value of the sin_family member can range from 0 to 32. (The use of 0 is discouraged, but if Windows gave me a 0 then I'd try to contend with it. The value of 32 is AF_MAX but doesn't otherwise appear to be a valid family, but if windows gave me a 32 then I'd try to contend with it.)

Anyway, how does the value of the sin_family avoid being equal to AF_INET, and how does it get to be negative, and two different negative values for the two retrieved addresses? What do these mean? How can I use them in calls to other functions such as sendto()?

.



Relevant Pages

  • Re: Role of current windows login user
    ... the ability to belong to more than one group and the stated "role of ... This is only the common groups installed on a Windows system. ... > generic member of a sales department. ... > Note that enumerating user groups by reflecting private methods ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Windows Login Authentication
    ... if a user is logged on to windows using his ... member of the right group, you should ask to logoff and logon to windows ... If he/she does NOT belong to the group, ... Using the DirectoryEntry in DirectoryServices namespace. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: sp_revoke login is not working as expected.
    ... EXEC xp_logininfo 'MyDomain\SomeUserAccount','members' ... Try specifying a group member rather than the group. ... This should list the Windows groups the user can connect with. ... connect with the non-existing login. ...
    (microsoft.public.sqlserver.security)
  • Re: Approach for multi level organizations
    ... A member can belong to a local church, then a church can belong to a mission ...
    (microsoft.public.access.tablesdbdesign)
  • Re: Role of current windows login user
    ... as Windows based 'roles' are mapped to "Windows security group" ... generic member of a sales department. ... |> opens the resource, this is the task of the OS and not the ...
    (microsoft.public.dotnet.languages.csharp)