void webMain() [[client]] { serverTest(1); serverTest2(); serverTest3(3, 4); client::document.addEventListener("DOMContentLoaded",client::Callback(clientTest)); }
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); }
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); }
/*---------------------------------------------------------------------------*/ int main (void) { /* first initialize winsock API */ if (WSAStartup(0x0101, &wsa_data)) { return (-1); } //clientTest(); //simpleServerTest(); serverTest(); //secureServerTest(); return (0); }
void clientTest() [[client]] { serverTest(4); }