struct sockaddr_in clientaddr;
socklen_t addrlen;

addrlen = sizeof(clientaddr);
clients[slot] = accept (listenfd, (struct sockaddr *) &clientaddr, &addrlen);

@matrix If it's weird UD, did you remember to memset clear the struct?

Follow

@matrix I don't know what else to suggest without seeing more of it, sorry

· · Web · 1 · 0 · 1

@applejack I'm basing it off this blog blog.abhijeetr.com/2010/04/ver and looks like the same exact thing happens with the code from the blog.

Sign in to participate in the conversation
Game Liberty Mastodon

Mainly gaming/nerd instance for people who value free speech. Everyone is welcome.