import socket


def connect_to_host(host, port):
	"""
	Init socket; connect to host at specified port

	Keyword arguments:
	host -- hostname (str)
	port -- port number (int)
	"""
	control_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
	control_socket.connect((host, port))
	return control_socket