12 O2_HUB_CALL_ME_BACK = 2,
37 uses_hub = O2_NOT_HUB;
39 memset(&udp_address, 0,
sizeof udp_address);
43 O2err send(
bool block);
50 bool local_is_synchronized() { o2_send_clocksync_proc(
this);
51 return IS_SYNCED(
this); }
52 virtual O2status status(
const char **process) {
53 if (!(fds_info->net_tag & (NET_TCP_SERVER | NET_TCP_CLIENT |
54 NET_TCP_CONNECTION))) {
58 *process = get_proc_name();
65 const char *get_proc_name() {
67 if (
this == o2_ctx->proc)
return "_o2";
74 void show(
int indent);
77 static Proc_info *create_tcp_proc(
int tag,
const char *ip,
int *port);
83#define TO_PROC_INFO(node) ((Proc_info *) (node))
85#define TO_PROC_INFO(node) (assert(ISA_PROC((Proc_info *) (node))), \
86 ((Proc_info *) (node)))
87void o2_show_sockets(
void);
92void o2_processes_initialize(
void);
Definition: o2network.h:147
Definition: o2network.h:105
Definition: processes.h:20
bool o2_clock_is_synchronized
A variable indicating that the clock is the reference or is synchronized to the reference.
Definition: clock.cpp:26
O2status
Status return codes for the o2_status function.
Definition: o2.h:435
O2err
return values used generally by O2 functions
Definition: o2.h:329
@ O2_LOCAL
local service with clock sync.
Definition: o2.h:496
@ O2_REMOTE_NOTIME
remote service but no clock sync yet
Definition: o2.h:453
@ O2_UNKNOWN
status is unknown, e.g. service does not exist
Definition: o2.h:438
@ O2_REMOTE
remote service with clock sync.
Definition: o2.h:502
@ O2_LOCAL_NOTIME
local service, no clock sync yet.
Definition: o2.h:445