Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Elsa Gonsiorowski
codes
Commits
d63ad5de
Commit
d63ad5de
authored
May 05, 2014
by
Jonathan Jenkins
Browse files
reflect updated model_net_event signature
parent
51ea02b0
Changes
1
Hide whitespace changes
Inline
Side-by-side
doc/example/example.c
View file @
d63ad5de
...
...
@@ -441,7 +441,7 @@ static void handle_kickoff_event(
/* model-net needs to know about (1) higher-level destination LP which is a neighboring server in this case
* (2) struct and size of remote message and (3) struct and size of local message (a local message can be null) */
model_net_event
(
net_id
,
"test"
,
dest_id
,
payload_sz
,
sizeof
(
svr_msg
),
model_net_event
(
net_id
,
"test"
,
dest_id
,
payload_sz
,
0
.
0
,
sizeof
(
svr_msg
),
(
const
void
*
)
&
m_remote
,
sizeof
(
svr_msg
),
(
const
void
*
)
&
m_local
,
lp
);
ns
->
msg_sent_count
++
;
}
...
...
@@ -489,7 +489,7 @@ static void handle_ack_event(
m_remote
.
src
=
lp
->
gid
;
/* send another request */
model_net_event
(
net_id
,
"test"
,
m
->
src
,
payload_sz
,
sizeof
(
svr_msg
),
model_net_event
(
net_id
,
"test"
,
m
->
src
,
payload_sz
,
0
.
0
,
sizeof
(
svr_msg
),
(
const
void
*
)
&
m_remote
,
sizeof
(
svr_msg
),
(
const
void
*
)
&
m_local
,
lp
);
ns
->
msg_sent_count
++
;
m
->
incremented_flag
=
1
;
...
...
@@ -530,7 +530,7 @@ static void handle_req_event(
/* also trigger a local event for completion of payload msg */
/* remote host will get an ack event */
model_net_event
(
net_id
,
"test"
,
m
->
src
,
payload_sz
,
sizeof
(
svr_msg
),
model_net_event
(
net_id
,
"test"
,
m
->
src
,
payload_sz
,
0
.
0
,
sizeof
(
svr_msg
),
(
const
void
*
)
&
m_remote
,
sizeof
(
svr_msg
),
(
const
void
*
)
&
m_local
,
lp
);
return
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment