Communication via socket