Hello Éric,
When it is disconnected then OnSessionClose is fired. There you post a
message to a custom message handler where you connect again.
---
Rgds, Wilfried [TeamICS]
http://www.overbyte.be/eng/overbyte/teamics.html
http://www.mestdagh.biz
Tuesday, April 1, 2008, 22:15, Éric Fleming Bonilh
Hello
What is the implication on the TCP control of disconnecting and connecting
using the same TWSocket object? what I mean is that:
FSocket.Disconnect;
FSocket.Addr := 'x.x.x.x';
FSocket.Port := '80';
FSocket.Connect;
What is the implication of doing that on sequence??
I ask that because
Hello,
>Please post your code.
CodeGearT DelphiR 2007 for Win32R R2 Version 11.0.2902.10471
ICS 5.25
TWSocket I set
Addr 192.168.245.2
Port 47808
Proto udp
Var
outBuffer:array[0..128] of byte;
In a button click:
outBuffer[0]:=$01;
outBuffer[1]:=$02;
WSocket1.Listen;
WSocket1.Send(@outBuff
Please post your code. I assure you, everything is working great in ICS ...
/ Ionut Muntean
zayin wrote:
> Hello Wilfried,
>
>
>> Are you sure you filled in the correct IP?
>>
>
> Yes.
>
>
>> Do you create all in code or do you have TWSocket component on your form?
>>
>
> On the
Hello Wilfried,
>Are you sure you filled in the correct IP?
Yes.
>Do you create all in code or do you have TWSocket component on your form?
On the form.
I deleted the original component, put a new TWSocket on the form, set the
addr to 192.168.245.2, set the proto to udp, called listen, called
>> If I call listen and then try to send I get an error 10049 (Bind Address not
>> available)
>
> Are you sure you filled in the correct IP?
As an additional note: You can probably set the IP string of the server
socket to "0.0.0.0" which will listen on all available interfaces. So
you don't ha
Hello,
> The error still persists, though,
I don't see your original post. Can you tell me what the error is?
> and remains to crash the app.
What do you mean by 'crash'? Is there an exception error, is the
application non responcive, something else?
> Is there another way to go about this err
Hello Mark,
> If I call listen and then try to send I get an error 10049 (Bind Address not
> available)
Are you sure you filled in the correct IP?
> If I call connect and then send, I see the data at the other end but I do
> not get any response in the DataAvailable callback.
No because of the