Author: cgutman
Date: Sat Oct 31 19:15:23 2009
New Revision: 43881
URL:
http://svn.reactos.org/svn/reactos?rev=43881&view=rev
Log:
- Implement OskitTCPDisconnect
Modified:
trunk/reactos/lib/drivers/oskittcp/include/oskittcp.h
trunk/reactos/lib/drivers/oskittcp/oskittcp/interface.c
Modified: trunk/reactos/lib/drivers/oskittcp/include/oskittcp.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/drivers/oskittcp/inclu…
==============================================================================
--- trunk/reactos/lib/drivers/oskittcp/include/oskittcp.h [iso-8859-1] (original)
+++ trunk/reactos/lib/drivers/oskittcp/include/oskittcp.h [iso-8859-1] Sat Oct 31 19:15:23
2009
@@ -162,6 +162,8 @@
char *buffer,
int size);
+int OskitTCPDisconnect(void *socket);
+
#undef errno
void *fbsd_malloc( unsigned int bytes, char *file, unsigned line, ... );
@@ -182,4 +184,7 @@
#define OSK_MSG_PEEK 0x02
#define OSK_MSG_DONTWAIT 0x80
+#define FREAD 0x0001
+#define FWRITE 0x0002
+
#endif/*OSKITTCP_H*/
Modified: trunk/reactos/lib/drivers/oskittcp/oskittcp/interface.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/drivers/oskittcp/oskit…
==============================================================================
--- trunk/reactos/lib/drivers/oskittcp/oskittcp/interface.c [iso-8859-1] (original)
+++ trunk/reactos/lib/drivers/oskittcp/oskittcp/interface.c [iso-8859-1] Sat Oct 31
19:15:23 2009
@@ -236,6 +236,14 @@
return (error);
}
+int OskitTCPDisconnect(void *socket)
+{
+ if (!socket)
+ return OSK_ESHUTDOWN;
+
+ return sodisconnect(socket);
+}
+
int OskitTCPShutdown( void *socket, int disconn_type ) {
if (!socket)
return OSK_ESHUTDOWN;