#💽Programming Chat v2
1 messages · Page 104 of 1
code something idk
idk im just thinking about them rn
think about code…or smth…
well
there is a problem im facing rn
i just dont know how to execute it rn so im watching youtube
(essentially how would i defer the execution of a lambda until the thing that made it is ready to run it)
AHA
AN EXECUTOR SERVICE!
Erm on your computer with ./your-thing.exe
ExecutorService
ExecutorServiceFactory
ExecutorServiceFactoryBuilder
ExecutorServiceFactoryBuilderSingleton
ExecutorServiceFactoryBuilderSingletonStrategy
OK.
ACK
show breadmod to a kff or forge or neoforge or fabric dev to instantly kill them
(our recipes now use BigDecimals and ULongs)
what is kff
kotlin for forge
Kotlin Fat Fuck?
true
ben you dont even know what a kotlin is
(For the better)
I had to argue for not using TS for Guardsman v3 against him and Sky
But they are so stuck in their ways
But if knowing Kotlin would turn them into you…they can use TS
Who is out there actually using the JVM for new projects in 2025 smh there’s no future in it
Who is out there actually using Rust for new projects in 2025 smh there's no future in it
There’s so many opportunities in rust smh
fat
what the fuck aera
A new NIST standard reference material will help strengthen quality control for biological drugs.
︀︀
︀︀Check out our latest news story to learn more: www.nist.gov/news-events/news/2025/07/new-nist-reference-material-strengthen-quality-control-biological-drugs
this you??
cursed
what is wrong with you!!!!!!
leave the japanese womans fursona alone.
go play with bens
I harass him enough
n oyo udont
?av @spare quartz
me
LOL
kys
You after eating 500 lemons
hai hai hai
うるさいも!!
うまるちゃんと宴開催したい
mix:Sumijun https://twitter.com/sumijun_halozy
illust:はちぷよ https://twitter.com/hachipuyo
vocal:ななひら https://twitter.com/nanahira
it actually works!!
Holy null checks
it used to look like this but i didnt want to repeat the same logic
Kotlin should have guard statements
func greet(person: [String: String]) {
guard let name = person["name"] else {
return
}
print("Hello \(name)!")
guard let location = person["location"] else {
print("I hope the weather is nice near you.")
return
}
print("I hope the weather is nice in \(location).")
}
it does
val name = person["name"] ?: return
val location = person["location"] ?: run { println("alpha"); return }
println("beta $location")
its called an elvis operator
rich coming from the person who didnt even know the operator existed
uhm yeah cause I’m not a copelin user
cause you're lame and think go is good
Kotlin/Native
does it matter
one of the big draws is Java compat
you said "Kotlin" which just means the language itself
the language is compilable to 4 environments
i could've said WASM or JS in place of it
(and if you count the work of Graal, that too)
still…go isn’t kotlin…therefor better
and I probably won’t
Literally vulkan
It’s beautiful
weirdo
what is a cap
reread the conversation up here
oh capabilities
an innocent rust user being overtaken by the mind plague that is the jvm
GOOD!
you two fighting over programming languages is kinda like those videos of the two dogs behind a fence barking at eachother but the moment the gate/fence opens they stop barking
ほんとに
not translating that
except im a rottweiler and atp is just a chihuahua
you kinda give off the vibes of a bulldog but i would say that fits
no if he were a bulldog he'd have autism
atp
this is qsp
we ALL have autism
Chill I don't
(that was a joke because the majority of people in this server are autistic)
Wht
im so sorry for your loss
you live in texas??? you cannot be talking 😭
time to check your github
your still in texas
Wait rlly
yes
its a scifi discord so its full of people with weird hyperfixations
hell i have autism and adhd so
proves my point further 😭
no its just you
at least i dont risk myself getting FUCKING DIABETES with how much soda you consume
Is that bad
(and at least im not a programmer)
very
wow die
Huh
Oh ok I dont actually know what being autistic means

