Login  
Search All Forums
Dart Home | PowerTCP Sockets for .NET | Custom Development Reply | PowerTCP Sockets for .NET (Secure and Standard) Topics | Forums   
AuthorForum: PowerTCP Sockets for .NET (Secure and Standard)
Topic: Maintaining a connection
winetec
david@winetec.net

From: Renwick, New Zealand
Posts: 3
Member Since: 05/30/06
posted July 27, 2006 4:32 PM

I have application that runs as a service and collects temperatures from hardware in the field. I am using Power TCP to first provide an interface to the service and to handle connections from Satellite applications that access the temperatures from the service.

My problem is maintaining a connection from the satellites and passing xml both ways. I am using a mixture of Flash and VB.net applications as satellites. The flash example you provide works fantastic but I don’t seem to be able to mimic the same behavior in VB.net.

In this example I am running a flash chat screen at the same time as the VB.net app and on the same computer. I am also using the Flash server application

Flash:
I make a connection to the server and logon as with the example. I then wait for a response. The app receives a response and is now connected to the server

VB.Net
I make a connection to the server and logon as with the example above. I then wait for a response. The EndReceive event is raised when the server sends a confirmation and I remain connected.

When I send a message from the VB app it is echoed in the flash app. When I send a message from the flash app it is not echoed in the VB app. Can you help me explain this behavior? I am also finding that when I send a message from the VB app I only get a valid reply about one in six times. Even though the EndReceive event is raised the e.segment.toString is empty.

Thanks
Raj

From: Rome, NY, USA
Posts: 389
Member Since: 02/01/06
posted July 28, 2006 12:16 PM

Hi David,

Do you see the same problem if you try this with the TCP Client sample?

I do not use Flash for app dev. However if the Flash app works fine, the VB app should also.

Please create a trace log using the Trace event to diagnose, what was sent and received by/from the Clients and Server.

Regards,
Raj
Reply | PowerTCP Sockets for .NET (Secure and Standard) Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX