It's really basic socket programming.