All: Reformat according to new standard
This commit is contained in:
committed by
Kacper Donat
parent
eafd18dac0
commit
25c3ba7338
@@ -66,18 +66,24 @@ public:
|
||||
Module()
|
||||
: Py::ExtensionModule<Module>("Web")
|
||||
{
|
||||
add_varargs_method("startServer",
|
||||
&Module::startServer,
|
||||
"startServer(address=127.0.0.1,port=0) -- Start a server.");
|
||||
add_varargs_method("waitForConnection",
|
||||
&Module::waitForConnection,
|
||||
"waitForConnection(address=127.0.0.1,port=0,timeout=0)\n"
|
||||
"Start a server, wait for connection and close server.\n"
|
||||
"Its use is disadvised in a the GUI version, since it will\n"
|
||||
"stop responding until the function returns.");
|
||||
add_varargs_method("registerServerFirewall",
|
||||
&Module::registerServerFirewall,
|
||||
"registerServerFirewall(callable(string)) -- Register a firewall.");
|
||||
add_varargs_method(
|
||||
"startServer",
|
||||
&Module::startServer,
|
||||
"startServer(address=127.0.0.1,port=0) -- Start a server."
|
||||
);
|
||||
add_varargs_method(
|
||||
"waitForConnection",
|
||||
&Module::waitForConnection,
|
||||
"waitForConnection(address=127.0.0.1,port=0,timeout=0)\n"
|
||||
"Start a server, wait for connection and close server.\n"
|
||||
"Its use is disadvised in a the GUI version, since it will\n"
|
||||
"stop responding until the function returns."
|
||||
);
|
||||
add_varargs_method(
|
||||
"registerServerFirewall",
|
||||
&Module::registerServerFirewall,
|
||||
"registerServerFirewall(callable(string)) -- Register a firewall."
|
||||
);
|
||||
initialize("This module is the Web module."); // register with Python
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user