C++ IP API  9.5.7
TCP & UDP for virtual user scripts
IpVirtualUser.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "Ip.h"
4 #include "VirtualUser.h"
5 
6 namespace Facilita {
7  class TcpConnectionFactory;
8  class UdpLinkFactory;
9  class LockableLog;
10 
16 class IP_API IpVirtualUser : public VirtualUser
17 {
18  public:
20  IpVirtualUser();
21  virtual ~IpVirtualUser();
23  void setTcpConnectionFactory(TcpConnectionFactory* tcpConnectionFactory);
25  void setUdpLinkFactory(UdpLinkFactory* udpDeviceFactory);
30  UdpLinkFactory& udp();
31 
36  TcpConnectionFactory& tcp();
38  void setLog(LockableLog* log);
39 
40  private:
41  TcpConnectionFactory* _tcpConnectionFactory;
42  UdpLinkFactory* _udpLinkFactory;
43  LockableLog* _log;
44 };
45 }
This class inherits from VirtualUser and provides access to UDP link and TCP connection factories...
Definition: IpVirtualUser.h:16
A factory class for the creation of TcpClientConnection and TcpConnection objects.
Definition: TcpConnectionFactory.h:24
#define IP_API
Definition: Ip.h:21
Definition: IpEndPoint.h:9