socket_error [function]

socket_error( bool as_text = false )

returns the last error received from working with the sockets, possibly as text