






"""simple docstring"""





import socket







def 	lowerCamelCase__			(				) ->							Any:
  lowerCamelCase_       	=		socket.socket(socket.AF_INET						,							socket.SOCK_STREAM					)
  lowerCamelCase_       	=		socket.gethostname()
  lowerCamelCase_       	=		12312

  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:
      lowerCamelCase_       	=		sock.recv(1024					)
      if not data:
        break
      out_file.write(_lowerCamelCase					)

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


if __name__ == "__main__":
  main()












"""simple docstring"""





def 	lowerCamelCase__			(				_lowerCamelCase			:						str					) ->							bool:
  lowerCamelCase_       	=		0
  for ch in input_str:
    lowerCamelCase_       	=		ord(_lowerCamelCase					)
    lowerCamelCase_       	=		pow(2						,							_lowerCamelCase					)

    # If we already turned on bit for current character's unicode
    if bitmap >> ch_unicode & 1 == 1:
      return False
    bitmap |= ch_bit_index_on
  return True


if __name__ == "__main__":
  import doctest

  doctest.testmod()




