| 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: Tcp.Tag |
| jvetter713 From: Champaign, IL USA Posts: 1 Member Since: 05/04/06 |
posted May 4, 2006 11:41 AM Having trouble getting Tag property to work. I am assuming that the Client can set this property so the server can identify/differentiate clients. When I set this on the client side and then connect, the server cant seem to recognize this: Client snippet: mobjTcp = New Dart.PowerTCP.Sockets.Tcp mobjTcp.Tag = "Jason" mobjTcp.Connect("172.16.5.xxx", 6584) Server Snippet: Dim objTcp As Dart.PowerTCP.Sockets.Tcp = DirectCast(mobjServer.Connections(0), Dart.PowerTCP.Sockets.Tcp) MsgBox(CStr(objTcp.Tag)) Tcp.Tag on the server side is Nothing/"" depending on how I used it. |
| Amit From: Rome, NY USA Posts: 315 Member Since: 03/15/06 |
posted May 4, 2006 3:15 PM Hello, I have read your query and as I can understand that you are looking to use the Tag property, so that server can differentiate between different clients. If this is the said scenario, then please note that information stored in the Tag property is not sent over the connection. Also Tag property needs to be set on the server side. A common use for the Tag property is to store data that is closely associated with the component. You can also use this property to associate any object with other object. You can go through the help file for creating a simple multi client chat server using this property. In this application, for each and every incoming connection, a Tag will be specified for each and every username, and then that user will be referenced through that tag. I hope this will be of help. Regards, Amit |
| Reply | PowerTCP Sockets for .NET (Secure and Standard) Topics | Forums |
This site is powered by
PowerTCP WebServer for ActiveX
|