|Dart Home | PowerTCP Sockets for .NET | Custom Development||Reply | PowerTCP Sockets for .NET (Secure and Standard) Topics | Forums|
|Author||Forum: PowerTCP Sockets for .NET (Secure and Standard)|
Topic: is there any identity property for each tcp?
Member Since: 07/02/14
|posted July 5, 2014 6:40 AM
I want to create 100 tcp and handle OnData event for them in same event. I mean I have 100 tcp object and 1 OnData event. bcz the behavior is almost same for each object.
Tcp arrTcp = new Tcp;
for(int i=0; i<100; i++)
arrTcp[i] = new Tcp();
arrTcp[i].Data += tcp1_Data;
void tcp1_Data(object sender, Dart.Sockets.DataEventArgs e)
// all code are same except this part :
Is there any ID for every tcp object that I know each reply is for which request in OnData event?
|Nick B (Admin)
From: Utica, NY USA
Member Since: 05/25/10
Extra Support Options
Custom Application Development
|posted July 7, 2014 9:40 AM
The Tcp.Tag property may be used to specify a unique identifier for each Tcp instance.
|Reply | PowerTCP Sockets for .NET (Secure and Standard) Topics | Forums|
|This site is powered by PowerTCP WebServer for ActiveX|