Browse Source

+ add missing SHUT_* constants for fpshutdown() (aliases from winsock2)

git-svn-id: trunk@11939 -
Almindor 17 years ago
parent
commit
4972ec0ae5
1 changed files with 4 additions and 0 deletions
  1. 4 0
      rtl/win/sockets.pp

+ 4 - 0
rtl/win/sockets.pp

@@ -41,6 +41,10 @@ const
   EsockEPROTONOSUPPORT = WSAEPROTONOSUPPORT;
   EsockEPROTONOSUPPORT = WSAEPROTONOSUPPORT;
   EsockEWOULDBLOCK     = WSAEWOULDBLOCK;
   EsockEWOULDBLOCK     = WSAEWOULDBLOCK;
 
 
+  SHUT_RD          = SD_RECEIVE; // aliases so we are cross-platform
+  SHUT_WR          = SD_SEND;
+  SHUT_RDWR        = SD_BOTH;
+
 {$i socketsh.inc}
 {$i socketsh.inc}
 {$i fpwinsockh.inc}
 {$i fpwinsockh.inc}