i have an application which needs to be invoked based on the data in the file received from outsidde. for that i need to use sockets. what i have to do is first listen to the port. once the connection is established. i need to get the file.

i want to know how can it be implemented??

Please reply soon

Thank you