Send kmeans request data via socket