Implement scan_port(host: str, port: int) -> bool using socket.socket(AF_INET, SOCK_STREAM) and connect_ex with a timeout.
scan_port(host: str, port: int) -> bool
socket.socket(AF_INET, SOCK_STREAM)
connect_ex
[*] Scanning localhost port 80: CLOSED/FILTERED [✓] Socket connection handling verified (Time: 0.022s, Memory: 14.5 MB)