blob: 37851f0f96719419a2cc3d8ea964492618bf69f2 (
plain)
- #!/usr/bin/python3
- import logging
- import socket
- log = logging.getLogger('Connection')
- sock = None
- port = 9999
- def establish(host):
- log.info('establishing Connection to %s', host)
- sock = socket.create_connection( (host, port) )
- log.debug('Connection successful \o/')
- def ask(command):
- print("would send command talk to server now and read back the response")
|