mirror of
https://github.com/mongodb/mongo.git
synced 2024-11-30 00:56:44 +01:00
27 lines
409 B
C
27 lines
409 B
C
|
// message_server.h
|
||
|
|
||
|
/*
|
||
|
abstract database server
|
||
|
async io core, worker thread system
|
||
|
*/
|
||
|
|
||
|
#pragma once
|
||
|
|
||
|
#include "stdafx.h"
|
||
|
|
||
|
namespace mongo {
|
||
|
|
||
|
class MessageServer {
|
||
|
public:
|
||
|
MessageServer( int port ) : _port( port ){}
|
||
|
virtual ~MessageServer(){}
|
||
|
|
||
|
virtual void run() = 0;
|
||
|
|
||
|
protected:
|
||
|
int _port;
|
||
|
};
|
||
|
|
||
|
MessageServer * createServer( int port );
|
||
|
}
|