This function prepares a file descriptor set for use in a subsequent select() call. The file descriptor set is initialized with the nano-X client/server socket descriptor and all registered external file descriptors. The parameter maxfd is set to the highest of the file descriptors in the set.