Fixes rcc port parsing
Moves socket parsing to rcc_socket_parse()
Fixes compiler warnings
Moves socket connecting to rcc_socket_connect()