is sending data over a same socket possible
-
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...
-
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...
-
Just create 1 socket connection. Just write to that stream every 10s. You don't need to create a socket connection every 10s.
thans for that... but am using asynchronous sockets.. so i would be thankful for u if u give me a hint how to write to the single socket stream....