Hi,

I have improved the TFTPClient sample in synapse to support packets bigger then 
512 bytes.

The new application works well with 512, 1024, 2048 & 4096 size packets.

However when I select 8192 or higher value the client fails.

I investigated the issue and found that WaitingData() when called from 
TBlockSocket.RecvPacket()
Will trim any value 8192, and since a TFTP packet of 8192 is actually 8196 in 
size the 
system fails.

I have multiplied the value returned from WaitingData() by 5 and to my great 
surprise 
it works OK for packets upto 32KB.

The modified function is attached.

Can anyone explain to me why WaitingData() will trim any value to 8KB?

Regards,
Itzik Mintz


Attachment: RecvPacket.txt
Description: Binary data

------------------------------------------------------------------------------
Shape the Mobile Experience: Free Subscription
Software experts and developers: Be at the forefront of tech innovation.
Intel(R) Software Adrenaline delivers strategic insight and game-changing 
conversations that shape the rapidly evolving mobile landscape. Sign up now. 
http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk
_______________________________________________
synalist-public mailing list
synalist-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/synalist-public

Reply via email to