Re: [twsocket] Hi, I've a question

2005-08-19 Thread Juan Pablo Franco
Hi Wilfried,

The problem is present because I test of data in the sent machine and the 
data not is the same in Receive machine.
If I send 30Kb of data, in the other machine receive 7Kb only; and I don't 
know what is the problem.
Send you part of code of application, but I know that information is sent 
and not all receive.
Thanks again.
Bye.
    Juan Pablo Franco


SENT MACHINE
overlaySocket.SendStr(Msg);


RECEIVE MACHINE:
procedure TFVisor.overlayListenDataAvailable(Sender: TObject; ErrCode: Word);
var
 Buffer : array [0..5] of char;
 Src: TSockAddrIn;
 Len, SrcLen: Integer;
 s:string;
begin
 overlayListen.BufSize := 16384;
 SrcLen := SizeOf(Src);
 overlayListen.Receive(@Buffer, SizeOf(Buffer));
 s:=StrPas(Buffer);

  processMessage(s);
  ...
end;




At 10:16 19/08/2005, you wrote:
>Hi Juan,
>
>Yes please tell me what the problem is. BTW if you ask on mailing list I
>will answer too, and also lots of other people will help there.
>
>---
>Mvg, Wilfried
>http://www.mestdagh.biz
>
>
>--- Original message from Juan Pablo Franco ---
>Date:Friday, August 19, 2005
>Time:15:04
>Subject: Hi, I've a question
>
> > Hi partner, I reading your paper about Receiving High speed data and i
> > don't use this example in my application.
> > When I process message I can't read data sent. The data sent is a string,
> > many strings. Puntually, 360 strings per second and one string conteined
> > many information.
> > Can you help me?
> > I'm sorry, but I am from Argentina and my english not is good.
> > Bye and thanks.
>
> >  Juan Pablo

-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


[twsocket] Transfer with UDP

2005-08-19 Thread Juan Pablo Franco
Hi Guillaume,

I am using Tsocket UDP because I need transfer high speed data, but is more 
complicated because the sent machine send 720 strings in 4 seconds, and a 
string maybe contained large data.
The most important in the application is the time, then receive data and 
process it must be fastest.
Thanks.

-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] Hi, I've a question

2005-08-19 Thread Juan Pablo Franco
Francois,

processMessage is used to parsing the receive string and put the data in an 
public array, this array is used for an other process that paint on the screen.
Then I need full data in the string, if not is complete the paint process 
do incorrect picture.
Thanks again and I will investigate this.

Juan Pablo


At 11:15 19/08/2005, you wrote:
> > procedure TFVisor.overlayListenDataAvailable(Sender: TObject; ErrCode: 
> Word);
> > begin
> >   ...
> >   processMessage(s);
> >   ...
> > end;
>
>That is the problem. You defenitely can't call ProcessMessages from most 
>of the event handler of ICS
>components and for sure not from OnDataAvailable.
>
>Why do you think you need to call ProcessMessages ?
>
>--
>[EMAIL PROTECTED]
>http://www.overbyte.be
>
>
>- Original Message -
>From: "Juan Pablo Franco" <[EMAIL PROTECTED]>
>To: "Wilfried Mestdagh" <[EMAIL PROTECTED]>
>Cc: 
>Sent: Friday, August 19, 2005 3:44 PM
>Subject: Re: [twsocket] Hi, I've a question
>
>
> > Hi Wilfried,
> >
> > The problem is present because I test of data in the sent machine and the
> > data not is the same in Receive machine.
> > If I send 30Kb of data, in the other machine receive 7Kb only; and I don't
> > know what is the problem.
> > Send you part of code of application, but I know that information is sent
> > and not all receive.
> > Thanks again.
> > Bye.
> > Juan Pablo Franco
> >
> >
> > SENT MACHINE
> > overlaySocket.SendStr(Msg);
> >
> >
> > RECEIVE MACHINE:
> > procedure TFVisor.overlayListenDataAvailable(Sender: TObject; ErrCode: 
> Word);
> > var
> >  Buffer : array [0..5] of char;
> >  Src: TSockAddrIn;
> >  Len, SrcLen: Integer;
> >  s:string;
> > begin
> >  overlayListen.BufSize := 16384;
> >  SrcLen := SizeOf(Src);
> >  overlayListen.Receive(@Buffer, SizeOf(Buffer));
> >  s:=StrPas(Buffer);
> >
> >   processMessage(s);
> >   ...
> > end;
> >
> >
> >
> >
> > At 10:16 19/08/2005, you wrote:
> > >Hi Juan,
> > >
> > >Yes please tell me what the problem is. BTW if you ask on mailing list I
> > >will answer too, and also lots of other people will help there.
> > >
> > >---
> > >Mvg, Wilfried
> > >http://www.mestdagh.biz
> > >
> > >
> > >--- Original message from Juan Pablo Franco ---
> > >Date:Friday, August 19, 2005
> > >Time:15:04
> > >Subject: Hi, I've a question
> > >
> > > > Hi partner, I reading your paper about Receiving High speed data and i
> > > > don't use this example in my application.
> > > > When I process message I can't read data sent. The data sent is a 
> string,
> > > > many strings. Puntually, 360 strings per second and one string 
> conteined
> > > > many information.
> > > > Can you help me?
> > > > I'm sorry, but I am from Argentina and my english not is good.
> > > > Bye and thanks.
> > >
> > > >  Juan Pablo
> >
> > --
> > To unsubscribe or change your settings for TWSocket mailing list
> > please goto http://www.elists.org/mailman/listinfo/twsocket
> > Visit our website at http://www.overbyte.be
>
>--
>To unsubscribe or change your settings for TWSocket mailing list
>please goto http://www.elists.org/mailman/listinfo/twsocket
>Visit our website at http://www.overbyte.be

