MySQL 8.0.39
Source Code Documentation
net_ns.h File Reference
#include "my_config.h"
#include <string>

Go to the source code of this file.

Functions

bool set_network_namespace (const std::string &network_namespace)
 Set active network namespace specified by a name. More...
 
bool restore_original_network_namespace ()
 Restore original network namespace used to be active before a new network namespace has been set. More...
 
void release_network_namespace_resources ()
 Close file descriptors for every opened network namespace file and release a memory used by internal cache of opened network namespaces. More...
 

Function Documentation

◆ release_network_namespace_resources()

void release_network_namespace_resources ( )

Close file descriptors for every opened network namespace file and release a memory used by internal cache of opened network namespaces.

◆ restore_original_network_namespace()

bool restore_original_network_namespace ( )

Restore original network namespace used to be active before a new network namespace has been set.

Returns
false on success, true on failure

◆ set_network_namespace()

bool set_network_namespace ( const std::string &  network_namespace)

Set active network namespace specified by a name.

Parameters
network_namespacethe name of a network namespace to be set active
Returns
false on success, true on error
Note
all opened descriptors used during function run are closed on error