Skip to main content

Timeline for How can I guess server socket type

Current License: CC BY-SA 4.0

6 events
when toggle format what by license comment
Nov 15, 2024 at 7:39 answer added Al_ timeline score: 0
Jan 19, 2022 at 9:46 comment added Philip Couling I don't know much about BSD (my knowledge is mostly Linux Oriented)... There should usually be some way to list open sockets on a system. Eg: sockstat cyberciti.biz/tips/… I would assume this could let you discover the socket type.
Jan 19, 2022 at 9:37 comment added Steffen Ullrich "Isn't there a way to determine this data without iterating over?" - No. The same with port or IP - if you don't know these you need to guess and try.
Jan 19, 2022 at 8:59 comment added Eddy_Em @SteffenUllrich, let's say I know server IP and socket port, now I want to connect to socket, but don't know its type. Isn't there a way to determine this data without iterating over?
Jan 19, 2022 at 8:53 comment added Steffen Ullrich "what is the right thing to do in a situation where the client doesn't know the type of socket to which he needs to connect?" - try what it might be. socket name, socket type, application protocol ... are needed to contact the peer like the full email address and not just parts of it are needed to send an email.
Jan 19, 2022 at 8:27 history asked Eddy_Em CC BY-SA 4.0