C++ IP API  9.5.5
TCP & UDP for virtual user scripts
Facilita::IpScript Class Reference

Inherits from VirtualUserScript and provides access to factories for the creation of TCP connections and UDP links. More...

Inheritance diagram for Facilita::IpScript:
Collaboration diagram for Facilita::IpScript:

Public Methods

 IpScript (VirtualUser &vu)
 Standard constructor - do not call directly. More...
 
virtual ~IpScript ()
 
IpVirtualUsergetVU () const
 Return a reference to the IpVirtualUser VU object, a subclass of VirtualUser, that owns this IpScript instance. More...
 
TcpConnectionFactorytcp ()
 Return a reference to the TcpConnectionFactory factory owned by IpVirtualUser. More...
 
UdpLinkFactoryudp ()
 Return a reference to the UdpLinkFactory factory owned by IpVirtualUser. More...
 
string zeros (unsigned int count) const
 Helper method that creates strings of null bytes. More...
 

Detailed Description

Inherits from VirtualUserScript and provides access to factories for the creation of TCP connections and UDP links.

Constructors

Facilita::IpScript::IpScript ( VirtualUser &  vu)

Standard constructor - do not call directly.

virtual Facilita::IpScript::~IpScript ( )
virtual

Methods

IpVirtualUser& Facilita::IpScript::getVU ( ) const

Return a reference to the IpVirtualUser VU object, a subclass of VirtualUser, that owns this IpScript instance.

Returns
A reference to the owning VU object.
TcpConnectionFactory& Facilita::IpScript::tcp ( )

Return a reference to the TcpConnectionFactory factory owned by IpVirtualUser.

Returns
A reference to the TcpConnectionFactory factory.
UdpLinkFactory& Facilita::IpScript::udp ( )

Return a reference to the UdpLinkFactory factory owned by IpVirtualUser.

Returns
A reference to the UdpLinkFactory factory.
string Facilita::IpScript::zeros ( unsigned int  count) const

Helper method that creates strings of null bytes.

Parameters
countThe number of null bytes to create.
Returns
A string consisting of null bytes.

The documentation for this class was generated from the following file: