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
BC
public
belle-sip
Commits
6cf6090a
Commit
6cf6090a
authored
Feb 08, 2014
by
Simon Morlat
Browse files
fix connect() error handling on mac
parent
f99713f8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/transports/stream_channel.c
src/transports/stream_channel.c
+1
-1
No files found.
src/transports/stream_channel.c
View file @
6cf6090a
...
...
@@ -140,7 +140,7 @@ int stream_channel_connect(belle_sip_stream_channel_t *obj, const struct addrinf
return
-
1
;
}
belle_sip_channel_set_socket
((
belle_sip_channel_t
*
)
obj
,
sock
,(
belle_sip_source_func_t
)
stream_channel_process_data
);
belle_sip_source_set_events
((
belle_sip_source_t
*
)
obj
,
BELLE_SIP_EVENT_WRITE
|
BELLE_SIP_EVENT_ERROR
);
belle_sip_source_set_events
((
belle_sip_source_t
*
)
obj
,
BELLE_SIP_EVENT_
READ
|
BELLE_SIP_EVENT_
WRITE
|
BELLE_SIP_EVENT_ERROR
);
belle_sip_source_set_timeout
((
belle_sip_source_t
*
)
obj
,
belle_sip_stack_get_transport_timeout
(
obj
->
base
.
stack
));
belle_sip_main_loop_add_source
(
obj
->
base
.
stack
->
ml
,(
belle_sip_source_t
*
)
obj
);
return
0
;
...
...
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