38 #include <sys/socket.h>
39 #include <netinet/in.h>
40 #include <arpa/inet.h>
54 host(host), node(n), create(c),
port(-1),
55 bNonBlocking(bNonBlocking),
70 silent_cerr(
"RTMBDyn mailbox(" <<
name <<
") "
71 "init failed" << std::endl);
78 port = rtmbdyn_rt_request_port(
node);
83 silent_cerr(
"RTMBDyn mailbox(" <<
name <<
") "
84 "get_adr failed" << std::endl);
90 f_send = rtmbdyn_RT_mbx_send_if;
93 f_send = rtmbdyn_RT_mbx_send;
100 rtmbdyn_rt_mbx_delete(&
mbx);
111 return out <<
"# RTMBDynOutElem(" <<
GetLabel() <<
") "
112 "not implemented yet" << std::endl;
RTMBDynOutElem(unsigned int uL, const std::string &m, const std::string &host, unsigned long n, bool c, StreamContent *pSC, bool bNonBlocking)
#define MBDYN_EXCEPT_ARGS
virtual ~RTMBDynOutElem(void)
int(* f_send)(unsigned long node, int port, void *v_mbx, void *msg, int msg_size)
virtual void AfterConvergence(const VectorHandler &X, const VectorHandler &XP)
virtual void Prepare(void)=0
#define ASSERT(expression)
const void * GetOutBuf(void) const
virtual std::ostream & Restart(std::ostream &out) const
static std::stack< cleanup * > c
unsigned int GetLabel(void) const
int GetOutSize(void) const