Given a socket state string, return the corresponding state number
sock_state_str2num:long(state:string)
state
The state name