My former post show examples of Client/Server using ServerSocket and Socket, with sending message from server to client, and from client to server. This example implement a echo server to show how to do bi-directional communication.
Each Friday is PiDay here at Adafruit! Be sure to check out our posts, tutorials and new Raspberry Pi related products. Adafruit has the largest and best selection of Raspberry Pi accessories and all the code & tutorials to get you up and running in no time!