98 if (tloc != string::npos)
103 vector<PACKET_BYTE> packet;
121 iretn = sendto(
out_comm_channel[1].chansock.cudp, reinterpret_cast<const char*>(&packet[0]), packet.size(), 0,
reinterpret_cast<sockaddr*
>(&
out_comm_channel[1].chansock.caddr),
sizeof(
struct sockaddr_in));
FILE * get_debug_fd(double mjd=0.)
Definition: agentclass.cpp:2645
Agent socket using Unicast UDP.
void make_command_packet(vector< PACKET_BYTE > &packet, PACKET_NODE_ID_TYPE node_id, string command)
Definition: transferlib.cpp:348
string nodeName
Definition: agentclass.h:367
int32_t lookup_node_id(string node_name)
Definition: transferlib.cpp:514
int iretn
Definition: rw_test.cpp:37
#define SOCKET_TALK
Talk followed by optional listen (sendto address)
Definition: socketlib.h:82
#define PACKET_DATA_OFFSET_HEADER_TOTAL
Definition: transferlib.h:289
#define AGENTRECVPORT
Default RECV port.
Definition: agentclass.h:200
static Agent * agent
ensure the Agent constructor creates only one instance per process
Definition: agent_001.cpp:45
Definition: agentclass.h:139
#define SOCKET_BLOCKING
Blocking Agent.
Definition: socketlib.h:78
int32_t shutdown()
Shutdown agent gracefully.
Definition: agentclass.cpp:366
#define AGENTRCVTIMEO
Default AGENT socket RCVTIMEO (100 msec)
Definition: agentclass.h:208
string command
Definition: add_radio.cpp:27
double currentmjd(double offset)
Current UTC in Modified Julian Days.
Definition: timelib.cpp:65
#define SOCKET_LISTEN
Listen followed by optional talk (recvfrom INADDRANY)
Definition: socketlib.h:84
static vector< channelstruc > out_comm_channel
Definition: file_send_command.cpp:65
int32_t socket_open(socket_channel *channel, NetworkType ntype, const char *address, uint16_t port, uint16_t role, bool blocking, uint32_t usectimeo, uint32_t rcvbuf, uint32_t sndbuf)
Open UDP socket.
Definition: socketlib.cpp:51
static string node
Definition: agent_monitor.cpp:126
string agentName
Definition: agentclass.h:368