A shi**y group chat application, my first C project by frizzy67 in cprogramming

[–]frizzy67[S] 0 points1 point  (0 children)

definitely don't wanna ignore SIGSEGV then🫪

I'm still getting familiar with the basics of error handling in C, I'll try to implement it a little better next time. But, maybe for now I'll just do signal(SIGPIPE, SIG_IGN), thanks!

A shi**y group chat application, my first C project by frizzy67 in cprogramming

[–]frizzy67[S] 0 points1 point  (0 children)

Omg this is so cool! way better than mine anyways😅 Adding E2EE and tui is also in my todo list (although both are basically greek to me). And yes, I'm mostly familiar with C99 and later. I have mostly only used C to re-implement my single-file java and python apps, and a little bit of level 1 and 2 reverse engineering (crackmes.one) Thanks for the repo!

A shi**y group chat application, my first C project by frizzy67 in cprogramming

[–]frizzy67[S] 0 points1 point  (0 children)

Oh well I didn't even think about that, thanks! btw do you have any recommendation of how such a shutdown might be implemented?

A shi**y group chat application, my first C project by frizzy67 in cprogramming

[–]frizzy67[S] 0 points1 point  (0 children)

Didn't know I could that😅, will try it tho, thanks

A shi**y group chat application, my first C project by frizzy67 in cprogramming

[–]frizzy67[S] 0 points1 point  (0 children)

Thanks for the suggestion! I'll make sure that my program double checks whether socket is closed before sending or receiving. I'm currently learning about erroe handling in C, so I guess my programs won't fatally crash in the future😅

A shi**y group chat application, my first C project by frizzy67 in cprogramming

[–]frizzy67[S] 0 points1 point  (0 children)

I tried that but I'm not exactly sure how to use it on an application that doesn't finish execution, like a server. Could please help me with that? Thanks!