Skip to content

Commit

Permalink
Even more prints
Browse files Browse the repository at this point in the history
  • Loading branch information
JohannesLorenz committed Dec 3, 2023
1 parent f6e84a8 commit 512b3c0
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/server.c
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,7 @@ lo_server lo_server_new_multicast_iface(const char *group, const char *port,
lo_server lo_server_new_with_proto(const char *port, int proto,
lo_err_handler err_h)
{
puts("-4");
return lo_server_new_with_proto_internal(NULL, port, 0, 0, proto, err_h, 0);
}

Expand Down Expand Up @@ -452,14 +453,14 @@ lo_server lo_server_new_with_proto_internal(const char *group,
char pnum[16];
const char *service;
int err = 0;

puts("-4");
#if defined(WIN32) || defined(_MSC_VER)
/* Windows Server 2003 or later (Vista, 7, etc.) must join the
* multicast group before bind(), but Windows XP must join
* after bind(). */
int wins2003_or_later = detect_windows_server_2003_or_later();
#endif

puts("-3");
// Set real protocol, if Default is requested
if (proto == LO_DEFAULT) {
#if !defined(WIN32) && !defined(_MSC_VER)
Expand All @@ -469,11 +470,12 @@ lo_server lo_server_new_with_proto_internal(const char *group,
#endif
proto = LO_UDP;
}
puts("-2");
#if defined(WIN32) || defined(_MSC_VER)
if (!initWSock())
return NULL;
#endif

puts("-1");
s = (lo_server) calloc(1, sizeof(struct _lo_server));
if (!s)
return 0;
Expand All @@ -499,7 +501,7 @@ lo_server lo_server_new_with_proto_internal(const char *group,
s->bundle_handler_user_data = NULL;
s->addr_if.iface = 0;
s->addr_if.size = 0;

puts("0");
if (!(s->sockets && s->contexts && s->sources)) {
free(s->sockets);
free(s->contexts);
Expand Down

0 comments on commit 512b3c0

Please sign in to comment.