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
external
sofia-sip
Commits
72430f11
Commit
72430f11
authored
Feb 19, 2007
by
Martti Mela
Browse files
su_port.c: added kqueue events
darcs-hash:20070218233516-1b897-6c3711af1f41b7b596f0749f69a3a9691fca94ba.gz
parent
26686123
Changes
1
Hide whitespace changes
Inline
Side-by-side
libsofia-sip-ua/su/su_port.c
View file @
72430f11
...
...
@@ -55,6 +55,8 @@ su_port_t *su_default_port_create(void)
return
su_epoll_port_create
();
#elif HAVE_POLL_PORT
return
su_poll_port_create
();
#elif SU_HAVE_KQUEUE
return
su_kqueue_port_create
();
#elif HAVE_WIN32
return
su_wsaevent_port_create
();
#elif HAVE_SELECT
...
...
@@ -72,6 +74,8 @@ int su_default_clone_start(su_root_t *parent,
{
#if HAVE_EPOLL
return
su_epoll_clone_start
(
parent
,
return_clone
,
magic
,
init
,
deinit
);;
#elif SU_HAVE_KQUEUE
return
su_kqueue_clone_start
(
parent
,
return_clone
,
magic
,
init
,
deinit
);;
#elif HAVE_POLL_PORT
return
su_poll_clone_start
(
parent
,
return_clone
,
magic
,
init
,
deinit
);;
#elif HAVE_WIN32
...
...
@@ -111,6 +115,12 @@ void su_port_set_system_preferences(char const *name)
start
=
su_epoll_clone_start
;
}
#endif
#if SU_HAVE_KQUEUE
else
if
(
strcmp
(
name
,
"kqueue"
)
==
0
)
{
create
=
su_kqueue_port_create
;
start
=
su_kqueue_clone_start
;
}
#endif
#if HAVE_POLL_PORT
else
if
(
strcmp
(
name
,
"poll"
)
==
0
)
{
create
=
su_poll_port_create
;
...
...
@@ -123,7 +133,7 @@ void su_port_set_system_preferences(char const *name)
start
=
su_wsaevent_clone_start
;
}
#endif
#if HAVE_SELECT && !HAVE_WIN32
#if HAVE_SELECT && !HAVE_WIN32
&& !SU_HAVE_KQUEUE
else
if
(
strcmp
(
name
,
"select"
)
==
0
)
{
create
=
su_select_port_create
;
start
=
su_select_clone_start
;
...
...
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