Team Fortress 2 Source Code as on 22/4/2020
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
645 B

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================//
  7. #ifndef THREADEDTCPSOCKETEMU_H
  8. #define THREADEDTCPSOCKETEMU_H
  9. #ifdef _WIN32
  10. #pragma once
  11. #endif
  12. #include "tcpsocket.h"
  13. // This creates a class that's based on IThreadedTCPSocket, but emulates the old ITCPSocket interface.
  14. // This is used for stress-testing IThreadedTCPSocket.
  15. ITCPSocket* CreateTCPSocketEmu();
  16. ITCPListenSocket* CreateTCPListenSocketEmu( const unsigned short port, int nQueueLength = -1 );
  17. #endif // THREADEDTCPSOCKETEMU_H