mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-05-31 10:46:27 +00:00
socket code
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2257 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
f1e3aa5a96
commit
7ccdd37a71
@ -61,6 +61,8 @@ BEGIN_EXTERN_C
|
|||||||
!strcasecmp(expr, "true") ||\
|
!strcasecmp(expr, "true") ||\
|
||||||
atoi(expr))) ? SWITCH_TRUE : SWITCH_FALSE
|
atoi(expr))) ? SWITCH_TRUE : SWITCH_FALSE
|
||||||
|
|
||||||
|
#define SWITCH_STATUS_IS_BREAK(x) (x || SWITCH_STATUS_BREAK || x == 730035 || x == 35)
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
\brief Return a printable name of a switch_priority_t
|
\brief Return a printable name of a switch_priority_t
|
||||||
\param priority the priority to get the name of
|
\param priority the priority to get the name of
|
||||||
|
@ -244,7 +244,7 @@ static switch_status_t read_packet(listener_t *listener, switch_event_t **event,
|
|||||||
mlen = 1;
|
mlen = 1;
|
||||||
status = switch_socket_recv(listener->sock, ptr, &mlen);
|
status = switch_socket_recv(listener->sock, ptr, &mlen);
|
||||||
|
|
||||||
if (status != SWITCH_STATUS_BREAK && status != SWITCH_STATUS_SUCCESS && status != 730035) {
|
if (status != SWITCH_STATUS_BREAK && status != SWITCH_STATUS_SUCCESS) {
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user