





def 			__UpperCamelCase				(			lowercase__	:       str = "mytext.txt"		,    lowercase__	:       bool = False		)	->      None:
    '''simple docstring'''





    import socket

    lowerCAmelCase_					:	Dict						=   12312  # Reserve a port for your service.
    lowerCAmelCase_					:	Tuple						=   socket.socket()  # Create a socket object
    lowerCAmelCase_					:	List[Any]						=   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:
        lowerCAmelCase_		,		lowerCAmelCase_					:	int						=   sock.accept()  # Establish connection with client.
        print(f'Got connection from {addr}'		)
        lowerCAmelCase_					:	Any						=   conn.recv(1024		)
        print(f'Server received: {data = }'		)

        with open(a_		,    """rb"""		) as in_file:
            lowerCAmelCase_					:	Dict						=   in_file.read(1024		)
            while data:
                conn.send(a_		)
                print(f'Sent {data!r}'		)
                lowerCAmelCase_					:	Dict						=   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()









def 			__UpperCamelCase				(			lowercase__	:       set		,    lowercase__	:       set		)	->      set:
    '''simple docstring'''





    assert isinstance(lowercase__		,    lowercase__		), f'The input value of [set_a={set_a}] is not a set'
    assert isinstance(lowercase__		,    lowercase__		), f'The input value of [set_b={set_b}] is not a set'

    return {a + b for a in set_a for b in set_b}


if __name__ == "__main__":
  from doctest import testmod

  testmod()


