ClientHandler/ClientHandler.cpp
void ClientHandler::sendMessage(HttpMessage msg) {
	HttpMessage message;
	Sender sndr(msg.findValue("fromAddr"));
	sndr.start();
	message = sndr.makeMessage(0, msg.bodyString(), msg.findValue("toAddr"));
	sndr.postMessage(message);
	sndr.postMessage(sndr.makeMessage(0, "closeServer", msg.findValue("toAddr")));
	sndr.postMessage(sndr.makeMessage(0, "quit", msg.findValue("toAddr")));
	sndr.wait();
}
// ------------------< prepare and send message to recepient >-------------
< prepare and send message to recepient >
< prepare and send message to recepient >
void ClientHandler::sendMessage(HttpMessage msg) {
	HttpMessage message;
	Sender sndr(msg.findValue("fromAddr"));
	sndr.start();
	message = sndr.makeMessage(0, msg.bodyString(), msg.findValue("toAddr"));
	sndr.postMessage(message);
	sndr.postMessage(sndr.makeMessage(0, "closeServer", msg.findValue("toAddr")));
	sndr.postMessage(sndr.makeMessage(0, "quit", msg.findValue("toAddr")));
	sndr.wait();
}
void ClientHandler :: sendMessage ( HttpMessage msg ) { HttpMessage message ; Sender sndr ( msg . findValue ( " " ) ) ; sndr . start ( ) ; message = sndr . makeMessage ( 0 , msg . bodyString ( ) , msg . findValue ( " " ) ) ; sndr . postMessage ( message ) ; sndr . postMessage ( sndr . makeMessage ( 0 , " " , msg . findValue ( " " ) ) ) ; sndr . postMessage ( sndr . makeMessage ( 0 , " " , msg . findValue ( " " ) ) ) ; sndr . wait ( ) ; }
< prepare and send message to recepient >
< prepare and send message to recepient >