SO_CONNECT_TIME on linux?

getsockopt with SO_CONNECT_TIME returns the time a socket been connected, but on linux SO_CONNECT_TIME is not recognized.

What options do I have here?
Yeah, that's some modern Winsock thing.
https://docs.microsoft.com/en-us/windows/win32/api/mswsock/nf-mswsock-acceptex

What are you trying to do?

AcceptEx just calls accept(), then read() when a client connects. If you want to write portable code, stick to BSD sockets.
Last edited on
Just wanted to see if there was an alternative for SO_CONNECT_TIME on linux, a simple function call to get connection time :)
What do you mean by connection time?

The server sits around waiting for connections to come it. Connection times are a client concern.
Last edited on
Topic archived. No new replies allowed.