#ifndef __CHAT__
#define __CHAT__

#module \
Chat

#define URL	(CONFIG_SERVER_URL + "/chat.php")

#defcfunc local \
New \
		int	p_id
	id.insNum = p_id

	insNum++

	Return insNum - 1

#deffunc local \
Send \
		int	p_insId,\
		str	p_message
	HTTPLoad@ URL + StrF ("?id=%d&text=%s", id.p_insId, p_message)
	HTTPInfo _, HTTPINFO_MODE

	Return

#global

#endif	; not __CHAT__

