AGXDynamics  2.31.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
agxNet Namespace Reference

Name space containing classes for sending/reading data over sockets. 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  UDPSocket
 
class  WebSocket
 A socket that connects to a client. More...
 
class  WebSocketFrameReader
 
class  WebSocketFrameWriter
 
class  WebSocketServer
 

Typedefs

typedef agx::observer_ptr
< const FramePacket > 
FramePacketConstObserver
 
typedef agx::ref_ptr< const
FramePacket > 
FramePacketConstRef
 
typedef agx::observer_ptr
< FramePacket > 
FramePacketObserver
 
typedef agx::ref_ptr< FramePacket > FramePacketRef
 
typedef agx::observer_ptr
< const PortRange > 
PortRangeConstObserver
 
typedef agx::ref_ptr< const
PortRange > 
PortRangeConstRef
 
typedef agx::observer_ptr
< PortRange > 
PortRangeObserver
 
typedef agx::ref_ptr< PortRange > PortRangeRef
 
typedef agx::observer_ptr
< const Socket > 
SocketConstObserver
 
typedef agx::ref_ptr< const
Socket > 
SocketConstRef
 
typedef agx::observer_ptr< Socket > SocketObserver
 
typedef agx::ref_ptr< Socket > SocketRef
 
typedef agx::observer_ptr
< const SocketSet > 
SocketSetConstObserver
 
typedef agx::ref_ptr< const
SocketSet > 
SocketSetConstRef
 
typedef agx::observer_ptr
< SocketSet > 
SocketSetObserver
 
typedef agx::ref_ptr< SocketSet > SocketSetRef
 
typedef agx::observer_ptr
< const StructuredMessage > 
StructuredMessageConstObserver
 
typedef agx::ref_ptr< const
StructuredMessage > 
StructuredMessageConstRef
 
typedef agx::observer_ptr
< StructuredMessage > 
StructuredMessageObserver
 
typedef agx::ref_ptr
< StructuredMessage > 
StructuredMessageRef
 
typedef agx::observer_ptr
< const TCPServerSocket > 
TCPServerSocketConstObserver
 
typedef agx::ref_ptr< const
TCPServerSocket > 
TCPServerSocketConstRef
 
typedef agx::observer_ptr
< TCPServerSocket > 
TCPServerSocketObserver
 
typedef agx::ref_ptr
< TCPServerSocket > 
TCPServerSocketRef
 
typedef agx::observer_ptr
< const TCPSocket > 
TCPSocketConstObserver
 
typedef agx::ref_ptr< const
TCPSocket > 
TCPSocketConstRef
 
typedef agx::observer_ptr
< const TcpSocketFrameReader > 
TcpSocketFrameReaderConstObserver
 
typedef agx::ref_ptr< const
TcpSocketFrameReader > 
TcpSocketFrameReaderConstRef
 
typedef agx::observer_ptr
< TcpSocketFrameReader > 
TcpSocketFrameReaderObserver
 
typedef agx::ref_ptr
< TcpSocketFrameReader > 
TcpSocketFrameReaderRef
 
typedef agx::observer_ptr
< const TcpSocketFrameWriter > 
TcpSocketFrameWriterConstObserver
 
typedef agx::ref_ptr< const
TcpSocketFrameWriter > 
TcpSocketFrameWriterConstRef
 
typedef agx::observer_ptr
< TcpSocketFrameWriter > 
TcpSocketFrameWriterObserver
 
typedef agx::ref_ptr
< TcpSocketFrameWriter > 
TcpSocketFrameWriterRef
 
typedef agx::observer_ptr
< TCPSocket > 
TCPSocketObserver
 
typedef agx::ref_ptr< TCPSocket > TCPSocketRef
 
typedef agx::observer_ptr
< const UDPSocket > 
UDPSocketConstObserver
 
typedef agx::ref_ptr< const
UDPSocket > 
UDPSocketConstRef
 
typedef agx::observer_ptr
< UDPSocket > 
UDPSocketObserver
 
typedef agx::ref_ptr< UDPSocket > UDPSocketRef
 
typedef agx::observer_ptr
< const WebSocket > 
WebSocketConstObserver
 
typedef agx::ref_ptr< const
WebSocket > 
WebSocketConstRef
 
