summaryrefslogtreecommitdiff
path: root/utils/vmpi/ThreadedTCPSocketEmu.h
blob: 1ed13806bbc106350de3cc35d318e2ec32e838c8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose: 
//
// $NoKeywords: $
//=============================================================================//

#ifndef THREADEDTCPSOCKETEMU_H
#define THREADEDTCPSOCKETEMU_H
#ifdef _WIN32
#pragma once
#endif


#include "tcpsocket.h"


// This creates a class that's based on IThreadedTCPSocket, but emulates the old ITCPSocket interface.
// This is used for stress-testing IThreadedTCPSocket.
ITCPSocket* CreateTCPSocketEmu();


ITCPListenSocket* CreateTCPListenSocketEmu( const unsigned short port, int nQueueLength = -1 );


#endif // THREADEDTCPSOCKETEMU_H