call respond and recieve from a server socket