RAW socket
write the ethernet frame which uses the local interfaces MAC address
then write an IP frame over that with your newly allocated address
well unless you had another way to tell the OS to make a new interface for your ip
would have to be an 802.11ac or x frame
but same deal
Actually I may be able to just use a raw socket for IP and not have to write a L2 frame
Something like socket(AF_INET,RAW_SOCKET,...)
Cause it seems like it’s harder to write to a WiFi NIC than it is an Ethernet NIC
Good enough
huh ok in my quest I have discovered that 802.11 NICs tend to present frames to the OS as Ethernet frames and not as 802.11 frames
unless you're in monitor mode in which case you'll get the 802.11 frame along with management AND data frames
AUGH KOTLIN AND COMPOSE INVADING MY BRAIN ROT
@spare quartz 
i read yes
bleh
the tape on the corner of my vision is so weird to look at
it makes it look like the polycarbonate is broken when it can't be 😭
Did you see this too
yes
well idk what i would've responded with
and when i read them my glasses were broken
¯_(ツ)_/¯
(and had melted chocolate on one lens)
please do not eat your glasses
okay well
i think i was gonna eat chocolate
but then i passed out
and woke up with them like tha
whos the nerd now
okay but im literally blind
Normal programming chat convo between me (the SOUL) and Atp (Kris)
Squid Game Atp
"256L of soda"
TRYE
ok so
fun part
wellll
maybe
yeah
raw socket on rust needs a library
maybe I could see how the library does it tho
depends on OS (even permission wise)
i believe you usually need some form of system access (either thru root or Administrator on windows)
well even for the program structs
cause it doesnt have raw sockets directly exposed
yeah what i mean is thats probably why the rust stdlib doesn't have support for them
m ic
java.lang.IllegalStateException: Entity class org.bread_experts_group.breadmod.registry.entity.actual.BigItemContainer has not defined synched data value 8
but i haveeeeeeee
oh you have to be kidding me
i love sloppy coding
zig has std.posix.socket
is that a raw socket or UNIX socket
seems like it's kinda like C
oh
probably just a general form then
might be a direct connection to the C's socket
多くの人には届かなくても、いつも聞いてくれる人がOSTER projectのファンでよかったって思えるようなものを作り続けよう
mm what kind of packet could I even send
wdym
ig an icmp ping could work
well I wanna do smth to get a response
UDP is the easiest by far in terms of construction
its just size/checksum/data
TCP is (somewhat) simple to write a state machine for
and ICMP is also really easy to write (unless you want proper safety with enums where it becomes tedious, its a directory of opcodes)
ps: ensure your IP checksum is correct [unless you know your NIC can offload this]
remote computers (or even middleware) will completely ignore them if its wrong
This video by Dav Pilkey summarizes my thoughts
Quoting Dexerto (@Dexerto)
︀
YouTube is rolling out AI in the US to detect if users are actually under 18
︀︀
︀︀It ignores the stated age and applies restrictions to users it suspects are teens
#❗┃other message
this sounds goated
hopefully they're hiring
thats so much free data
true
rabid
@spare quartz I figured I might as well run dhcp over my raw stuff too
okay, just make sure you can support UDP broadcasting
(your initial DHCP line will be to query who the gateway is)
back
I can just set it to 0
my bluetooth connection is dead
cool
you are advised to fragment as little as possible
this means stay below your MTU though
if you exceed that the peer will hate you
:3
rrgh ok so flags bitfield raaagh
network order
big endian
ugh all of this has to be big cringean
big goodian
what is the size of the flags field again
3 bits
then you dont need to worry about endian
yeah
bit order will always be on the right for least significant
if its on the left for network ops you should kys and not deal with it
uhm
3 bit flag + 13 bit fragment offset (0)
010 + 0*13
well honestly
i could just
have it all 0
idc if the peer fragments my packets cause it can handle that
im pretty sure DF is aimed towards middleware
(like a router in between a line to a remote computer)
HOLY SHIT AAAA MENTIONED
Probably just gonna have my thing cry if it gets a fragmented IP packet
Unless I only get fragmented IP packets
your router will most likely not fragment anything
at least before you get into IP with a very large message
if the upper layer is smart it’ll send its packets with a max size of an ip payload so it doesn’t have to fragment
Me when I send a 500000 word message over UDP
too big for udp ❌
Am I cooked I read this guys name as skibidi
yeah
😭
ugh maybe I should like
use a crate for actual bitfields
rather than have to pray I'm comparing with the correct endianness
呪術廻戦を見るよう!
見よう*
nono i could piece that together from the dictionary info
on non-五段 stem; indicates suggestion or invitation
i just didn't know what it meant by stem during construction
did you just check if it was
yes
on any conventional (still extant) system it will always be little endian (x86 / ARM / RISC)
the only big endian systems that come to mind at the moment are PowerPC
(there is also mixed endian but such systems are nonexistant in the grand scheme of things)
what i would usually say to do is create an endian flipper based on the local architecture but im unsure how much rust says there
in ada you'd just check System, in java ByteOrder.nativeOrder...
there's a cfg macro you can use in rust
you're a kotlin user and fanboy
yes :3c
question mark
oh
so max ip payload is 65515
IP VJ compression
wont happen im not doing that :3
ok yapper
what line!
you realize ethernet isnt the only carrier of IP yes.
yeeeees
it also goes thru PPP and crap
which may say to use the compression.
so it depends on the LINE
oh tha tkind of line
Now with complete captions!
i wish to become like him
use wireshark to check_
wireshark ❤️
cellular phones will not give you cancer. only hepatitis
yes
there is no logical way to attribute endianness to the payload since its any data
:3
this code sucks ass. session terminated
session classified
hmm I should have all of those even despite the default values
cause im gonna have to read them
mm I wonder if I can use this to read ip packets now
Used to have this one guy in my IRL friend group who everyone kinda agreed was kinda evil. One day he packed up and left because he got scouted by a "defense company." From then on we all called him Robotnik
tr y it
hmmmm
?
what is an .. " " " ipp rot o _ ra w "
okay but how does that work
cause most OS binds are tied to a specific protocol over IP
seems like with C you can just
bind a raw ip socket to an ip
odd
well ok maybe protocol = None will do the trick
telnet
I can ping myself ig
or yeah telnet
ayy icmp packet
I do not like this very much
@spare quartz this is a lot better
huh? sorry im back
was this not your last?
my last?
was that not how you were reading before
udp packet :3
issue?
type is 1
protocol*
not 17
oh I see
destination unreachable?
cause type 3 code 3
wait but then after that
there suh
oh there's an icmp destination port unreachable
and then the udp packet after
61238 >> 2299, # 13 [no data]
you might have a partial read
mmmaybe idk
idk why there's an icmp unreachable message though
should be reachable
mmmmmmmmm mwait
unless it's because my socket
isn't marked as udp
aha
mmm putting UDP as the protocol results in no read though
wait
yeah no read
weird
idk somehow it must not be binding right
huh ok @spare quartz
if I do Type::RAW with Protocol::UDP I get nothing
but if I do Type::RAW with no protocol I see the ICMP and weird UDP packet
but if I do Type::DGRAM with Protocol::UDP I get just the UDP data (as I'd expect)
im confused
me too
what are Type and Protocol
so in the libc function socket
it's a 1:1
domain is IP (could be something like a local "unix" socket though); type is socket (TCP-like), datagram (UDP-like), or raw; protocol is UDP, TCP, ICMP, etc
raw and protocol seem antithetical
protocol could also be IPPROTO_RAW
well what does that do
okay so why aren't you using that
also libc/posix devs were really snorting lithium here
domain as an int is stupidly stupid
even for C
I have been (the equivalent here is specifying None for protocol since it's an Option) but then if I try to send the UDP packet I get the ICMP dest. port unreachable and the weird udp packet
well why not just
ignore the icmp packet
just keep reading past it
Is that fucking comic sans
Quoting U.S. Marines (@USMC)
︀
#Marines with the @31stMeu execute a live-fire range aboard a UH-Y1 Venom in Queensland, Australia.
︀︀
︀︀Marines took part in the live-fire range to sustain aerial marksmanship and expand mission capabilities.
︀︀
︀︀#USMC #SemperFi #Aviation
does your read function signal the amount of actually read bytes?
I believe so yes
print that in tandem with the data (or slice, preferably)
if it ends after udp length its partial read
it'd be really strange if the read was not partial, i wouldn't have any idea on what would cause that
that's super weird
huh
for the icmp packet
why does the ip header say total length 36
it's only like 28
hmm ok
similar issue arises in C
ohhhhhhh @spare quartz the weird udp packet is a part of the icmp packet
FORGED IN THE MOLTEN PLASTIC OF SHANDONG, CHINA
:<
were YOU able to do something similar to this?
yes
when kade asked me to make him an sstp thing for his dumb printer
i had to implement the entirety of PPP/IP/TCP/UDP/ICMP
how
source: DreamWorks
Captain underpants The first epic movie
playlist for more videos
https://youtube.com/playlist?list=PLvDdQRuWzO4MLEBYOjZQB9lVyoyKPF67t&si=nt-yuK_U3ywDKUw_
because uhhh
idk exactly how you interfaced with PPP but the rest of the stack you had more direct control over
i mean SSTP is virtually identical to an Ethernet line, just over TLS
oh right SSTP
PPP is the analog to your Ethernet
right but you had SSTP
SSTP doesn't really add anything
which uses the TCP stack on the host machine
yes
you're not directly interfacing with a physical nic
which should be parallel to your RAW
whereas I'm trying to do some weird shit like that
I think it's different
if it was as simple as just making a raw udp socket I feel like I would have gotten that by now
well
maybe ill try and make a raw socket in kotlin
i just need to find whatever windows does for it instead
I am on macos that could be causing something idk
Winsock service providers for the IP protocol may support a socket type of SOCK_RAW. The Windows Sockets 2 provider for TCP/IP included on Windows supports this SOCK_RAW socket type.
There are two basic types of such raw sockets:
The first type uses a known protocol type written in the IP header that is recognized by a Winsock service provider. An example of the first type of socket is a socket for the ICMP protocol (IP protocol type = 1) or the ICMPv6 protocol (IP procotol type = 58).
The second type allows any protocol type to be specified. An example of the second type would be an experimental protocol that is not directly supported by the Winsock service provider such as the Stream Control Transmission Protocol (SCTP).
but my thought is like
what you did was
essentially
sstp.send_data(ppp.encapsulate(ip.encapsulate(...)))
basically
and sstp under the hood is interacting with your os's network stack
whereas I'm trying to interact with the OS network stack directly
well no
SSTP is just another encapsulate like PPP over TLS which is over TCP
what im saying is
your socket RAW should be analogous to the PPP part of that encapsulate chain
so i do not know why it isn't
what the
okay win32..
I think it's more analogous to the IP encapsulated by PPP
because I'm not interacting with L2 with the raw socket
sorry i mean after encapsulation
but yes
okay
win32 just got a LOT more interesting for me
i might gotta write a whole BSL Socket
@timid quartz thisi s why i hate you
i was supposed to give YOU something to code
not myself indirectly

Ws2_32.dll
I may have to try this on Linux
what im reading is stuff about BPF (Berkley Packet Filter) and system integrity protection potentially still bocking stuff
I did see that yeah but
I did not wanna have to write something to put together a UDP packet yet but I might do that
hmm
SocketImpl..
or well, i need to figure out how to load the right socket for the os
checksums...annoying...
just let me send my data in peace
I dont wanna have to deal with integer overflow
RFC 1071 “internet checksum” computation.
ok cool I can take the easy way out for rn
hmmm
send failed: Os { code: 39, kind: Uncategorized, message: "Destination address required" }
but the destination address is ther
that's the ip packet im sending
@spare quartz did I fuck it up?
sorry watching something right now
it'd be a lot more helpful if you wrote a formatter for an ip struct
ok
but yes i see the two addresses.
- packet might be misaligned
- partial write
- something else? (i dont know how you're aquiring that error message)
UdpDatagram {
src_port: 0,
dst_port: 22994,
length: 6,
checksum: 0,
data: [
104,
101,
108,
108,
111,
0,
],
}
Ipv4Packet {
version_ihl: 69,
dscp_ecn: 0,
total_length: 34,
identification: 0,
flags_frag_offset: 0,
ttl: 128,
protocol: 17,
checksum: 0,
src_addr: 16777343,
dst_addr: 16777343,
payload: [
0,
0,
89,
210,
0,
6,
98,
85,
104,
101,
108,
108,
111,
0,
],
}
[69, 0, 0, 34, 0, 0, 0, 0, 128, 17, 55, 206, 1, 0, 0, 127, 1, 0, 0, 127, 0, 0, 89, 210, 0, 6, 98, 85, 104, 101, 108, 108, 111, 0]
0099-31-4-359
are you sure the addresses are correct?
they appear to be in the wrong endian in that structure, are you flipping them before instantiation
im doing to_be_bytes but idk
trolled
ok so
UdpDatagram {
src_port: 0,
dst_port: 22994,
length: 6,
checksum: 0,
data: [
104,
101,
108,
108,
111,
0,
],
}
Ipv4Packet {
version_ihl: 69,
dscp_ecn: 0,
total_length: 34,
identification: 0,
flags_frag_offset: 0,
ttl: 128,
protocol: 17,
checksum: 0,
src_addr: 2130706433,
dst_addr: 2130706433,
payload: [
0,
0,
89,
210,
0,
6,
98,
85,
104,
101,
108,
108,
111,
0,
],
}
[69, 0, 0, 34, 0, 0, 0, 0, 128, 17, 60, 201, 127, 0, 0, 1, 127, 0, 0, 1, 0, 0, 89, 210, 0, 6, 98, 85, 104, 101, 108, 108, 111, 0]
still same thing but I flipped a thing
how are you getting the error code
wdym how
"Destination address required" ?
I wonder if it's still trying to handle the ip header
that would be the most probable explanation
good!
I just had to uh?
idk why that's necessary
maybe L2 needs it in some way
I wonder what happens if I
although uh
netcat doesnt receive them...maybe bsd restrictions striking again
not that im aware of
I should try doing this on linux and see what happens
linux might be less...restrictive
run it in macos single user mode 👍
gonna misalign you
thats assault
also weird
macos is definitely tampering with my stuff
I set the identification field to 0
but it's not 0 in that packet
yeah
macos is messing with my stuff confirmed
area inside brackets is the actual packet I'M trying to send and I know that because the length is 0x22 = 34
although my length might be swapped around it's not
stupid macos just lemme write stuff
(im not actually certain if turning off sip will do anything)
(i usually just do it cause its more restrictive than windows)
sip out here just trying to protect your system integrity
ur mad at poor sip for doing its job
yeah sip is on and I don’t rlly wanna turn it off
How is it going
WSAProtocol(serviceFlags1=[XP1_GUARANTEED_DELIVERY, XP1_GUARANTEED_ORDER, XP1_GRACEFUL_CLOSE, XP1_IFS_HANDLES])
oh
enumerating protocols rn
idk if graalvm has a very stable FFI
it likes to segfault in jvm.dll sometimes
trying eclipse temurin
It is POURING rn
its gotten super windy here
the air is still hot so not very pleasant but the clouds are dark
lightning struck a tree behind my house
thats interesting
strong winds here aren't super very common where i am (without rain)
but theres a wind farm a few miles away
(most power here is gas or solar)
what could be happening is dry downbursts
some nuclear too
where rain falls from clouds in a localized group but evaporates again before it reaches the ground
boooring
especially if it’s been super hot that could be happening
i want rain
well we do have a weather statement here about excessive heat
but thats every single day in the summer
aww cmon
how does the airport weather station have rain but not me
just move to the south a bit..
theres a massive cloud to the right side of my window
i am in the southeast
❌
not super but basically just outside the city
you’re not in the Deep South
south central texas.
Texas is more mid-south
Mid-south USA silly
should've clarified you were talking about the contiguous us
i dont know if you're referring to the state or planet dummy
yes the CONUS
Go to any state highlighted dark red especially ones closer to FL
you will get buckets of rain in the summer
nooo i dont wanna
…and the winter
“countries”
COUNTRIES
Uhh yes there is low lying swamp and marsh but that’s really more towards the coast
You can live more inland and not have much
sounds boring
rain…..
id rather live in ohio
who is getting rain and who is not rn
(unfortunately ohio has an even worse bug problem than here in the summer)
(and the temperatures are also not great, but it beats the possible 120 heat index)
lol southeast US has bad bugs in the summer too
(winters are also brutal but i prefer that)
especially gnats and mosquitoes I hate those things
sand gnats raaaah
@rustic vine pls relate
do not roll in the grass in ohio
you will experience 1 billion of those spiky grass things and 1 trillion gnats eating you
(except in the winter where you better be wearing bulky clothes)
We would throw these at each other all the time in elementary school
okay giant cloud appears to be blowing towards my direction
thats good
hopefully some rain
wtf are those
spiky grass things im referring to are green/white and they get everywhere on your socks if you have shorts
Yes ik
We have those too
THESE are another kind of spiky thing that the trees bestow on us
ik its the image perspective but those look giant
They are big yes
have you considered umm
You are talking about this (we have these too)
I say “big” they’re maybe about the size of a gumball
umm do that
dude we have those here in texas
i found some around the power meter ground tunnel a few years ago
best kind of isopod
im horrified of all other bugs though
except bees
bees and rollie pollies im okay with
mmm I don’t rlly like bees too much
respect for pollinating and for honey but pls stay in your own corner
says the one who didnt have spike balls
weirdo
?
this you
nice selfie?
more specifically Zulu time
what are these time zones
hawaii and alaska
Didn’t they just get hit with tsunamis
Yeah
Maybe not Alaska but
they're totally separate geographically so i wanted a confirmation
(plus theres nothing on the western side of alaska)
(except for radar)
damn
that weather looks so fine ...
RADAR MENTIONED
ugh sure
and theres also weather satellites in its area too if you count those
stupid weather nerd 🤮
来
weather is so cool….
parents and children
according to translator
but i know what one of those things says
親
here it means pro-
i should really use CTRL + < more
[WSAProtocol(serviceFlags1=[XP1_GUARANTEED_DELIVERY, XP1_GUARANTEED_ORDER, XP1_GRACEFUL_CLOSE, XP1_IFS_HANDLES], serviceFlags2=0, serviceFlags3=0, serviceFlags4=0, providerFlags=[PFL_MATCHES_PROTOCOL_ZERO])
WindowsGUID time...
00020026-0000-0000-0000-000000000000
does not seem right
oh, didnt use offset
1B193412-F74B-A74C-86E0-DFD7C32B5445
that seems more right
switched it to use little endian
1234191B-4BF7-4CA7-86E0-DFD7C32B5445
found this on a random website
so its the right decoding
as expected linux is more permissive however
some weirdness is afoot
[ 69, 0, 0, 31, -90, -28, 64, 0, 64, 17, -107, -25, 127, 0, 0, 1, 127, 0, 0, 1, -68, -124, 89, -46, 0, 11, -2, 30, 104, 105, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
this is what i've got
the weirdness starts happening around the total length
oh wait I was reading that a bit wrong
lemme write it out
version and IHL - 69 (0x45) ✅
DSCP and ECN - 0 ✅
total length - 31 ✅
identification - some weird shit (-90 then -28)
flags and fragment offset...64 then 0
ah I see it's the do not fragment flag ok
ttl - 64 ✅
protocol - 17 ✅
checksum yeah whatever
src and dest addresses being 127.0.0.1 ✅
and I guess the rest is the udp packet, probably negatibe cause my ports are weird
udp length is 11, check out yeah it's good
ok
[WSAProtocol(serviceFlags1=[XP1_GUARANTEED_DELIVERY, XP1_GUARANTEED_ORDER, XP1_GRACEFUL_CLOSE, XP1_IFS_HANDLES], serviceFlags2=0, serviceFlags3=0, serviceFlags4=0, providerFlags=[PFL_MATCHES_PROTOCOL_ZERO], guid={1234191B-4BF7-4CA7-86E0-DFD7C32B5445}, catalogID=1001, protocolChain=[0, 0, 0, 0, 0, 0, 0], version=2, addressFamily=Hyper-V [34], addressMax=36, addressMin=36, socketType=Stream-oriented [1], protocol=Internet Control Message Protocol (ICMP) [1], protocolMaxOffset=0, endian=BIG_ENDIAN, securityScheme=No security scheme [0], maximumMessageSize=0, providerReserved=0, name=Hyper-V RAW)]
my first protocol
conclusion: macos skill issue
cavern crusher
h w ahu rrt
weird but interesting game
every protocol my computer supports
can vouch for y'all to play it
even have unix sockets
and it supports unicode
@timid quartz crazy idea
if i can get a bluetooth socket in bsl...
minecraft over bluetooth?
minecraft over bayachao
ew what is that
plugs into a Mappable enum
(basically an enum with a representation other than its ordinal)
almost every protocol in the world uses it
but like what doe sit do
interface Mappable<E, T> where E : Enum<E>, E : Mappable<E, T> {
val id: T
val tag: String
fun stringForm(): String = "$tag [$id]"
fun other(): E? = null
companion object {
inline fun <reified E, T> EnumEntries<E>.id(
n: T
): MappedEnumeration<T, E> where E : Enum<E>, E : Mappable<E, T> = MappedEnumeration(
this.firstOrNull {
it.id == n
} ?: this.first().other() ?: throw IndexOutOfBoundsException("Missing ID for $n"),
n
)
}
}
enum class WSAAddressFamily(override val id: Int, override val tag: String) : Mappable<WSAAddressFamily, Int> {
AF_INET(2, "Internet Protocol, version 4"),
AF_IPX(6, "NWLink IPX/SPX"),
AF_APPLETALK(16, "AppleTalk"),
AF_NETBIOS(17, "NetBIOS"),
AF_INET6(23, "Internet Protocol, version 6"),
AF_IRDA(26, "Infrared Data Association (IrDA)"),
AF_BTH(32, "Bluetooth"),
AF_HYPERV(34, "Hyper-V"),
OTHER(-1, "Other");
override fun toString(): String = stringForm()
override fun other(): WSAAddressFamily = OTHER
}
WSAAddressFamily.entries.id(32) = AF_BTH
.stringForm = "Bluetooth [32]"
yes
as long as its comparison operator isn't crap
i haven't found a use outside strings/numerics for mappings but its possible
?
yeah you can do this without mappable in kotlin
EnumClassWhatever(val alpha: X) {
Something(X)
}
anyways im playing severance in roblox rn
Ok.
pointless.
ハンカチカバンの上に投げ捨てて置いてたら普通に忘れてドカ鬱😃
much better
now i can add the entries i need
there
@lone sky A BAYACHAO HAS HIT THE AYUTADA TOWERS
icl this is way easier than the roblox game
OH MY GOD
squid devil burger???????
the other character has implications i need to research
therefore i shall NOT comment on what squid could possibly mean
due to obvious japanese people are japanese people
hm
what to do now...
that i know raw socket wont rlly work on macos...
how to continue........ . .. . ..... .... . .. . ..
and NO disabling sip is not on the table
do it in recovery mode!!!!!
no
you're just not UNIX pilled enough
not disabling sip...
run csrutil disable.
you know you need to.
you know you want to.
why would I want to hack into your crustbook
☣️
RAAAAAAAAAAAAHHHHHHHHHHHHHHHH
stole a bit of code from https://www.binarytides.com/raw-udp-sockets-c-linux/ but now I understand how the pseudoheader works
でびコネ
列リ途中!
「キミは幸せでいてね。」
She couldn’t really be using キミ, right? That has to be their name ??
the conveniently-placed candy 💀
she’s normal.
ABnormal*
no, she doesn’t have AB blood
anywyas
back to Win32 development
MSAFD RfComm [Bluetooth] ({9FC48064-7298-43E4-B7BD-181F2089792A}, version 2, #1014)
Address Family / Socket Type: MappedEnumeration(enum=Bluetooth [32], raw=32) / MappedEnumeration(enum=Stream-oriented [1], raw=1)
Protocol: MappedEnumeration(enum=Bluetooth Radio Frequency Communications (RFCOMM) [3], raw=3) [+ 0]
Addresses: 30 .. 30 byte(s)
Message Size: 0 byte(s)
Endian / Security: BIG_ENDIAN / MappedEnumeration(enum=No security scheme [0], raw=0)
[0] [[0, 0]]
Service flags: [XP1_GUARANTEED_DELIVERY, XP1_GUARANTEED_ORDER, XP1_GRACEFUL_CLOSE, XP1_IFS_HANDLES]
[0, 0, 0]
Provider flags: [PFL_MATCHES_PROTOCOL_ZERO]
MSAFD Tcpip [RAW/IP] ({E70F1AA0-AB8B-11CF-8CA3-00805F48A192}, version 2, #1012)
Address Family / Socket Type: MappedEnumeration(enum=Internet Protocol, version 4 [2], raw=2) / MappedEnumeration(enum=Raw [3], raw=3)
Protocol: MappedEnumeration(enum=Other [-1], raw=0) [+ 255]
Addresses: 16 .. 16 byte(s)
Message Size: 32768 byte(s)
Endian / Security: BIG_ENDIAN / MappedEnumeration(enum=No security scheme [0], raw=0)
[0] [[0, 0]]
Service flags: [XP1_CONNECTIONLESS, XP1_MESSAGE_ORIENTED, XP1_SUPPORT_BROADCAST, XP1_SUPPORT_MULTIPOINT, XP1_IFS_HANDLES]
[0, 0, 0]
Provider flags: [PFL_HIDDEN, PFL_MATCHES_PROTOCOL_ZERO]
the two things i wanna look at