diff options
author | Aki <please@ignore.pl> | 2022-03-31 20:29:41 +0200 |
---|---|---|
committer | Aki <please@ignore.pl> | 2022-03-31 20:29:41 +0200 |
commit | 72733a1a559f67a5e50ff5ffd444fec4ec6672b2 (patch) | |
tree | c2ae2a146e9e413f8994576005551903ed6b663a /NetEx/NetSock.cpp | |
parent | 8e0aa5f780e453b36a02471ab7a587376373044b (diff) | |
download | starshatter-72733a1a559f67a5e50ff5ffd444fec4ec6672b2.zip starshatter-72733a1a559f67a5e50ff5ffd444fec4ec6672b2.tar.gz starshatter-72733a1a559f67a5e50ff5ffd444fec4ec6672b2.tar.bz2 |
Removed method to check available waiting byts in NetSock
Diffstat (limited to 'NetEx/NetSock.cpp')
-rw-r--r-- | NetEx/NetSock.cpp | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/NetEx/NetSock.cpp b/NetEx/NetSock.cpp index 9dc957d..38ce9d5 100644 --- a/NetEx/NetSock.cpp +++ b/NetEx/NetSock.cpp @@ -119,20 +119,6 @@ NetSock::accept(NetAddr* addr) // +--------------------------------------------------------------------+ int -NetSock::available() -{ - if (closed || s == INVALID_SOCKET) return 0; - - unsigned long nbytes = 0; - if (::ioctlsocket(s, FIONREAD, &nbytes) == 0) - return (int) nbytes; - - return 0; -} - -// +--------------------------------------------------------------------+ - -int NetSock::send(Text msg) { if (closed || s == INVALID_SOCKET) return INVALID_SOCKET; |