return ret;
}
-/* GSocket_Select:
- * Polls the socket to determine its status. This function will
- * check for the events specified in the 'flags' parameter, and
- * it will return a mask indicating which operations can be
- * performed. This function won't block, regardless of the
- * mode (blocking | nonblocking) of the socket.
- */
-GSocketEventFlags GSocket::Select(GSocketEventFlags flags)
-{
- return flags & m_detected;
-}
-
/* Attributes */
/* GSocket_SetNonBlocking:
se = getservbyname(port, protocol);
if (!se)
{
- if (isdigit(port[0]))
+ if (isdigit((unsigned char) port[0]))
{
int port_int;