typedef agx::observer_ptr
< const WebSocketFrameReader > 
WebSocketFrameReaderConstObserver
 
typedef agx::ref_ptr< const
WebSocketFrameReader > 
WebSocketFrameReaderConstRef
 
typedef agx::observer_ptr
< WebSocketFrameReader > 
WebSocketFrameReaderObserver
 
typedef agx::ref_ptr
< WebSocketFrameReader > 
WebSocketFrameReaderRef
 
typedef agx::observer_ptr
< const WebSocketFrameWriter > 
WebSocketFrameWriterConstObserver
 
typedef agx::ref_ptr< const
WebSocketFrameWriter > 
WebSocketFrameWriterConstRef
 
typedef agx::observer_ptr
< WebSocketFrameWriter > 
WebSocketFrameWriterObserver
 
typedef agx::ref_ptr
< WebSocketFrameWriter > 
WebSocketFrameWriterRef
 
typedef agx::observer_ptr
< WebSocket > 
WebSocketObserver
 
typedef agx::ref_ptr< WebSocket > WebSocketRef
 
typedef agx::observer_ptr
< const WebSocketServer > 
WebSocketServerConstObserver
 
typedef agx::ref_ptr< const
WebSocketServer > 
WebSocketServerConstRef
 
typedef agx::observer_ptr
< WebSocketServer > 
WebSocketServerObserver
 
typedef agx::ref_ptr
< WebSocketServer > 
WebSocketServerRef
 

Functions

 AGX_DECLARE_VECTOR_TYPES (WebSocket)
 
 AGX_DECLARE_VECTOR_TYPES (Socket)
 
 AGX_DECLARE_VECTOR_TYPES (TCPSocket)
 
template<typename T >
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::UInt8 * writeString (agx::UInt8 *buffer, const agx::String &string)
 
static agx::UInt8 * writeUInt32 (agx::UInt8 *buffer, agx::UInt32 value)
 

Detailed Description

Name space containing classes for sending/reading data over sockets.

the main namespace of agxNet library.

Compressing data etc.

All the declarations of agxNet library are made inside this namespace.

Typedef Documentation

Definition at line 127 of file FramePacket.h.

Definition at line 127 of file FramePacket.h.

Definition at line 127 of file FramePacket.h.

Definition at line 25 of file PortRange.h.

Definition at line 25 of file PortRange.h.

Definition at line 25 of file PortRange.h.

Definition at line 25 of file PortRange.h.

Definition at line 233 of file Socket.h.

Definition at line 233 of file Socket.h.

Definition at line 233 of file Socket.h.

Definition at line 233 of file Socket.h.

Definition at line 517 of file Socket.h.

Definition at line 517 of file Socket.h.

Definition at line 517 of file Socket.h.

Definition at line 517 of file Socket.h.

Definition at line 407 of file Socket.h.

Definition at line 407 of file Socket.h.

Definition at line 317 of file Socket.h.

Definition at line 317 of file Socket.h.

Definition at line 317 of file Socket.h.

Definition at line 317 of file Socket.h.

Definition at line 474 of file Socket.h.

Definition at line 474 of file Socket.h.

Definition at line 474 of file Socket.h.

Definition at line 474 of file Socket.h.

Definition at line 47 of file WebSocket.h.

Definition at line 47 of file WebSocket.h.

Definition at line 47 of file WebSocket.h.

Definition at line 47 of file WebSocket.h.

Definition at line 193 of file WebSocket.h.

Definition at line 193 of file WebSocket.h.

Function Documentation

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

Definition at line 132 of file CoSimulationBase.h.

agx::UInt16 AGXCORE_EXPORT agxNet::getAvailablePort ( )
Returns
An available network port.
std::string agxNet::getMACAddr ( const std::string &  nic)
template<typename T >
void agxNet::insertBytes ( agx::Vector< char > &  container,
size_t  startIndex,
const T &  value 
)

Definition at line 125 of file CoSimulationBase.h.

std::ostream& agxNet::operator<< ( std::ostream &  stream,
const IPAddress &  adr 
)
static agx::String agxNet::parseString ( agx::UInt8 *&  buffer,
agx::UInt8 *   
)
inlinestatic

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

References agxAssert, and stringSize().

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

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

References agxAssert.

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

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

Referenced by parseString().

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

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

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

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