C++ IP API  9.5.7
TCP & UDP for virtual user scripts
IpScript.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "Ip.h"
4 #include "VirtualUserScript.h"
5 #include "IpVirtualUser.h"
6 #include "UdpLink.h"
7 #include "IpResponses.h"
8 #include "IpEndPoint.h"
9 #include "TcpConnectionFactory.h"
10 #include "UdpLinkFactory.h"
11 
12 namespace Facilita {
13 #pragma warning (disable : 4251)
14 
20 class IP_API IpScript : public VirtualUserScript {
21 
22 public:
24  IpScript(VirtualUser& vu);
25  virtual ~IpScript();
30  IpVirtualUser& getVU() const;
35  TcpConnectionFactory& tcp();
40  UdpLinkFactory& udp();
46  string zeros(unsigned int count) const;
47 };
48 }
49 #define IPUSERSCRIPT_CONSTRUCTOR(scriptName, baseClass) public: ##scriptName(VirtualUser& vu_) : ##baseClass(vu_) {}
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
Inherits from VirtualUserScript and provides access to factories for the creation of TCP connections ...
Definition: IpScript.h:20
#define IP_API
Definition: Ip.h:21
Definition: IpEndPoint.h:9