package posix-socket
- Overview
- No Docs
You can search for identifiers within the package.
in-package search v0.2.0
Bindings for posix sockets
Install
Dune Dependency
Authors
Maintainers
Sources
v2.0.2.tar.gz
md5=03d384b20e46da8598a69942ef92b53e
sha512=6f5fa0fd5f3f0b845c2c9cd46a53e518dc5187f1ea7450fc04bbdc4c7b6fbcc427253e60847cc14f5bff895622e18aea404fbd8e14d4b50f52a7c0e682621ac8
doc/src/posix-socket.stubs/posix_socket_stubs.ml.html
Source file posix_socket_stubs.ml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
open Ctypes module Def (F : Cstubs.FOREIGN) = struct open F open Posix_socket_types module Types = Posix_socket_types.Def (Posix_socket_generated_types) open Types let getnameinfo = foreign "getnameinfo" (ptr sockaddr_t @-> socklen_t @-> ptr char @-> socklen_t @-> ptr char @-> socklen_t @-> int @-> returning int) let getaddrinfo = foreign "getaddrinfo" (string @-> string @-> ptr Addrinfo.t @-> ptr (ptr Addrinfo.t) @-> returning int) let freeaddrinfo = foreign "freeaddrinfo" (ptr Addrinfo.t @-> returning void) let getservbyname = foreign "getservbyname" (ptr char @-> ptr void @-> returning (ptr Servent.t)) let strnlen = foreign "strnlen" (ptr char @-> size_t @-> returning size_t) let htonl = foreign "htonl" (uint32_t @-> returning uint32_t) let htons = foreign "htons" (uint16_t @-> returning uint16_t) let ntohs = foreign "ntohs" (uint16_t @-> returning uint16_t) let ntohl = foreign "ntohl" (uint32_t @-> returning uint32_t) end
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>