AGX Dynamics 2.37.3.3
Loading...
Searching...
No Matches
agxNet Namespace Reference

Containins classes for sending/reading data over sockets as well as compression functionality. More...

Classes

class  Compress
 Class for compressing data given a bit-stream. More...
 
class  CoSimulationBase
 Base class for multi threaded transferring simulation between a server and a client using sockets. More...
 
class  CoSimulationClient
 Class for receiving serialized agxSDK::Simulation:s from remote host. More...
 
class  CoSimulationServer
 Class for sending serialized agxSDK::Simulation over to a client. More...
 
class  FramePacket
 
class  IPAddress
 a structure which holds IP address More...
 
class  Library
 Library singleton class. More...
 
class  NetError
 Basic exception class. More...
 
class  PortRange
 Handles testing of ports in a range. More...
 
class  RemoteDebugBase
 Base class for multi threaded transferring simulation between a server and a client using sockets. More...
 
class  RemoteDebugClient
 Class for receiving serialized agxSDK::Simulation:s from remote host. More...
 
class  RemoteDebugServer
 Class for sending serialized agxSDK::Simulation over to a client. More...
 
class  Socket
 
class  SocketSet
 
struct  StructuredMessage
 
class  TCPServerSocket
 
class  TCPSocket
 
class  TcpSocketFrameReader
 
class  TcpSocketFrameWriter
 
class  TimeoutConnectError
 Indicates a timeout between server/client. More...
 
class  UDPSocket
 

Typedefs

typedef agx::observer_ptr< const FramePacketFramePacketConstObserver
 
typedef agx::ref_ptr< const FramePacketFramePacketConstRef
 
typedef agx::observer_ptr< FramePacketFramePacketObserver
 
typedef agx::ref_ptr< FramePacketFramePacketRef
 
typedef agx::observer_ptr< const PortRangePortRangeConstObserver
 
typedef agx::ref_ptr< const PortRangePortRangeConstRef
 
typedef agx::observer_ptr< PortRangePortRangeObserver
 
typedef agx::ref_ptr< PortRangePortRangeRef
 
typedef agx::observer_ptr< const SocketSocketConstObserver
 
typedef agx::ref_ptr< const SocketSocketConstRef
 
typedef agx::observer_ptr< SocketSocketObserver
 
typedef agx::Vector< SocketObserverSocketObserverVector
 
typedef agx::VectorPOD< Socket * > SocketPtrVector
 
typedef agx::ref_ptr< SocketSocketRef
 
typedef agx::Vector< SocketRefSocketRefVector
 
typedef agx::observer_ptr< const SocketSetSocketSetConstObserver
 
typedef agx::ref_ptr< const SocketSetSocketSetConstRef
 
typedef agx::observer_ptr< SocketSetSocketSetObserver
 
typedef agx::ref_ptr< SocketSetSocketSetRef
 
typedef agx::observer_ptr< const StructuredMessageStructuredMessageConstObserver
 
typedef agx::ref_ptr< const StructuredMessageStructuredMessageConstRef
 
typedef agx::observer_ptr< StructuredMessageStructuredMessageObserver
 
typedef agx::ref_ptr< StructuredMessageStructuredMessageRef
 
typedef agx::observer_ptr< const TCPServerSocketTCPServerSocketConstObserver
 
typedef agx::ref_ptr< const TCPServerSocketTCPServerSocketConstRef
 
typedef agx::observer_ptr< TCPServerSocketTCPServerSocketObserver
 
typedef agx::ref_ptr< TCPServerSocketTCPServerSocketRef
 
typedef agx::observer_ptr< const TCPSocketTCPSocketConstObserver
 
typedef agx::ref_ptr< const TCPSocketTCPSocketConstRef
 
typedef agx::observer_ptr< const TcpSocketFrameReaderTcpSocketFrameReaderConstObserver
 
typedef agx::ref_ptr< const TcpSocketFrameReaderTcpSocketFrameReaderConstRef
 
typedef agx::observer_ptr< TcpSocketFrameReaderTcpSocketFrameReaderObserver
 
typedef agx::ref_ptr< TcpSocketFrameReaderTcpSocketFrameReaderRef
 
typedef agx::observer_ptr< const TcpSocketFrameWriterTcpSocketFrameWriterConstObserver
 
typedef agx::ref_ptr< const TcpSocketFrameWriterTcpSocketFrameWriterConstRef
 
typedef agx::observer_ptr< TcpSocketFrameWriterTcpSocketFrameWriterObserver
 
typedef agx::ref_ptr< TcpSocketFrameWriterTcpSocketFrameWriterRef
 
typedef agx::observer_ptr< TCPSocketTCPSocketObserver
 
typedef agx::Vector< TCPSocketObserverTCPSocketObserverVector
 
typedef agx::VectorPOD< TCPSocket * > TCPSocketPtrVector
 
typedef agx::ref_ptr< TCPSocketTCPSocketRef
 
typedef agx::Vector< TCPSocketRefTCPSocketRefVector
 
typedef agx::observer_ptr< const UDPSocketUDPSocketConstObserver
 
typedef agx::ref_ptr< const UDPSocketUDPSocketConstRef
 
typedef agx::observer_ptr< UDPSocketUDPSocketObserver
 
typedef agx::ref_ptr< UDPSocketUDPSocketRef
 

Functions

template<typename T >
extractBytes (const agx::Vector< char > &container, size_t startIndex)
 
agx::UInt16 AGXCORE_EXPORT getAvailablePort ()
 
std::string getMACAddr (const std::string &nic)
 
