[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / r / s / t / u / v / vg / vm / vmg / vr / vrpg / vst / w / wg] [i / ic] [r9k / s4s / vip] [cm / hm / lgbt / y] [3 / aco / adv / an / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / pw / qst / sci / soc / sp / tg / toy / trv / tv / vp / vt / wsg / wsr / x / xs] [Settings] [Search] [Mobile] [Home]
Board
Settings Mobile Home
/g/ - Technology


Thread archived.
You cannot reply anymore.


[Advertise on 4chan]


File: 1711257072018517.jpg (38 KB, 680x668)
38 KB
38 KB JPG
previous: >>108170938

#define __NR_listen                50

https://man7.org/linux/man-pages/man2/listen.2.html

well... more sockets again, huh? but we'll be done after this week, and then we get to some really fun syscalls
the notes section in this manpage is pretty nice. listing out a series of steps like this is always helpful for understanding (at least to me)

relevant resources:
man man

man syscalls

https://man7.org/linux/man-pages/
https://linux.die.net/man/
https://elixir.bootlin.com/linux/
https://elixir.bootlin.com/musl/
https://elixir.bootlin.com/glibc/
>>
>listing out a series of steps like this is always helpful for understanding (at least to me)
I feel like this too. Syscall man pages are really hit or miss in that regard, either they are actually helpful with examples and good explanations, or they are just there, so there is a man page for it.
>>
File: file.png (76 KB, 323x308)
76 KB
76 KB PNG
Hey
>>
bump for effortpost
>>
bampu
>>
are you feeling better, OP?

>>108182163
a lot of manpages make an effort to include a valid C programme, which I don't really think is necessary.
Just include the 3 lines that are semantically necessary, and leave it to very obvious context how the rest of the programme would have to look like
>>
>>108180698
>listen
https://www.youtube.com/watch?v=XVTysXvNYDA
>>
>>108185201
yes, thankfully!! lots of work to catch up on since i was out, though
>>
>>108180698
the part I find the hardest to understand is the polling. Yeah, duh the socket is listening but what does that even mean?

All I know is a socket file descriptor gets written to (?) and at some point it's the kernel that tells the socket fd, hey bro there is someone connecting
>>
>>108180698
dumb kot
>>
>>108186036
many such cases !
>>
>>108180698
not interested in loonix or c but it's still a neat idea for threads



[Advertise on 4chan]

Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.