This inlined function is used to check if a fd is active for receive or send. It will ease threads support integration.