mirror of
https://github.com/reactos/reactos.git
synced 2025-05-08 11:24:14 +00:00
- Implement OskitTCPDisconnect
svn path=/trunk/; revision=43881
This commit is contained in:
parent
8a28e9ff5e
commit
fcec7e501b
2 changed files with 13 additions and 0 deletions
|
@ -162,6 +162,8 @@ int OskitTCPSetSockOpt(void *socket,
|
||||||
char *buffer,
|
char *buffer,
|
||||||
int size);
|
int size);
|
||||||
|
|
||||||
|
int OskitTCPDisconnect(void *socket);
|
||||||
|
|
||||||
#undef errno
|
#undef errno
|
||||||
|
|
||||||
void *fbsd_malloc( unsigned int bytes, char *file, unsigned line, ... );
|
void *fbsd_malloc( unsigned int bytes, char *file, unsigned line, ... );
|
||||||
|
@ -182,4 +184,7 @@ void fbsd_free( void *data, char *file, unsigned line, ... );
|
||||||
#define OSK_MSG_PEEK 0x02
|
#define OSK_MSG_PEEK 0x02
|
||||||
#define OSK_MSG_DONTWAIT 0x80
|
#define OSK_MSG_DONTWAIT 0x80
|
||||||
|
|
||||||
|
#define FREAD 0x0001
|
||||||
|
#define FWRITE 0x0002
|
||||||
|
|
||||||
#endif/*OSKITTCP_H*/
|
#endif/*OSKITTCP_H*/
|
||||||
|
|
|
@ -236,6 +236,14 @@ done:
|
||||||
return (error);
|
return (error);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int OskitTCPDisconnect(void *socket)
|
||||||
|
{
|
||||||
|
if (!socket)
|
||||||
|
return OSK_ESHUTDOWN;
|
||||||
|
|
||||||
|
return sodisconnect(socket);
|
||||||
|
}
|
||||||
|
|
||||||
int OskitTCPShutdown( void *socket, int disconn_type ) {
|
int OskitTCPShutdown( void *socket, int disconn_type ) {
|
||||||
if (!socket)
|
if (!socket)
|
||||||
return OSK_ESHUTDOWN;
|
return OSK_ESHUTDOWN;
|
||||||
|
|
Loading…
Reference in a new issue