Hash :
5455754d
Author :
Thomas de Grivel
Date :
2024-08-11T17:18:22
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 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103
[fd: (S32) -1]
defmodule Socket do defstruct [fd: (S32) -1]; end
defmodule Socket do
dlopen("lib/kc3/0.1/http.so")
def connect = cfn Socket.Buf "socket_buf_init_connect" (Result, Str, Str)
end
22
server = Socket.listen("192.168.1.50
2
server = Socket.listen("192.168.2.50", "58000")
server_client = Socket.Buf.accept(server)
req = HTTP.Request.buf_parse(server_client.buf_rw.r)
%HTTP.Response{}
Struct.offset(%HTTP.Response{}, :message)
Sym.type_size(Str)
Struct.offset(%HTTP.Response{}, :message)
res = %HTTP.Response{}
res.message
Sym.type_size(Str)
Sym.type_size(HTTP.Response)
Struct.offset(%HTTP.Response{}, :message)
Sym.type_size(Str)
Struct.offset(%HTTP.Response{}, :code)
Struct.offset(%HTTP.Response{}, :message)
Struct.offset(%HTTP.Response{}, :response)
Struct.offset(%HTTP.Response{}, :protocol)
Struct.offset(%HTTP.Response{}, :code)
Struct.offset(%HTTP.Response{}, :message)
Struct.offset(%HTTP.Response{}, :headers)
Struct.offset(%HTTP.Response{}, :body)
Struct.offset(%HTTP.Response{}, :message)
Struct.offset(%HTTP.Response{}, :protocol)
Struct.offset(%HTTP.Response{}, :code)
Struct.offset(%HTTP.Response{}, :message)
Struct.offset(%HTTP.Response{}, :headers)
Struct.offset(%HTTP.Response{}, :body)
Struct.offset(%HTTP.Request{}, :method)
Struct.offset(%HTTP.Request{}, :url)
Struct.offset(%HTTP.Request{}, :protocol)
Struct.offset(%HTTP.Request{}, :headers)
Struct.offset(%HTTP.Response{}, :message)
Struct.offset(%HTTP.Request{}, :method)
Struct.offset(%HTTP.Request{}, :url)
Struct.offset(%HTTP.Request{}, :protocol)
Struct.offset(%HTTP.Request{}, :headers)
Struct.offset(%HTTP.Response{}, :protocol)
Struct.offset(%HTTP.Response{}, :code)
Struct.offset(%HTTP.Response{}, :message)
Struct.offset(%HTTP.Response{}, :headers)
Struct.offset(%HTTP.Response{}, :body)
"a#{a}"
quote "a#{a}"
"a#{a}"
"a#{:a}"
quote "a#{a}"
quote "a#{:a}"
quote "a"
quote "a #{:a}"
"a #{:a}"
"""a #{:a}"""
"""a #{":a"}"""
quote """a #{":a"}"""
"""a #{":a"}"""
quote "a#{a}"
quote "a#{:a}"
quote """a#{:a}"""
quote """a#{"a"}"""
quote """a#{:a}"""
quote """a #{:a}"""
quote "a #{:a}"
quote "a"
%Time{}
Facts.env_facts()
(Facts) Facts.env_facts()
Facts.with_tags(Facts.env_facts(), ?, ?, ?)
cursor = Facts.with_tags(Facts.env_facts(), ?, ?, ?)
tuple = {?, ?, ?}
cursor = Facts.with_tuple(Facts.env_facts(), tuple)
a = ?
b = ?
c = ?
s = ?
p = ?
o = ?
cursor = Facts.with_tags(Facts.env_facts(), s, p, o)
ptr = Facts.Cursor.next(cursor)
s = ?
p = ?
o = ?
cursor = Facts.with_tags(Facts.env_facts(), s, p, o)
ptr = Facts.Cursor.next(cursor)
Fact.from_ptr(ptr)
tuple = {?, ?, ?}
cursor = Facts.with_tuple(Facts.env_facts(), tuple)
ptr = Facts.Cursor.next(cursor)
tuple = {?, ?, ?}
cursor = Facts.with_tuple(Facts.env_facts(), tuple)
while (ptr = Facts.Cursor.next(cursor)) do
f = Fact.from_ptr(ptr)
puts((Tag) f.subject)
puts((Tag) f.predicate)
puts((Tag) f.object)
end