Пример #1
0
void webMain() [[client]]
{
	serverTest(1);
	serverTest2();
	serverTest3(3, 4);
	client::document.addEventListener("DOMContentLoaded",client::Callback(clientTest));
}
Пример #2
0
void clientTest() [[client]]
{
	int ret=serverTest();
	client::Document* d=client::Client::get_document();
	client::String* s=new client::String(ret);
	client::Element* e=d->createElement("p");
	e->set_textContent(s);
	d->get_firstChild().appendChild(*e);
}
Пример #3
0
void clientTest() [[client]]
{
	std::string ret=serverTest();
	client::Document* d=&client::document;
	client::String* s=new client::String(ret.c_str());
	client::Element* e=d->createElement("p");
	e->set_textContent(s);
	d->get_body()->appendChild(e);
}
Пример #4
0
/*---------------------------------------------------------------------------*/
int main (void)
{
	/* first initialize winsock API */
	if (WSAStartup(0x0101, &wsa_data))
	{
		return (-1);
	}

	//clientTest();
	//simpleServerTest();
	serverTest();
	//secureServerTest();

	return (0);
}
Пример #5
0
void clientTest() [[client]]
{
	serverTest(4);
}