This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// XXX: Currently only used for testing due to issue with name lookup | |
/// Class that populates a sockaddress_storage with information related to the hostname, service, family and socktype. | |
/// Specifically avoids 0.0.0.0 address for compliance with STIGs | |
/// in Centos7, getaddrinfo doesnt work correctly with hostnames specified within /etc/hosts | |
class AddressInfo { | |
public: | |
AddressInfo() = delete; | |
~AddressInfo() { | |
if (this->ressave != nullptr) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import {useState, useReducer} from 'react'; | |
// also add immer | |
const DEFAULT = 'DEFAULT'; | |
export const ADD_MARKER_FEATURE = 'ADD_MARKER_FEATURE'; | |
export const CREATE_FEATURES_LAYER = 'CREATE_FEATURES_LAYER'; | |
export function useMutation(initialValue) { | |
const [val, updateValue] = useState(initialValue); | |
return [ |