Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Download Visual Studio Add-In

SOCKADDR (Structures)
 
.
Summary
TODO - a short description

C# Definition:

[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]

    internal struct sockaddr
    {
        internal EnumLib.ADDRESS_FAMILIES sa_family;

        [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 14)] internal String sa_data;
    }

    [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
    internal unsafe struct sockaddr_UNSAFE
    {
        internal EnumLib.ADDRESS_FAMILIES sa_family;
        internal fixed char sa_data [14];

        internal string Name
        {
        get
        {
            var result = string.Empty;
            fixed (char* str = sa_data)
            {
            result = new string(str);
            }
            return result;
        }
        }
    }

Notes:

None.

Documentation
SOCKADDR on MSDN

Please edit this page!

Do you have...

  • helpful tips?
  • corrections to the existing content?
  • alternate definitions?
  • additional languages you want to include?

Select "Edit This Page" on the right hand toolbar and edit it! Or add new pages containing any supporting types needed.

 
Access PInvoke.net directly from VS:
Terms of Use
Find References
Show Printable Version
Revisions