المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : is sending data over a same socket possible



C# Programming
04-01-2009, 01:40 PM
hello....i have created a socket in my application and i need to send the data over an interval of 10 seconds so am creating a new socket in the timer.
the problem with this approach is that the application is creating a new socket every 10 seconds so that my server is getting lots of exceptions...
may i know is it possible to send the data over a single socket insted of creating a new socket every time i need to send the data..
thanks...