Arcane  4.1.12.0
Developer documentation
Loading...
Searching...
No Matches
Arcane::HyodaTcp Class Reference
Inheritance diagram for Arcane::HyodaTcp:
Collaboration diagram for Arcane::HyodaTcp:

Public Member Functions

 HyodaTcp (Hyoda *, ISubDomain *, ITraceMng *, Integer, Integer, Integer, bool=false)
void send (const void *, size_t)
void recvPov (double *)
void recvPov (double *, int)
void waitForAcknowledgment (void)
void sendAcknowledgmentPacket (void)
void recvPacket (char *pov, int maxSize, int ms_timeout)
void disconect (void)
Integer payload (void)
void handshake (void)
void getVariableCollectionAndSendItToHost (void)
Public Member Functions inherited from Arcane::TraceAccessor
 TraceAccessor (ITraceMng *m)
 Constructs an accessor via the trace manager m.
 TraceAccessor (const TraceAccessor &rhs)
 Copy constructor.
TraceAccessoroperator= (const TraceAccessor &rhs)
 Copy assignment operator.
virtual ~TraceAccessor ()
 Frees resources.
ITraceMngtraceMng () const
 Trace manager.
TraceMessage info () const
 Flow for an information message.
TraceMessage pinfo () const
 Flow for a parallel information message.
TraceMessage info (char category) const
 Flow for an information message of a given category.
TraceMessage pinfo (char category) const
 Flow for a parallel information message of a given category.
TraceMessage info (bool v) const
 Flow for an information message.
TraceMessage warning () const
 Flow for a warning message.
TraceMessage pwarning () const
TraceMessage error () const
 Flow for an error message.
TraceMessage perror () const
TraceMessage log () const
 Flow for a log message.
TraceMessage plog () const
 Flow for a log message.
TraceMessage logdate () const
 Flow for a log message preceded by the date.
TraceMessage fatal () const
 Flow for a fatal error message.
TraceMessage pfatal () const
 Flow for a parallel fatal error message.
TraceMessageDbg debug (Trace::eDebugLevel=Trace::Medium) const
 Flow for a debug message.
Trace::eDebugLevel configDbgLevel () const
 Debug level of the configuration file.
TraceMessage info (Int32 verbose_level) const
 Flow for an information message of a given level.
TraceMessage linfo () const
 Flow for an information message with the local information level of this instance.
TraceMessage linfo (Int32 relative_level) const
 Flow for an information message with the local information level of this instance.
void fatalMessage (const StandaloneTraceMessage &o) const

Private Member Functions

ssize_t wData (int sockd, const void *vptr, size_t n)
ssize_t rData (int sockd, void *vptr, size_t maxlen)
int checkTcpError (int error)

Private Attributes

Hyodahyoda
ISubDomainm_sub_domain
size_t m_payload
int m_sockfd
struct sockaddr_in * m_servaddr
nfds_t m_nfds
struct pollfd * m_fds

Additional Inherited Members

Protected Member Functions inherited from Arcane::TraceAccessor
void _setLocalVerboseLevel (Int32 v)
Int32 _localVerboseLevel () const

Detailed Description

Definition at line 31 of file HyodaTcp.h.

Constructor & Destructor Documentation

◆ HyodaTcp()

Arcane::HyodaTcp::HyodaTcp ( Hyoda * _hyoda,
ISubDomain * sd,
ITraceMng * tm,
Integer adrs,
Integer port,
Integer pyld,
bool break_at_startup = false )

Definition at line 51 of file HyodaTcp.cc.

◆ ~HyodaTcp()

Arcane::HyodaTcp::~HyodaTcp ( )

Definition at line 93 of file HyodaTcp.cc.

Member Function Documentation

◆ checkTcpError()

int Arcane::HyodaTcp::checkTcpError ( int error)
private

Definition at line 388 of file HyodaTcp.cc.

◆ disconect()

void Arcane::HyodaTcp::disconect ( void )

Definition at line 103 of file HyodaTcp.cc.

◆ getVariableCollectionAndSendItToHost()

void Arcane::HyodaTcp::getVariableCollectionAndSendItToHost ( void )

Definition at line 190 of file HyodaTcp.cc.

◆ handshake()

void Arcane::HyodaTcp::handshake ( void )

Definition at line 113 of file HyodaTcp.cc.

◆ payload()

Integer Arcane::HyodaTcp::payload ( void )
inline

Definition at line 44 of file HyodaTcp.h.

◆ rData()

ssize_t Arcane::HyodaTcp::rData ( int sockd,
void * vptr,
size_t maxlen )
private

Definition at line 354 of file HyodaTcp.cc.

◆ recvPacket()

void Arcane::HyodaTcp::recvPacket ( char * pov,
int maxSize,
int ms_timeout )

Definition at line 337 of file HyodaTcp.cc.

◆ recvPov() [1/2]

void Arcane::HyodaTcp::recvPov ( double * pov)

Definition at line 299 of file HyodaTcp.cc.

◆ recvPov() [2/2]

void Arcane::HyodaTcp::recvPov ( double * pov,
int ms_timeout )

Definition at line 305 of file HyodaTcp.cc.

◆ send()

void Arcane::HyodaTcp::send ( const void * data,
size_t nleft )

Definition at line 253 of file HyodaTcp.cc.

◆ sendAcknowledgmentPacket()

void Arcane::HyodaTcp::sendAcknowledgmentPacket ( void )

Definition at line 317 of file HyodaTcp.cc.

◆ waitForAcknowledgment()

void Arcane::HyodaTcp::waitForAcknowledgment ( void )

Definition at line 327 of file HyodaTcp.cc.

◆ wData()

ssize_t Arcane::HyodaTcp::wData ( int sockd,
const void * vptr,
size_t n )
private

Definition at line 275 of file HyodaTcp.cc.

Member Data Documentation

◆ hyoda

Hyoda* Arcane::HyodaTcp::hyoda
private

Definition at line 52 of file HyodaTcp.h.

◆ m_fds

struct pollfd* Arcane::HyodaTcp::m_fds
private

Definition at line 58 of file HyodaTcp.h.

◆ m_nfds

nfds_t Arcane::HyodaTcp::m_nfds
private

Definition at line 57 of file HyodaTcp.h.

◆ m_payload

size_t Arcane::HyodaTcp::m_payload
private

Definition at line 54 of file HyodaTcp.h.

◆ m_servaddr

struct sockaddr_in* Arcane::HyodaTcp::m_servaddr
private

Definition at line 56 of file HyodaTcp.h.

◆ m_sockfd

int Arcane::HyodaTcp::m_sockfd
private

Definition at line 55 of file HyodaTcp.h.

◆ m_sub_domain

ISubDomain* Arcane::HyodaTcp::m_sub_domain
private

Definition at line 53 of file HyodaTcp.h.


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