One argument against using socket for the parameter is that socket is a name declared by a system header file (and, if you're very unlucky, it might even be a macro).  The abbreviation sock is common in such contexts.