Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /// <summary>
- /// Structure used in getaddrinfo() call
- /// </summary>
- /// <remarks></remarks>
- [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
- public unsafe struct addrinfo
- {
- public int ai_flags;
- public int ai_family;
- public int ai_socktype;
- public int ai_protocol;
- public uint ai_addrlen;
- [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.LPStr)]
- public string ai_canonname;
- public sockaddr* ai_addr; //ERROR
- public addrinfo* ai_next; //ERROR
- }
- //Example from C# language specification:
- public unsafe struct Node
- {
- public int Value;
- public Node* Left;
- public Node* Right;
- }
- //Y U NO WORK?
Advertisement
Add Comment
Please, Sign In to add comment