[Freeswitch-svn] [commit] r2257 - in freeswitch/trunk/src: include mod/event_handlers/mod_event_socket
Freeswitch SVN
anthm at freeswitch.org
Fri Aug 11 11:25:49 EDT 2006
Author: anthm
Date: Fri Aug 11 11:25:49 2006
New Revision: 2257
Modified:
freeswitch/trunk/src/include/switch_utils.h
freeswitch/trunk/src/mod/event_handlers/mod_event_socket/mod_event_socket.c
Log:
socket code
Modified: freeswitch/trunk/src/include/switch_utils.h
==============================================================================
--- freeswitch/trunk/src/include/switch_utils.h (original)
+++ freeswitch/trunk/src/include/switch_utils.h Fri Aug 11 11:25:49 2006
@@ -61,6 +61,8 @@
!strcasecmp(expr, "true") ||\
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
\param priority the priority to get the name of
Modified: freeswitch/trunk/src/mod/event_handlers/mod_event_socket/mod_event_socket.c
==============================================================================
--- freeswitch/trunk/src/mod/event_handlers/mod_event_socket/mod_event_socket.c (original)
+++ freeswitch/trunk/src/mod/event_handlers/mod_event_socket/mod_event_socket.c Fri Aug 11 11:25:49 2006
@@ -244,7 +244,7 @@
mlen = 1;
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;
}
More information about the Freeswitch-svn
mailing list