enum messageType;error in hostname

the hostname is incorrect when calling David's sendMsg