Skip to content

Instantly share code, notes, and snippets.

View aprehot's full-sized avatar
:octocat:
feeling gucci

Aid7 aprehot

:octocat:
feeling gucci
View GitHub Profile
/// 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) {
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 [