Hi all.
I’m using TPCSocket class into my WebApp.
I created a class with a method calling my TCPSockets
But it doesn’t works perfectly.
Indeed, i remembered that i need to use an event : DataAvailable
But how to declare this event for using?
I started my code with this:
[code] Dim TCPSocket1 As TCPSocket
Const time_out = 200000
Dim mStart as Double = Microseconds
Dim Result, CrLf as String
CrLf = EndOfLine.Windows
TCPSocket1 = new TCPSocket
TCPSocket1.Port = App.ami_port
TCPSocket1.Listen
TCPSocket1.Address = App.elx_host
TCPSocket1.Connect
do
TCPSocket1.Poll
loop until (TCPSocket1.IsConnected) or (Microseconds - mStart > time_out)
…/…
[/code]
Have you got any idea please?
It’s a pity that there’s not tcpsocket into the framework menu under webapp.
With it, i could have this event natively
Regards