- socket.accept() is used to accept the connection from the client. This method returns two values, client_socket and client_address, where client_socket is a new socket object that's used to send and receive data over the connection.
- socket.sendto(data, address) is used to send data to a given address.
- The bind(IP,PORT) method allows you to associate a host and a port with a specific socket, for example, server.bind(("localhost", 9999)).
- The main difference between TCP and UDP is that UDP is not connection-oriented. This means that there is no guarantee that our packets will reach their destinations, and there is no error notification if a delivery fails.
- socket.connect_ex(address) is used for implementing port scanning with sockets.
- RawCap.exe.
- socket.socket (socket.AF_INET6, socket.SOCK_STREAM).
- There is a module called selectors.
- The connection is wrapped into SSL packets using our ssl_wrap_socket() function.
- By calling the getpeercert() method and comparing it with the returned hostname.