ObjFW  Check-in [b4cd87cd81]

Overview
Comment:Use closesocket() instead of close()

Previously, socket_helpers.h would just define close() to whatever is
needed to close a socket. However, this makes it possible to
accidentally call a socket-specific close on something that is not a
socket. Having to explicitly call closesocket() (and defining it to
close() on platforms where it's the same) prevents this.

Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: b4cd87cd81f4a2f332baa522959bf0e4e80e24794584a0a89438163e2eb0def2
User & Date: js on 2017-05-21 23:57:34
Other Links: manifest | tags
Context
2017-05-22
22:00
Omit check for select() / poll() on certain OSes check-in: f81f162b33 user: js tags: trunk
2017-05-21
23:57
Use closesocket() instead of close() check-in: b4cd87cd81 user: js tags: trunk
21:33
OFThreadPool: Fix missing autorelease pool check-in: 9558a93c7e user: js tags: trunk
Changes