Skip to content

NET_ResolveHostname and whitespace trimming #148

@pachuco

Description

@pachuco

I've been scratching my head why my code no werk after gutting out winsock crud and replacing with SDL3_net.
I eventually figure to print out SDL_GetError: The requested name is valid but no data of the requested type was found.

I'm puzzled, but then I print out the address and port.
It turns out the address had a newline character at the end, from my very lazy ini parser, and that winsock was lenient with this whitespace.

You should either warn about this, or remove whitespace, as passed to NET_ResolveHostname.

Derp.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions