create_msg(unsigned int u_type, char *msg, ...);

if u_type == 0
	write_msg to the file
else if u_type == 1
	send_msg to the server