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
Support Forum
Download Visual Studio Add-In

Terms of Use
Privacy Policy
sockaddr_in (Structures)
 
.
Summary
TODO - a short description

C# Definition:

    [StructLayout(LayoutKind.Explicit, Size = 4)]
    public struct in_addr
    {
        [FieldOffset(0)]
        public byte s_b1;
        [FieldOffset(1)]
        public byte s_b2;
        [FieldOffset(2)]
        public byte s_b3;
        [FieldOffset(3)]
        public byte s_b4;

        [FieldOffset(0)]
        public ushort s_w1;
        [FieldOffset(2)]
        public ushort s_w2;

        [FieldOffset(0)]
        public uint S_addr;

        /// <summary>
        /// can be used for most tcp & ip code
        /// </summary>
        public uint s_addr { get { return S_addr; } }

        /// <summary>
        /// host on imp
        /// </summary>
        public byte s_host { get { return s_b2; } }

        /// <summary>
        /// network
        /// </summary>
        public byte s_net { get { return s_b1; } }

        /// <summary>
        /// imp
        /// </summary>
        public ushort s_imp { get { return s_w2; } }

        /// <summary>
        /// imp #
        /// </summary>
        public byte s_impno { get { return s_b4; } }

        /// <summary>
        /// logical host
        /// </summary>
        public byte s_lh { get { return s_b3; } }
    }
    [StructLayout(LayoutKind.Sequential)]
    public struct sockaddr_in
    {
        public ADDRESS_FAMILIES sin_family;
        public ushort sin_port;
        public in_addr sin_addr;
        [MarshalAs(UnmanagedType.ByValArray, SizeConst = 8)]
        public byte[] sin_zero;
    }

VB Definition:

Structure sockaddr_in
   Public TODO
End Structure

User-Defined Field Types:

None.

Notes:

None.

Documentation
sockaddr_in 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