Merge pull request #1123 from svick/sockaddr-sequential

Specify sequential layout to avoid warning
This commit is contained in:
David Fowler 2016-09-25 10:49:10 -07:00 committed by GitHub
commit 67930753df
1 changed files with 2 additions and 0 deletions

View File

@ -2,9 +2,11 @@
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Net;
using System.Runtime.InteropServices;
namespace Microsoft.AspNetCore.Server.Kestrel.Internal.Networking
{
[StructLayout(LayoutKind.Sequential)]
public struct SockAddr
{
// this type represents native memory occupied by sockaddr struct