

"""simple docstring"""






import socket



def   lowercase_	(    ):




					'''simple docstring'''






					UpperCAmelCase			:   int      =				socket.socket(socket.AF_INET							,      socket.SOCK_STREAM	)
					UpperCAmelCase			:   List[str]      =				socket.gethostname()
					UpperCAmelCase			:   Any      =				1_23_12

					sock.connect((host, port)	)
					sock.send(B"Hello server!"	)

					with open("Received_file"							,      "wb"	) as out_file:
										print("File opened"	)
										print("Receiving data..."	)
										while True:
															UpperCAmelCase			:   int      =				sock.recv(10_24	)
															if not data:
																				break
															out_file.write(_lowercase	)

					print("Successfully received the file"	)
					sock.close()
					print("Connection closed"	)


if __name__ == "__main__":
	main()





"""simple docstring"""






snake_case_   :   str        =       [
    """DownloadConfig""",
    """DownloadManager""",
    """DownloadMode""",
    """StreamingDownloadManager""",
]

from .download_config import DownloadConfig
from .download_manager import DownloadManager, DownloadMode
from .streaming_download_manager import StreamingDownloadManager


