2.7.4 C Networking Example Bugs

I'm only testing on the simulator in Windows 10 64-bit.

  1. After the first run where an option is chosen for permission - we no longer get permissions dialog and nothing seems to happen when we call 'http->requestAccess' see here;
  2. To workaround this, you can delete the generated Permissions file in %USERPROFILE%/Documents/PlaydateSDK/Disk/Data/networking_in_C so the request happens again
  3. With this, Provided the python server is running, you get the PONG response (can see in the logs for the simulator) but we freeze at this point (i.e. tcp->requestAccess access doesn't pop the dialog and well, does nothing as in the case where Permissions file isn't deleted)
  4. There is a missing 'state = kWaitingForTCPAccess;' in main.c for the kRequestingTCPAccess case
  5. Assigning the default state to kRequestingTCPAccess and updating the state appropriately as outlined above (and deleting the permissions file) we can see that the TCP PONG also works now.

The main issue seems to be the behaviour of requestAccess, and also the missing state assignment (#4).

Thanks, I just started looking at the API yesterday (some friends shipped games on both S1 and S2) and I'm pretty stoked to start making something :slight_smile: