Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

C 

Debugging a issue with socket programming

Im trying to code a client/server socket setup , everything compiled fine, but i try to run the server and i get "setsockopt : Protocol not found" heres a link to my code :https://pastebin.com/6rL4vnBs
hi,

i don't thinks you put a right argument when you call function setsockopt.
can you please check in man 3 setsockopt
(Jun 2, 2019 09:41 PM)root_ff Wrote:  hi,

i don't thinks you put a right argument when you call function setsockopt.
can you please check in man 3 setsockopt

When you say man 3 is this what you are referring to :
https://linux.die.net/man/3/setsockopt
yes or open your terminal and just put man 3 setsockopt
(Jun 2, 2019 09:51 PM)root_ff Wrote:  yes or open your terminal and just put man 3 setsockopt

Thank you sir, will let you know how this goes
you should have root privilege

please check this example ----> pastebin . com/ YSiMThRn
(Jun 2, 2019 09:59 PM)root_ff Wrote:  you should have root privilege

please check this example  ----> pastebin . com/ YSiMThRn

Okay, thank you


(Jun 2, 2019 09:59 PM)root_ff Wrote:  you should have root privilege

please check this example  ----> pastebin . com/ YSiMThRn

This worked, i tweaked it a little bit based on the paste bin link you gave me, but overall the code looks different than whats in the pastebin, thanks man


Possibly Related Threads...
Thread / Author Replies Views Last Post
[C] by LilDeepWebJan 29, 2022 10:06 AM 3 228 Jan 29, 2022 10:06 AM
Last Post: yuumi
[Python] by SigmaApr 26, 2021 06:48 PM 0 87 Apr 26, 2021 06:48 PM
Last Post: Sigma
[C] by mafiaboySep 6, 2019 11:37 AM 13 441 Sep 6, 2019 11:37 AM
Last Post: zp_city