Sample application of socket communication