Does anyone know if there is any function that performs an action when it receives something through sockets? Like when you press a button it is OnButton1, is there any function that will perform an action when it receives data through a sockets connection. What I want to do is write a program that I can install on my computer and my friends computer. Then I enter my friend's IP address and the program contacts the program on his computer, tells it to do a FindFile then return the results to my computer. I BADLY NEED THIS INFO!!! if anyone can give me any help (other than links to sockets.com) I would be VERY GREATFUL!!! Thanks again!!!