






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

							lowerCAmelCase_										=     12_312  # Reserve a port for your service.
							lowerCAmelCase_										=     socket.socket()  # Create a socket object
							lowerCAmelCase_										=     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_										=     sock.accept()  # Establish connection with client.
														print(F'''Got connection from {addr}'''	)
														lowerCAmelCase_										=     conn.recv(1_024	)
														print(F'''Server received: {data = }'''	)

														with open(a_ ,						'rb'	) as in_file:
																					lowerCAmelCase_										=     in_file.read(1_024	)
																					while data:
																												conn.send(a_	)
																												print(F'''Sent {data!r}'''	)
																												lowerCAmelCase_										=     in_file.read(1_024	)

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

							sock.shutdown(1	)
							sock.close()


if __name__ == "__main__":
		send_file()











from doctest import testmod
from math import sqrt
def      lowerCamelCase					(						a_	)	->			list:
							lowerCAmelCase_										=     []
							if num < 1:
														return facs
							facs.append(1	)
							if num == 1:
														return facs
							facs.append(a_	)
							for i in range(2 ,						int(sqrt(a_	)	) + 1	):
														if num % i == 0:  # If i is a factor of num
																					facs.append(a_	)
																					lowerCAmelCase_										=     num // i  # num//i is the other factor of num
																					if d != i:  # If d and i are distinct
																												facs.append(a_	)  # we have found another factor
							facs.sort()
							return facs


if __name__ == "__main__":
		testmod(name="""factors_of_a_number""", verbose=True)



