[IP] Add a TCPGetSocketStatus() wrapper around LibTCPGetSocketStatus()
authorPierre Schweitzer <pierre@reactos.org>
Fri, 23 Nov 2018 21:48:34 +0000 (22:48 +0100)
committerPierre Schweitzer <pierre@reactos.org>
Fri, 23 Nov 2018 21:51:35 +0000 (22:51 +0100)
sdk/lib/drivers/ip/transport/tcp/tcp.c

index 69a2f42..675971b 100644 (file)
@@ -691,5 +691,19 @@ TCPSetNoDelay(
     return STATUS_SUCCESS;
 }
 
+NTSTATUS
+TCPGetSocketStatus(
+    PCONNECTION_ENDPOINT Connection,
+    PULONG State)
+{
+    if (!Connection)
+        return STATUS_UNSUCCESSFUL;
+
+    if (Connection->SocketContext == NULL)
+        return STATUS_UNSUCCESSFUL;
+
+    LibTCPGetSocketStatus(Connection->SocketContext, State);
+    return STATUS_SUCCESS;
+}
 
 /* EOF */