cec: wait 500 ms before trying to retransmit a command. always wait for the result...
[deb_libcec.git] / src / lib / platform / windows / os-tcp.h
index f16cb69d699f9a9d49095fe4aedf6d98c7559b27..b05a3ddb0e2c2e4bbb437fe956b1921941aa611e 100644 (file)
@@ -2,7 +2,7 @@
 /*
  * This file is part of the libCEC(R) library.
  *
- * libCEC(R) is Copyright (C) 2011 Pulse-Eight Limited.  All rights reserved.
+ * libCEC(R) is Copyright (C) 2011-2012 Pulse-Eight Limited.  All rights reserved.
  * libCEC(R) is an original work, containing original code.
  *
  * libCEC(R) is a trademark of Pulse-Eight Limited.
 
 namespace PLATFORM
 {
+  inline void TcpShutdownSocket(socket_t socket)
+  {
+    shutdown(socket, SHUT_RDWR);
+  }
+
   inline int TcpResolveAddress(const CStdString &strHostname, uint16_t iPort, struct addrinfo *address)
   {
      struct addrinfo hints;