-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] Transfer with UDP

2005-08-19 Thread Juan Pablo Franco
Again,

If I use TCP, the time is over. I need transfer important data in little time.

SENT MACHINE
overlaySocket.SendStr(Msg);


RECEIVE MACHINE:
procedure TFVisor.overlayListenDataAvailable(Sender: TObject; ErrCode: Word);
var
 Buffer : array [0..5] of char;
 Src: TSockAddrIn;
 Len, SrcLen: Integer;
 s:string;
begin
 overlayListen.BufSize := 16384;
 SrcLen := SizeOf(Src);
 overlayListen.Receive(@Buffer, SizeOf(Buffer));
 s:=StrPas(Buffer);

  processMessage(s);
  ...
end;

procedure processMessage(s: string);
begin
 parsing message and save in array[];
end;

in other process of RECEIVE MACHINE:
begin
 while (don't stop application) do
 begin
 paint(array[])> pass throught
 end;
end;

IF I USE TCP IS PROBABLY THAT BUFFER COLAPSE

THANKS AGAIN




At 11:53 19/08/2005, you wrote:
>Hello Juan,
>
>This can explain wy you loose data. UDP is fast but not realble. If you
>dont want to loose data then you have to use TCP.
>
>---
>Rgds, Wilfried
>http://www.mestdagh.biz
>
>Friday, August 19, 2005, 16:11, Juan Pablo Franco wrote:
>
> > Hi Guillaume,
>
> > I am using Tsocket UDP because I need transfer high speed data, but is more
> > complicated because the sent machine send 720 strings in 4 seconds, and a
> > string maybe contained large data.
> > The most important in the application is the time, then receive data and
> > process it must be fastest.
> > Thanks.
>
>
>--
>To unsubscribe or change your settings for TWSocket mailing list
>please goto http://www.elists.org/mailman/listinfo/twsocket
>Visit our website at http://www.overbyte.be

-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] Hi, I've a question

2005-08-19 Thread Juan Pablo Franco
Hi Dan,

I understand you, but the problem is that the paint process in Receive 
machine must paint at the same time that the paint process in the Sent machine.
Here is the central point because the UDP protocol is asyncronous and I 
need two process in the same time in both machines.

Juan


