[Vortex] Query regarding the usage of getsockname API in vortex

subrahmanya sum.sagar at gmail.com
Thu Feb 23 12:31:32 CET 2012


Hi

This is regarding the usage of "getsockname" API in vortex.

Vortex uses "getsockname" API to get name of the local socket and checks if
the operation is successful by looking at the return code. I looked at the
man page/help doc of Linux, AIX and Windows. This API returns 0 upon
success and -1 in case of failure. But vortex checks if error code is less
than "-1" but it does not check if error code is equal to "-1". Is this
intentional or is it a bug?

Shouldn't the condition be to check if the return code is equal to "-1" or
probably less than or equal to "-1"?

Thanks
Subrahmanya
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.aspl.es/pipermail/vortex/attachments/20120223/a0c7175d/attachment.html>


More information about the Vortex mailing list