The remote login incoming function would need two descriptors, one to read from and one to write to.
To give this function to a thread as its start function, we have to modifiy it so that it takes only one paramter - a pointer to a struct with the two expected descriptors.
Since the declared type of the parameter is void *, the incoming function would have to first cast the pointer back to a pointer to such a struct and finally have access to the two descriptors.