Clone libpcap repository and Create build directory.
$ cd path/to/libpcap/source
$ mkdir build
$ cd buildThen, Write Android.cmake, CMake toolchain file for Android.
Clone libpcap repository and Create build directory.
$ cd path/to/libpcap/source
$ mkdir build
$ cd buildThen, Write Android.cmake, CMake toolchain file for Android.
| using System.Runtime.CompilerServices; | |
| using System.Runtime.InteropServices; | |
| using System.Text; | |
| unsafe | |
| { | |
| var ns = new NativeString("Hello from C++!"); | |
| WriteLine(&ns); | |
| } |
document.querySelectorAll("div.timeline-item > div:nth-child(1) > div:nth-child(2) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > label:nth-child(1)").forEach(e => e.click());
document.querySelector("#btn-submit").click();
setTimeout(function(){document.querySelector(".btn-primary").click()}, 200);To copy paste to your browser, type below:
| cmake_minimum_required(VERSION 3.20) | |
| project(project LANGUAGES CXX) | |
| set(CMAKE_VERBOSE_MAKEFILE TRUE) | |
| set(CMAKE_CXX_STANDARD 23) | |
| set(CMAKE_CXX_EXTENSIONS ON) | |
| set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_LIST_DIR}/bin/) | |
| set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_CURRENT_LIST_DIR}/bin/) | |
| set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_CURRENT_LIST_DIR}/bin/) |
| #ifndef LOG_INL | |
| #define LOG_INL | |
| /* === USAGE ================================= | |
| * | |
| * LOG(FAIL) << "use like std::cout"; | |
| * LOG(NOTE) << "can change log-level"; | |
| * LOG("level") << "can use custom log-level"; | |
| * | |
| * =========================================== |