Extracted readSubdomainId from client and server main.c