| 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: Problem sending data to a specific connection |
| Smoke From: Mvd, Uruguay Posts: 8 Member Since: 08/26/03 |
posted August 26, 2003 3:25 PM I have been asking this on the wrong forum, so i repost here, with some modifications since thanks to Tony i got something working.. each time my server get a new connection i add a item to a listview control and i assign the Tag property of the item to the e.tcp value, something like this... Dim x As New ListViewItem("New Connection") x.Tag = e.Tcp x.SubItems.Add(e.Tcp.LocalEndPoint.Address.ToString) x.SubItems.Add(e.Tcp.LocalEndPoint.Port) So, i want to send data back to those connections based on the selected item on that list what im trying to do is the following... i have a textbox where i write the command to send and a send button... If ListView1.SelectedItems.Count > 0 Then Dim x As Dart.PowerTCP.SslSockets.Tcp = ListView1.SelectedItems(0).Tag TextBox1.Text += "Send data: " & TextBox2.Text.Trim & vbCrLf x.Send(TextBox2.Text.Trim) End If But it looks like my client application is not getting the data, at least its not firing the EndReceive or the EndSend can anyone tellme what im doing wrong? |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted August 26, 2003 3:39 PM That seems like it should work. I am not sure why it doesn't for you. Please take a look at the sample server programs ( there are many of them ) All use the Send method and they all work. In fact, it's probably a good idea to really take a long look at the sample that's closest to what you want to do before you even try writing your app. If you still have problems, please contact sales@dart.com to find out about our support programs. |
| Smoke From: Mvd, Uruguay Posts: 8 Member Since: 08/26/03 |
posted August 26, 2003 3:50 PM I got it working, it looks like i just had to set TCP.KeepAlive = True and TCP.AutoReceive = True to the client and its working just fine now thanks for the help a lot, without your help this will not working :) And sorry for my english... |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted August 26, 2003 3:54 PM That's good. Thanks for the follow-up! |
| Reply | PowerTCP Sockets for .NET (Secure and Standard) Topics | Forums |
This site is powered by
PowerTCP WebServer for ActiveX
|