Beispiel #1
0
int main(int argc, char** argv){
	winstart(); //on linux, winstart() and winend() will be empty functions, and will be optimized out.

	Server server(debugEchoCallback); //create a server with our message handler.
	server.bind(DEBUGSERVERPORT);		//bind to the port
	_DB std::cout << "About to start asynch listen.\n";
	server.synchListen();  //start blocking listener.
	_DB std::cout << "Asych Listener has come out of this threads scope.\n";



	server.closeAll();//close all the connections.
	winend();//on linux, winstart() and winend() will be empty functions, and will be optimized out.
}
Beispiel #2
0
int main(int argc, char **argv)
{
    winstart();

    /* get dir of executable */
    winpath(dir);

    /* get story file */
    if (!winargs(argc, argv, buf))
        winbrowsefile(buf);

    if (!strlen(buf))
        return TRUE;

    /* run story file */
    return rungame(dir, buf);
}