> But how do I fill the TSockAddr structure to pass to SendTo?
Out of my head, not tested:
FDest : TSockAddrIn;
Data : AnsiString;
MyPort : Integer;
MyPort := 1234; // Port number
FillChar(FDest, SizeOf(FDest), 0);
FDest.sin_family := AF_INET;
FDest.sin_port
When It stucks, It's always on 18.2KB, using SSLWSocket. But none of this data
is being shown in buffer... :/
Dnia 22 października 2008 16:19 Ja <[EMAIL PROTECTED]> napisał(a):
> Hello,
> I'm trying to stream data to server that would respond in real time for
> different requests. It does send
Hello,
I'm trying to stream data to server that would respond in real time for
different requests. It does send all the data but there seems to be problem
with response... sometimes i get the response, sometimes not... even when
firewall says that some data (not all) have been rcved (about 18kB!
Thanks Francois!
But how do I fill the TSockAddr structure to pass to SendTo?
Eric
- Original Message -
From: "Francois Piette" <[EMAIL PROTECTED]>
To: "ICS support mailing"
Sent: Wednesday, October 22, 2008 4:25 AM
Subject: Re: [twsocket] Silly UDP Question
>> I have a simple doubt
> I have a simple doubt regarding the TWSocket using UDP protocol.
> Using the same component can I listen on one port and send data on another
one?
Yes, you can.
Put the instance to listen mode on the port you want and then use SendTo to
send datagram to the port you need.
--
[EMAIL PROTECTED]
Au