Hi,
I want to send and receive messages on different ports. I have created one application to open those port and second application for sending and receving the messages. Now I want to merge those in single application so that same application will open the port , send/receive messages and close the port,but it throws an errors if I use same application for above mentioned functionality. How to resolve it?