mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-23 20:51:58 +00:00
add mod_event_multicast to msvc build. Fix some warnings.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@618 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -84,7 +84,7 @@ static switch_status load_config(void)
|
||||
static void event_handler(switch_event *event)
|
||||
{
|
||||
char buf[1024];
|
||||
int len;
|
||||
size_t len;
|
||||
|
||||
if (event->subclass && !strcmp(event->subclass->name, MULTICAST_EVENT)) {
|
||||
/* ignore our own events to avoid ping pong*/
|
||||
@@ -197,7 +197,7 @@ SWITCH_MOD_DECLARE(switch_status) switch_module_runtime(void)
|
||||
globals.running = 1;
|
||||
while(globals.running == 1) {
|
||||
switch_sockaddr_t addr = {0};
|
||||
int len = sizeof(buf);
|
||||
size_t len = sizeof(buf);
|
||||
memset(buf, 0, len);
|
||||
if ((status = switch_socket_recvfrom(&addr, globals.udp_socket, 0, buf, &len)) == SWITCH_STATUS_SUCCESS) {
|
||||
if (switch_event_create_subclass(&local_event, SWITCH_EVENT_CUSTOM, MULTICAST_EVENT) == SWITCH_STATUS_SUCCESS) {
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
ProjectType="Visual C++"
|
||||
Version="8.00"
|
||||
Name="mod_event_multicast"
|
||||
ProjectGUID="{3A2A7795-C216-4FFF-B8EF-4D17A84BACCC}"
|
||||
ProjectGUID="{784113EF-44D9-4949-835D-7065D3C7AD08}"
|
||||
RootNamespace="mod_event_multicast"
|
||||
Keyword="Win32Proj"
|
||||
>
|
||||
|
||||
@@ -119,5 +119,7 @@ void include_me(void)
|
||||
{
|
||||
apr_socket_shutdown(NULL, 0);
|
||||
apr_socket_recvfrom(NULL, NULL, 0, NULL, NULL);
|
||||
apr_mcast_join(NULL, NULL, NULL, NULL);
|
||||
apr_socket_opt_set(NULL, 0, 0);
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user