/* -*-C-*-
-$Id: ntapi.h,v 1.17 2004/12/20 04:36:44 cph Exp $
+$Id: ntapi.h,v 1.18 2006/11/25 05:11:43 cph Exp $
Copyright 1997,1999,2000,2002,2003,2004 Massachusetts Institute of Technology
+Copyright 2006 Massachusetts Institute of Technology
This file is part of MIT/GNU Scheme.
apicall_select,
apicall_send,
apicall_setsockopt,
+ apicall_shutdown,
apicall_socket,
/* C Library's unix-style procedures: */
"send",
"select",
"set-socket-option",
+ "shutdown",
"socket",
/* C Library's unix-style procedures: */
/* -*-C-*-
-$Id: ntsock.c,v 1.19 2006/01/29 06:37:30 cph Exp $
+$Id: ntsock.c,v 1.20 2006/11/25 05:11:48 cph Exp $
Copyright 1997,1998,1999,2001,2002,2003 Massachusetts Institute of Technology
Copyright 2006 Massachusetts Institute of Technology
return (n_written);
}
+void
+OS_shutdown_socket (Tchannel channel, unsigned long how)
+{
+ VOID_SOCKET_CALL
+ (shutdown,
+ ((CHANNEL_SOCKET (channel)),
+ ((how == 1) ? SD_RECEIVE : (how == 2) ? SD_SEND : SD_BOTH)));
+}
+
static void
socket_channel_close (Tchannel channel, int errorp)
{