| 1 |
/* |
| 2 |
* TCPSocketFactory.h |
| 3 |
* FullerTCP |
| 4 |
* |
| 5 |
* Created by Ian Taylor on 07/03/2007. |
| 6 |
* |
| 7 |
*/ |
| 8 |
|
| 9 |
#include "TCPSocketAgent.h" |
| 10 |
#include "TCPServerSocketAgent.h" |
| 11 |
|
| 12 |
class TCPSocketFactory { |
| 13 |
|
| 14 |
private: |
| 15 |
TCPSocketFactory() {} |
| 16 |
~TCPSocketFactory() {} |
| 17 |
|
| 18 |
public: |
| 19 |
static TCPSocketAgent *createSocketAgent(Agent *forMyAgent); |
| 20 |
static TCPSocketAgent *createSocketAgent(Agent *forMyAgent, nsaddr_t thePort); |
| 21 |
static TCPSocketAgent *createSocketAgent(Agent *forMyAgent, TCPSocketAgent::TcpProtocol theTCPProtocol); |
| 22 |
static TCPSocketAgent *createSocketAgent(Agent *forMyAgent, TCPSocketAgent::TcpProtocol theTCPProtocol, nsaddr_t thePort); |
| 23 |
|
| 24 |
static TCPServerSocketAgent *createServerSocketAgent(Agent *forMyAgent); |
| 25 |
static TCPServerSocketAgent *createServerSocketAgent(Agent *forMyAgent, nsaddr_t thePort); |
| 26 |
static TCPServerSocketAgent *createServerSocketAgent(Agent *forMyAgent, TCPSocketAgent::TcpProtocol theTCPProtocol); |
| 27 |
static TCPServerSocketAgent *createServerSocketAgent(Agent *forMyAgent, TCPSocketAgent::TcpProtocol theTCPProtocol, nsaddr_t thePort); |
| 28 |
|
| 29 |
static Agent *instantiateAgent(const char *tclAgentName); |
| 30 |
static Agent *instantiateAgent(const char *tclAgent, const char *par1); |
| 31 |
static Agent *instantiateAgent(const char *tclAgent, const char *par1, const char *par2); |
| 32 |
}; |