[twsocket] OnDataAvailable event not firing for UDP client

2010-02-17 Thread Koker, Mohamed (GE Infra, Energy)
Hi All,

I have a udp client for the TFTP protocol that has worked perfectly
since I first wrote it in 1999.

Recently we upgraded to Delphi 2010 so I also upgraded to the V7 source
code.

Unfortunately, things no longer work.

I can send the initial request packet to the TFTP server (on the same
computer) but after that I do not receive any response packets.

I tried my test application written in Delphi 2010 using the DLL
compiled with RAD Studio 2007 and the 1999 ICS source and it works just
fine.

However, the same test application fails to receive any response packets
when using the DLL compiled with the V7 source code.

Is there something I need to do differently to get the OnDataAvailable
event to fire or is there something at a lower level that I can put a
break-point in to trace through to the missing packets?

 Thanks in advance

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


Re: [twsocket] OnDataAvailable event not firing for UDP client

2010-02-17 Thread Angus Robertson - Magenta Systems Ltd
 I have a udp client for the TFTP protocol that has worked perfectly
 since I first wrote it in 1999.
 
 Recently we upgraded to Delphi 2010 so I also upgraded to the V7 
 source code.
 
 Unfortunately, things no longer work.

Source written 10 years ago will not be aware of Unicode and will assume
ANSI strings and pointers.  

So you must first go through your own source code almost line by line
replaced all PChar with PAnsiChar, String with AnsiString, etc, per the
various Unicode migration documents.  

Once you have it working again, can you donate it to the ICS project?  We
don't currently have a TFTP client (using udp). 

Angus

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


Re: [twsocket] OnDataAvailable event not firing for UDP client

2010-02-17 Thread Koker, Mohamed (GE Infra, Energy)
Hi Angus,

I have modified my source code to be Unicode compliant and like I said
before, the initial request packet is sent correctly.

It's just the response packet that is never detected.

Cheers

-Mohamed

-Original Message-
From: twsocket-boun...@elists.org [mailto:twsocket-boun...@elists.org]
On Behalf Of Angus Robertson - Magenta Systems Ltd
Sent: Wednesday, February 17, 2010 10:23 AM
To: twsocket@elists.org
Subject: Re: [twsocket] OnDataAvailable event not firing for UDP client

 I have a udp client for the TFTP protocol that has worked perfectly
 since I first wrote it in 1999.
 
 Recently we upgraded to Delphi 2010 so I also upgraded to the V7 
 source code.
 
 Unfortunately, things no longer work.

Source written 10 years ago will not be aware of Unicode and will assume
ANSI strings and pointers.  

So you must first go through your own source code almost line by line
replaced all PChar with PAnsiChar, String with AnsiString, etc, per the
various Unicode migration documents.  

Once you have it working again, can you donate it to the ICS project?
We
don't currently have a TFTP client (using udp). 

Angus

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