提交 7ccdd37a authored 作者: Anthony Minessale's avatar Anthony Minessale

socket code

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2257 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 f1e3aa5a
...@@ -61,6 +61,8 @@ BEGIN_EXTERN_C ...@@ -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, ...@@ -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;
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论