At 13:33 19/08/2005, you wrote:
>Yes, it looks that way.  Therefore, the problem is that he is processing it
>before checking he has received it all, as Guillaume said.
>
>Dan
>
>- Original Message -
>From: "Wilfried Mestdagh" <[EMAIL PROTECTED]>
>To: "ICS support mailing" 
>Sent: Friday, August 19, 2005 3:52 PM
>Subject: Re: [twsocket] Hi, I've a question
>
>
> > Maybe ProcessMessage(s) is a call to a function to process the received
> > data and not Application.ProcessMessage ? Juan can you explain ?
> >
> > ---
> > Rgds, Wilfried
> > http://www.mestdagh.biz
> >
> > Friday, August 19, 2005, 16:15, Francois Piette wrote:
> >
> >>> procedure TFVisor.overlayListenDataAvailable(Sender: TObject; ErrCode:
> >>> Word);
> >>> begin
> >>>   ...
> >>>   processMessage(s);
> >>>   ...
> >>> end;
> >
> >> That is the problem. You defenitely can't call ProcessMessages from most
> >> of the event handler of ICS
> >> components and for sure not from OnDataAvailable.
> >
> >> Why do you think you need to call ProcessMessages ?
> >
> >> --
> >> [EMAIL PROTECTED]
> >> http://www.overbyte.be
> >
> >
> >> - Original Message -
> >> From: "Juan Pablo Franco" <[EMAIL PROTECTED]>
> >> To: "Wilfried Mestdagh" <[EMAIL PROTECTED]>
> >> Cc: 
> >> Sent: Friday, August 19, 2005 3:44 PM
> >> Subject: Re: [twsocket] Hi, I've a question
> >
> >
> >>> Hi Wilfried,
> >>>
> >>> The problem is present because I test of data in the sent machine and
> >>> the
> >>> data not is the same in Receive machine.
> >>> If I send 30Kb of data, in the other machine receive 7Kb only; and I
> >>> don't
> >>> know what is the problem.
> >>> Send you part of code of application, but I know that information is
> >>> sent
> >>> and not all receive.
> >>> Thanks again.
> >>> Bye.
> >>> Juan Pablo Franco
> >>>
> >>>
> >>> SENT MACHINE
> >>> overlaySocket.SendStr(Msg);
> >>>
> >>>
> >>> RECEIVE MACHINE:
> >>> procedure TFVisor.overlayListenDataAvailable(Sender: TObject; ErrCode:
> >>> Word);
> >>> var
> >>>  Buffer : array [0..50000] of char;
> >>>  Src: TSockAddrIn;
> >>>  Len, SrcLen: Integer;
> >>>  s:string;
> >>> begin
> >>>  overlayListen.BufSize := 16384;
> >>>  SrcLen := SizeOf(Src);
> >>>  overlayListen.Receive(@Buffer, SizeOf(Buffer));
> >>>  s:=StrPas(Buffer);
> >>>
> >>>   processMessage(s);
> >>>   ...
> >>> end;
> >>>
> >>>
> >>>
> >>>
> >>> At 10:16 19/08/2005, you wrote:
> >>> >Hi Juan,
> >>> >
> >>> >Yes please tell me what the problem is. BTW if you ask on mailing list
> >>> >I
> >>> >will answer too, and also lots of other people will help there.
> >>> >
> >>> >---
> >>> >Mvg, Wilfried
> >>> >http://www.mestdagh.biz
> >>> >
> >>> >
> >>> >--- Original message from Juan Pablo Franco ---
> >>> >Date:Friday, August 19, 2005
> >>> >Time:15:04
> >>> >Subject: Hi, I've a question
> >>> >
> >>> > > Hi partner, I reading your paper about Receiving High speed data and
> >>> > > i
> >>> > > don't use this example in my application.
> >>> > > When I process message I can't read data sent. The data sent is a
> >>> > > string,
> >>> > > many strings. Puntually, 360 strings per second and one string
> >>> > > conteined
> >>> > > many information.
> >>> > > Can you help me?
> >>> > > I'm sorry, but I am from Argentina and my english not is good.
> >>> > > Bye and thanks.
> >>> >
> >>> > >  Juan Pablo
> >>>
> >>> --
> >>> To unsubscribe or change your settings for TWSocket mailing list
> >>> please goto http://www.elists.org/mailman/listinfo/twsocket
> >>> Visit our website at http://www.overbyte.be
> >
> >
> > --
> > To unsubscribe or change your settings for TWSocket mailing list
> > please goto http://www.elists.org/mailman/listinfo/twsocket
> > Visit our website at http://www.overbyte.be
> >
>
>--
>To unsubscribe or change your settings for TWSocket mailing list
>please goto http://www.elists.org/mailman/listinfo/twsocket
>Visit our website at http://www.overbyte.be

-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be