



'''simple docstring'''






def        snake_case_   (	lowerCAmelCase_ = "mytext.txt"			,  lowerCAmelCase_ = False						)->						None:





       '''simple docstring'''


       import socket

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

              with open(lowerCAmelCase_			,  """rb"""						) as in_file:
                     _UpperCAmelCase    :		Optional[Any]     	=					in_file.read(1024						)
                     while data:
                            conn.send(lowerCAmelCase_						)
                            print(F'''Sent {data!r}'''						)
                            _UpperCAmelCase    :		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()










'''simple docstring'''







from __future__ import annotations





def 							lowerCamelCase_   (	SCREAMING_SNAKE_CASE__   :      list[int | float] )			->						int | float:
						if len(SCREAMING_SNAKE_CASE__ ) == 0:
												raise ValueError('''find_min() arg is an empty sequence''' )
						UpperCAmelCase_      :   Optional[int]      =	nums[0]
						for num in nums:
												UpperCAmelCase_      :   Tuple      =	min(SCREAMING_SNAKE_CASE__,      SCREAMING_SNAKE_CASE__ )
						return min_num


if __name__ == "__main__":
					import doctest

					doctest.testmod(verbose=True)





