I am having a problem when a task dies that has connected to my server.
I am storing information about the connected tasks within an internal table.
When a task sends a PULSE_CODE_DISCONNECT, I need to clean up my table.
I tried to use ConnectClientInfo to get the PID of this task by the received SCOID, but ConnectClientInfo returns always -1 (errno EFAULT).
struct _client_info client_info; if(ConnectClientInfo(new_msg_in->pulse.scoid, &client_info, 0) == -1)
Why doesn’t ConnectClientInfo work? Is there something wrong with the client_info-Buffer?
Or other way round: Could I store the SCOID besides the PID in my table, so I could search for the SCOID when the connected Client dies?
Is the SCOID unique?