Skip to content

Instantly share code, notes, and snippets.

View ruurdadema's full-sized avatar

Ruurd Adema ruurdadema

View GitHub Profile
@ruurdadema
ruurdadema / exclusive_access_guard.hpp
Created November 24, 2025 21:58
ExclusiveAccessGuard
/*
* Owllab License Agreement
*
* This software is provided by Owllab and may not be used, copied, modified,
* merged, published, distributed, sublicensed, or sold without a valid and
* explicit agreement with Owllab.
*
* Copyright (c) 2024 Owllab. All rights reserved.
*/
@ruurdadema
ruurdadema / linked_node.hpp
Created November 24, 2025 21:19
LinkedNode
/*
* Owllab License Agreement
*
* This software is provided by Owllab and may not be used, copied, modified,
* merged, published, distributed, sublicensed, or sold without a valid and
* explicit agreement with Owllab.
*
* Copyright (c) 2024 Owllab. All rights reserved.
*/
@ruurdadema
ruurdadema / object_counter.hpp
Created November 24, 2025 21:04
Rcu (experimental)
/*
* Owllab License Agreement
*
* This software is provided by Owllab and may not be used, copied, modified,
* merged, published, distributed, sublicensed, or sold without a valid and
* explicit agreement with Owllab.
*
* Copyright (c) 2025 Owllab. All rights reserved.
*/
@ruurdadema
ruurdadema / NetworkConnection.swift
Last active November 20, 2025 06:59
Swift networking with Apple's NWListener and NWConnection
/*
This is free and unencumbered software released into the public domain.
Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any
means.
In jurisdictions that recognize copyright laws, the author or authors
of this software dedicate any and all copyright interest in the
@ruurdadema
ruurdadema / BonjourBrowser.swift
Last active October 3, 2025 15:09
Easy BonjourBrowser around NetService
//
// BonjourBrowser.swift
// Listen
//
// Created by Ruurd Adema on 13/12/2019.
// Copyright © 2019 Ruurd Adema. All rights reserved.
//
import Foundation
struct NetworkAddress