summaryrefslogtreecommitdiffhomepage
path: root/NetEx
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2022-03-31 20:29:41 +0200
committerAki <please@ignore.pl>2022-03-31 20:29:41 +0200
commit72733a1a559f67a5e50ff5ffd444fec4ec6672b2 (patch)
treec2ae2a146e9e413f8994576005551903ed6b663a /NetEx
parent8e0aa5f780e453b36a02471ab7a587376373044b (diff)
downloadstarshatter-72733a1a559f67a5e50ff5ffd444fec4ec6672b2.zip
starshatter-72733a1a559f67a5e50ff5ffd444fec4ec6672b2.tar.gz
starshatter-72733a1a559f67a5e50ff5ffd444fec4ec6672b2.tar.bz2
Removed method to check available waiting byts in NetSock
Diffstat (limited to 'NetEx')
-rw-r--r--NetEx/NetSock.cpp14
-rw-r--r--NetEx/NetSock.h1
2 files changed, 0 insertions, 15 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;
diff --git a/NetEx/NetSock.h b/NetEx/NetSock.h
index 0df1cc6..b483220 100644
--- a/NetEx/NetSock.h
+++ b/NetEx/NetSock.h
@@ -41,7 +41,6 @@ public:
int connect(const NetAddr& addr);
int listen(int max_connections=5);
NetSock* accept(NetAddr* addr=0);
- int available();
int send(Text msg);
Text recv();
int sendto(Text msg, const NetAddr& dest);