Hello,
I’m trying to push a lot of datas with the socket_listener plug-in.
after some samples (16 289~), my software crash via an “System.NET.Ssockets.SocketException”
for(int i = 0; i < max; i++)
{
TcpClient t_client = new TcpClient();
t_client.Connect( "xxxxxxxxxxxxxx", 8094 );
Byte[] sendBytes = Encoding.ASCII.GetBytes( string.Format( "LIG_PRESTATION_2,C=C1,M=M1,A=A1 value={0} {1}", ran.NextDouble() * 60, i ) );
t_client.GetStream().Write( sendBytes, 0, sendBytes.Length );
t_client.Close();
}
I’ve also tried not to close the socket during sending of the multiple samples, but I 've an System.IO.Exception.
do you have some help ?
Thanks.