|
|
@ -17,7 +17,7 @@
|
|
|
|
* @param module
|
|
|
|
* @param module
|
|
|
|
**/
|
|
|
|
**/
|
|
|
|
static inline void
|
|
|
|
static inline void
|
|
|
|
module_initialize_as_server(struct module *module)
|
|
|
|
module_listen(struct module *module)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
// Allocate a new socket
|
|
|
|
// Allocate a new socket
|
|
|
|
int socket_descriptor = socket(AF_INET, SOCK_STREAM, 0);
|
|
|
|
int socket_descriptor = socket(AF_INET, SOCK_STREAM, 0);
|
|
|
@ -162,7 +162,7 @@ module_new(char *name, char *path, i32 argument_count, u32 stack_size, u32 max_m
|
|
|
|
module_database_add(module);
|
|
|
|
module_database_add(module);
|
|
|
|
|
|
|
|
|
|
|
|
// Start listening for requests
|
|
|
|
// Start listening for requests
|
|
|
|
module_initialize_as_server(module);
|
|
|
|
module_listen(module);
|
|
|
|
|
|
|
|
|
|
|
|
return module;
|
|
|
|
return module;
|
|
|
|
|
|
|
|
|
|
|
|