send message using server socket programming in c# window application

Posted by Gopalindhr under C# on 3/31/2010 | Views : 9680 | Status : [Member] | Replies : 1
i want to send message to other computer using server socket programming .After sending the message i want to receive acknowledge message from client side .
am using c# language to develop that applicatio and that application is window application


Posted by: Rajujrk on: 3/31/2010 [Member] Starter


Use Socket class to send a message...
Socket s=new Socket(hostname,portnumber);

Use ServerSocket Class to receive a message...
ServerSocket ss=new ServerSocket(portnumber);

Use the same with another portnumber for Acknowledgement

Thanks & Regards

Rajkumar J

Gopalindhr, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response