uNetworking / uSockets

Miniscule cross-platform eventing, networking & crypto for async applications
Apache License 2.0
1.29k stars 268 forks source link

onopen not receiving ip argument #69

Closed lolriven closed 2 years ago

lolriven commented 5 years ago

In the onopen callback, the ip length shows a value but the char* ip is just an empty string.

struct us_socket_t *onopen(struct us_socket_t *s, int is_client, char *ip, int ip_length) {
    printf("\nconnected:%s %i\n",ip,ip_length);
    return s;
}

Unless the ip is supposed to be a sock_addr struct?