Re: [Synalist] Bad byte order for SMTP port on some (very few) computers?
Pascal TCP/IP Library
Brought to you by:
geby
From: Lukas G. <geb...@ml...> - 2005-11-27 10:40:59
|
On what operating systems is port OK, and on what operating systems are ports broken? > I've been using Synapse successfully for a couple of years now. But now I > have found a problem that I havn't been able to solve. > > The problem occurs when I'm using the SMTP components to send mail. I have > one compiled .exe-file, that I use to send mail through SMTP. This > application works on about 60-70 computers right now. But the last week I > installed it on a new computer, and I can't get it to work correctly. > > The problem is that the SMTP client tries to connect to port 6400 > instead of 25. The change of the port number seems to be caused by wrong > byte order on the sin_port variable ($1900 = 6400, $0019 = 25) (which is > supposed to be in network byte order). However, I have exactly the same > setup on all other computers, and it works fine on them. When I change the > port number to 6400 on the SMTP component it actually connects to port 25 > instead (which of course makes sense). On the same computer I'm running > other software with different IP-libraries, and they connect to the > correct port number. > > Has anyone seen this problem before? > > Best regards, > > Peter Olsson > Visionutveckling AB > > -- Lukas Gebauer. E-mail: geb...@ml... WEB: http://www.ararat.cz/synapse - Synapse Delphi and Kylix TCP/IP Library |