Added classes for TCP communication