Answers for "congruent meaning"

0

congruent meaning

#Make a server socket
import socket
server_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
server_host = "###.###.#.#"
server_port = ####

#bind
try:
  server_socket.bind((server_host, server_port))
except socket.error as e:
  print(e)

print("Waiting for a connection")
while True:
  #accept connections and send stuff
  client_connection, client_address = server_socket.accept()
  print("New connection from", client_address[0])
  client_connection.send("Thank you for connecting!")
  client_connection.close()
Posted by: Guest on September-15-2021

Python Answers by Framework

Browse Popular Code Answers by Language