template<typename T >
void insertBytes (agx::Vector< char > &container, size_t startIndex, const T &value)
 
std::ostream & operator<< (std::ostream &stream, const IPAddress &adr)
 
static agx::String parseString (agx::UInt8 *&buffer, agx::UInt8 *)
 
static agx::UInt32 parseUInt32 (agx::UInt8 *&buffer, agx::UInt8 *)
 
static size_t stringSize (const agx::String &string)
 
static agx::UInt8writeString (agx::UInt8 *buffer, const agx::String &string)
 
static agx::UInt8writeUInt32 (agx::UInt8 *buffer, agx::UInt32 value)
 

Detailed Description

Containins classes for sending/reading data over sockets as well as compression functionality.

Typedef Documentation

◆ FramePacketConstObserver

Definition at line 126 of file FramePacket.h.

◆ FramePacketConstRef

Definition at line 126 of file FramePacket.h.

◆ FramePacketObserver

◆ FramePacketRef

Definition at line 126 of file FramePacket.h.

◆ PortRangeConstObserver

Definition at line 24 of file PortRange.h.

◆ PortRangeConstRef

Definition at line 24 of file PortRange.h.

◆ PortRangeObserver

Definition at line 24 of file PortRange.h.

◆ PortRangeRef

Definition at line 24 of file PortRange.h.

◆ SocketConstObserver

Definition at line 242 of file Socket.h.

◆ SocketConstRef

Definition at line 242 of file Socket.h.

◆ SocketObserver

Definition at line 242 of file Socket.h.

◆ SocketObserverVector

Definition at line 243 of file Socket.h.

◆ SocketPtrVector

Definition at line 243 of file Socket.h.

◆ SocketRef

Definition at line 242 of file Socket.h.

◆ SocketRefVector

Definition at line 243 of file Socket.h.

◆ SocketSetConstObserver

Definition at line 538 of file Socket.h.

◆ SocketSetConstRef

Definition at line 538 of file Socket.h.

◆ SocketSetObserver

Definition at line 538 of file Socket.h.

◆ SocketSetRef

Definition at line 538 of file Socket.h.

◆ StructuredMessageConstObserver

◆ StructuredMessageConstRef

◆ StructuredMessageObserver

◆ StructuredMessageRef

◆ TCPServerSocketConstObserver

◆ TCPServerSocketConstRef

Definition at line 428 of file Socket.h.

◆ TCPServerSocketObserver

◆ TCPServerSocketRef

Definition at line 428 of file Socket.h.

◆ TCPSocketConstObserver

Definition at line 338 of file Socket.h.

◆ TCPSocketConstRef

Definition at line 338 of file Socket.h.

◆ TcpSocketFrameReaderConstObserver

◆ TcpSocketFrameReaderConstRef

◆ TcpSocketFrameReaderObserver

◆ TcpSocketFrameReaderRef

◆ TcpSocketFrameWriterConstObserver

◆ TcpSocketFrameWriterConstRef

◆ TcpSocketFrameWriterObserver

◆ TcpSocketFrameWriterRef

◆ TCPSocketObserver

Definition at line 338 of file Socket.h.

◆ TCPSocketObserverVector

◆ TCPSocketPtrVector

Definition at line 339 of file Socket.h.

◆ TCPSocketRef

Definition at line 338 of file Socket.h.

◆ TCPSocketRefVector

Definition at line 339 of file Socket.h.

◆ UDPSocketConstObserver

Definition at line 495 of file Socket.h.

◆ UDPSocketConstRef

Definition at line 495 of file Socket.h.

◆ UDPSocketObserver

Definition at line 495 of file Socket.h.

◆ UDPSocketRef

Definition at line 495 of file Socket.h.

Function Documentation

◆ extractBytes()

template<typename T >
T agxNet::extractBytes ( const agx::Vector< char > &  container,
size_t  startIndex 
)

Definition at line 129 of file CoSimulationBase.h.

◆ getAvailablePort()

agx::UInt16 AGXCORE_EXPORT agxNet::getAvailablePort ( )
Returns
An available network port.

◆ getMACAddr()

std::string agxNet::getMACAddr ( const std::string &  nic)

◆ insertBytes()

template<typename T >
void agxNet::insertBytes ( agx::Vector< char > &  container,
size_t  startIndex,
const T &  value 
)

Definition at line 122 of file CoSimulationBase.h.

◆ operator<<()

std::ostream & agxNet::operator<< ( std::ostream &  stream,
const IPAddress adr 
)

◆ parseString()

static agx::String agxNet::parseString ( agx::UInt8 *&  buffer,
agx::UInt8  
)
inlinestatic

Definition at line 56 of file include/agxNet/Util.h.

References agxAssert, and stringSize().

◆ parseUInt32()

static agx::UInt32 agxNet::parseUInt32 ( agx::UInt8 *&  buffer,
agx::UInt8  
)
inlinestatic

Definition at line 44 of file include/agxNet/Util.h.

References agxAssert.

◆ stringSize()

static size_t agxNet::stringSize ( const agx::String string)
inlinestatic

Definition at line 22 of file include/agxNet/Util.h.

Referenced by parseString().

◆ writeString()

static agx::UInt8 * agxNet::writeString ( agx::UInt8 buffer,
const agx::String string 
)
inlinestatic

Definition at line 27 of file include/agxNet/Util.h.

◆ writeUInt32()

static agx::UInt8 * agxNet::writeUInt32 ( agx::UInt8 buffer,
agx::UInt32  value 
)
inlinestatic

Definition at line 35 of file include/agxNet/Util.h.