Implements socket communication for rcc_init()