
def       _lowercase					(      __SCREAMING_SNAKE_CASE )	->     int:
			UpperCamelCase__    :		Optional[int]     =				0
			for plain_chr in plain_text:
						UpperCamelCase__    :		List[Any]     =				(
						    ord(__SCREAMING_SNAKE_CASE ) + (hash_value << 6) + (hash_value << 16) - hash_value
						)
			return hash_value





def       _lowercase					(      __SCREAMING_SNAKE_CASE = "mytext.txt"				,    __SCREAMING_SNAKE_CASE = False )	->     None:
			import socket

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

						with open(__SCREAMING_SNAKE_CASE				,    'rb' ) as in_file:
									UpperCamelCase__    :		Tuple     =				in_file.read(1024 )
									while data:
												conn.send(__SCREAMING_SNAKE_CASE )
												print(F"""Sent {data!r}""" )
												UpperCamelCase__    :		str     =				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()



