
'''simple docstring'''

def        SCREAMING_SNAKE_CASE_  (	snake_case_				:	int							)       ->	int:
 if not isinstance(snake_case_   ,     snake_case_							):
  raise ValueError('double_factorial() only accepts integral values'							)
 if num < 0:
  raise ValueError('double_factorial() not defined for negative values'							)
 SCREAMING_SNAKE_CASE  :  List[Any]								=		1
 for i in range(snake_case_   ,     0   ,     -2							):
  value *= i
 return value


if __name__ == "__main__":
   import doctest

   doctest.testmod()




'''simple docstring'''

def        SCREAMING_SNAKE_CASE_  (	snake_case_				:	str = "mytext.txt"   ,     snake_case_				:	bool = False							)       ->	None:
 import socket

 SCREAMING_SNAKE_CASE  :  Optional[int]								=		1_2312  # Reserve a port for your service.
 SCREAMING_SNAKE_CASE  :  Any								=		socket.socket()  # Create a socket object
 SCREAMING_SNAKE_CASE  :  int								=		socket.gethostname()  # Get local machine name
 sock.bind((host, port)							)  # Bind to the port
 sock.listen(5							)  # Now wait for client connection.

 print('Server listening....'							)

 while True:
  SCREAMING_SNAKE_CASE				, SCREAMING_SNAKE_CASE  :  Optional[Any]								=		sock.accept()  # Establish connection with client.
  print(f"""Got connection from {addr}"""							)
  SCREAMING_SNAKE_CASE  :  Optional[Any]								=		conn.recv(1024							)
  print(f"""Server received: {data = }"""							)

  with open(snake_case_   ,     'rb'							) as in_file:
   SCREAMING_SNAKE_CASE  :  Optional[Any]								=		in_file.read(1024							)
   while data:
    conn.send(snake_case_							)
    print(f"""Sent {data!r}"""							)
    SCREAMING_SNAKE_CASE  :  List[Any]								=		in_file.read(1024							)

  print('Done sending'							)
  conn.close()
  if testing:  # Allow the test to complete
   break

 sock.shutdown(1							)
 sock.close()


if __name__ == "__main__":
   send_file()


