Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Sven Gestegård Robertz
LabComm
Commits
27ed2c5b
Commit
27ed2c5b
authored
Feb 22, 2012
by
Sven Robertz
Browse files
removed unused channel
parent
7ff39bbd
Changes
1
Hide whitespace changes
Inline
Side-by-side
examples/simple/datagram/thr_example2.c
View file @
27ed2c5b
...
...
@@ -14,7 +14,6 @@ static void handle_simple_TwoInts_foo(simple_TwoInts *v,void *context) {
}
static
int
encode
(
int
argc
,
char
*
argv
[])
{
struct
thr_chn_t
*
p_thr_chn
=
NULL
;
struct
thr_chn_t
*
p_thr_chn2
=
NULL
;
struct
labcomm_encoder
*
encoder
;
struct
labcomm_decoder
*
decoder
;
...
...
@@ -39,7 +38,6 @@ static int encode(int argc, char *argv[]) {
}
else
{
p_thr_chn
=
thr_open_chn
(
dest_mac
,
chn_id
,
frag_size
,
freq
,
NULL
);
p_thr_chn2
=
thr_open_chn
(
dest_mac
,
chn_id
,
frag_size
,
freq
,(
thr_msg_handler_t
)
labcomm_decoder_decode_one
);
encoder
=
labcomm_encoder_new
(
labcomm_thr_writer
,
p_thr_chn2
);
labcomm_encoder_register_simple_TwoInts
(
encoder
);
...
...
@@ -71,7 +69,6 @@ static int encode(int argc, char *argv[]) {
labcomm_encoder_free
(
encoder
);
labcomm_decoder_free
(
decoder
);
thr_close_chn
(
p_thr_chn
);
thr_close_chn
(
p_thr_chn2
);
//client_exit(fd);
}
...
...
Write
Preview
Supports
Markdown
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