shutdown

[DllImport("ws2_32.dll", SetLastError = true)]
public static extern int shutdown(
   IntPtr s,
   int how
);

Microsoft documentation: Link

Last updated