Kode / Kinc

Modern low level game library and hardware abstraction.
http://kinc.tech
zlib License
517 stars 119 forks source link

Fix socket send flag #801

Closed mundusnine closed 1 year ago

mundusnine commented 1 year ago

On linux we can use the MSG_WAITALL flag because linux doesn't care and just sends it disregarding our flag.

On windows this gives a WSAEOPNOTSUPP error and doesn't send. This basically tells us the flag isn't supported for send, look at the possible values for the flag parameter. It's still not supported on linux, it just doesn't error out.