Skip to content

sts_net, socket accept doesn't work on Windows #1

Open

Description

@jimon

So, I'm looking through the example, but it fails to work on Windows, I'm creating server and client, client connects just fine, and on server side sts_net_check_socket_set returns 1 on listening socket, but sts_net_accept_socket returns -1 as socket failed. Haven't really figured out why is that though.

Activity

  1. kieselsteini commented on Apr 25, 2017

    @kieselsteini
    Owner

    Hey....I was able to reproduce this on Windows 10 when IPv6 is available. The simplest fix is probably to change line 285 to hints.ai_family = AF_INET; This will limit the library to IPv4 but fixes the accept() problem.

    A real fix might follow sometime :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions