[Synalist] Delphi 2010 - minor issues
Delphi 2010 shows warnings in several files. As we fix them in our project I'll list the files and the lines here. If you would rather I didn't bother just let me know. In synaip.pas: if not (Value[n] in ['0'..'9']) then In synautil.pas: if Value[n] in [#0..#8, #10..#31] then if not(t[1] in [' ', '"', ':', '=']) then You probably don't want to use CharInSet to fix these since it's Delphi only. You could use something like "if Pos(x[i], "0123456789") > 0 then". Jon B. <>-- This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev ___ synalist-public mailing list synalist-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synalist-public
Re: [Synalist] Length of Message-ID header
>> That's not a bad idea - what sort of level of false positives do you get? >Theoretically, once you hit little short of 4.3 billion messages, every >message that follows will be considered a duplicate of an earlier one :) So at my current rate of receiving spam it would be a dup every day or two. ;) -- This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev ___ synalist-public mailing list synalist-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synalist-public
Re: [Synalist] Synapse, socket server
>fSocket.SetLinger(True, 10); If I remember right that's an okay value for Linux. For Windows you will probably want: fSocket.SetLinger(True, 1000); Or you risk it closing the socket and aborting any data that was just about to go out. -- This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com ___ synalist-public mailing list synalist-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synalist-public
Re: [Synalist] Synaser - parametr is incorrect - error 87
I don't use synaser but I'll toss out a guess: com.config(9600,8,'N',0,false,true); What is the 0 in the function call above? If it's "number of stop bits" then it probably needs to be either 1 or 2, not 0. -Original Message- From: Tomas Rosa [mailto:tr...@seznam.cz] Sent: Wednesday, February 04, 2009 8:35 AM To: synalist-public@lists.sourceforge.net Subject: [Synalist] Synaser - parametr is incorrect - error 87 Hi, I have problem on some serial ports with synaser. I try to open and configure port, but I receive error %SUBJ%. Code is: com:=TBlockSerial.Create; com.Connect('COM1'); com.config(9600,8,'N',0,false,true); Thx for help. TR -- Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM) software. With Adobe AIR, Ajax developers can use existing skills and code to build responsive, highly engaging applications that combine the power of local resources and data with the reach of the web. Download the Adobe AIR SDK and Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com ___ synalist-public mailing list synalist-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synalist-public -- Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM) software. With Adobe AIR, Ajax developers can use existing skills and code to build responsive, highly engaging applications that combine the power of local resources and data with the reach of the web. Download the Adobe AIR SDK and Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com ___ synalist-public mailing list synalist-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synalist-public
Re: [Synalist] [Suspected Spam] Re: CR
>Umm... surely you mean %0a for chr(10) ... %0d is chr(13) >Markku Uttula Oops - good catch, I did mean %0d - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ ___ synalist-public mailing list synalist-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synalist-public - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ ___ synalist-public mailing list synalist-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synalist-public
Re: [Synalist] CR
http has rules for what characters you can send as part of the url. You need to be encoding the url, sending it, and the server needs to decode it. Read this: http://tools.ietf.org/html/rfc3986 For your case you'll change your #10 to '%0d'. -Original Message- From: jordi [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 29, 2008 3:56 AM To: Ararat Synapse Subject: [Synalist] CR Hi, I'd like to send long messages to an http server, included carriage returns using the thttpsend class. Is there a way to encode the #10 character? and use something like: data := 'http://localhost:/FirstMessage' + #10 + 'DoThis' + #10 + 'DoThat' + #10 + 'End'; if httpgettext (data, sl) then writeln (sl.text); I know this could be a stupid question, but I don't see how to do it. Thanks. - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ ___ synalist-public mailing list synalist-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synalist-public - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ ___ synalist-public mailing list synalist-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synalist-public
Re: [Synalist] How to download sources from SVN using TortoiseSVNClient?
Have a look at the SVN docs on source forge. It should answer your question: http://alexandria.wiki.sourceforge.net/Subversion+Client+-+TortoiseSVN -Original Message- From: Petr Fejfar [mailto:[EMAIL PROTECTED] Sent: Thursday, October 23, 2008 10:25 AM To: Ararat Synapse Subject: [Synalist] How to download sources from SVN using TortoiseSVNClient? Hi Lukas, I've tried to get the latest Synapse from SVN repository using TortoiseSVN client: - on URL svn://synalist.svn.sourceforge.net/svnroot/synalist/trunk/ there is no connection - on URL https://synalist.svn.sourceforge.net/svnroot/synalist/trunk/ I've been asked for user name & password. Is there anything I've missed while importing those files? Thx, Petr - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ ___ synalist-public mailing list synalist-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synalist-public - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ ___ synalist-public mailing list synalist-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synalist-public
Re: [Synalist] d2009
>I got D2009 yesterday and played around in it a bit. >Lee It's off topic for this list but I'd sure like to hear your oppinon of D2009 once you get to using it. Thanks, Jon B. - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ ___ synalist-public mailing list synalist-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synalist-public
Re: [Synalist] d2009
>D2009 (even one of last beta version) very good, and as IDE, >and as features set of language. >Kazantsev Alexey Good to hear - thanks. - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ ___ synalist-public mailing list synalist-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synalist-public
Re: [Synalist] d2009
>Main advantage D2009 not in IDE. >Main advantage D2009 in language... The IDE in D8, D2005, D2006 is so bad that nothing else matters for us. I'd have to say it's so bad I'm worried that they even put effort anywhere else. (Our project is well over a million lines of code so ymmv). - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ ___ synalist-public mailing list synalist-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synalist-public
Re: [Synalist] d2009
So how is D2009? I've really lost faith in Delphi over the last decade since D8, 2005, and 2006 are so buggy for me I can hardly use them. All I really care about is whether the IDE is stable or not. -Original Message- From: Lukas Gebauer [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 01, 2008 7:20 AM To: Ararat Synapse Subject: Re: [Synalist] d2009 Progress with D2009 adoption is good. Today I can made basic HTTP operations in this Delphi versions. However really all code must be revisited. -- Lukas Gebauer. E-mail: [EMAIL PROTECTED] http://synapse.ararat.cz/ - Ararat Synapse - TCP/IP Lib. - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ ___ synalist-public mailing list synalist-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synalist-public - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ ___ synalist-public mailing list synalist-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synalist-public
Re: [Synalist] Problem with USB-RS232 adapter
I know several of the USB to serial converters have "configuration applications" that let you control what happens everytime you plug and unplug the adapter. You should install that config app and look for the settings that control the enumeration. You want to set it to "always use the same name/port/id." -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Markku Uttula Sent: Monday, July 28, 2008 11:16 AM To: Ararat Synapse Subject: Re: [Synalist] Problem with USB-RS232 adapter Petr Fejfar wrote: >> The strange thing is everything works fine with Hyper Terminal...I can >> disconnect and then reconnect the adapter and I can send manual >> commands to the external device with HyperTerminal and receive the >> proper data. > > Did you check what is a difference between HyperTerminal > vs. Synapse port settings/manipulation including > handshake signals in the shut-down time? Furthermore, just a thought, would you be able to somehow monitor what actually goes about "on line"? Just in order to see whether there is a difference in how Synapse and HyperTerminal handle the port? Unfortunately, I don't have a suggestion into *how* this could be done; my experience with terminals is very limited :( -- Markku Uttula - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ ___ synalist-public mailing list synalist-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synalist-public - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ ___ synalist-public mailing list synalist-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synalist-public
Re: [Synalist] Serial comms with cash drawer.
This brings back memories. About 25 years ago I did a cash drawer controller. Back then there were no RS-232 drawers but there were solenoid based drawers. Anyway, I used a small microswitch mounted in the back of the drawer to bridge two handshake lines so I could sense when the drawer was open. The switch connected DTR to RI or some such thing. To see if it was connected you would set DTR and read RI, then clear DTR and read RI. So long as DTR and RI tracked each other in both states you knew the drawer was open. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Lee Jenkins Sent: Monday, July 07, 2008 2:14 PM To: Ararat Synapse Subject: Re: [Synalist] Serial comms with cash drawer. Dave Coventry wrote: > My Bad. > > I ommitted to remove the writeln(ser.sendstring(#7)); > > Still, if anyone can suggest a way to interrogate the Cash Drawer for > it's state? > Dave, its hard to say because each cash drawer manufacturer does it a bit differently and some cash drawers do not allow for interrogating the status of the drawer. Usually, the higher end models support, from what I understand. Again, its been some time since I worked with Serial POS Peripherals and prefer to work with printer driven or keyboard wedge driven devices. Its even more difficult since you don't know the brand of your drawer. Where did you get the cash drawer? I would have suggested you check out OPOS (http://en.wikipedia.org/wiki/OPOS) but last time I checked, I don't think Lazarus supports ActiveX/COM which OPOS is based on. -- Warm Regards, Lee - Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! Studies have shown that voting for your favorite open source project, along with a healthy diet, reduces your potential for chronic lameness and boredom. Vote Now at http://www.sourceforge.net/community/cca08 ___ synalist-public mailing list synalist-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synalist-public - Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! Studies have shown that voting for your favorite open source project, along with a healthy diet, reduces your potential for chronic lameness and boredom. Vote Now at http://www.sourceforge.net/community/cca08 ___ synalist-public mailing list synalist-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synalist-public
Re: [Synalist] FreePascal + HTTP Server demo = bug
>Actually NO, because FPC has a bug with LastError when using threads... I missed that. What's the bug? - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php ___ synalist-public mailing list synalist-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synalist-public
Re: [Synalist] FreePascal + HTTP Server demo = bug
>You are going to need to get windows to reuse the ephemeral ports >faster than it normally will reuse them. I think it's default reuse >timeout is about 60 seconds or more. Nope, it looks like 120 seconds: TCPTimedWaitDelay in the registery is 120 secs Google TCPTimedWaitDelay and read, read, read. http://www.microsoft.com/technet/prodtechnol/windows2000serv/reskit/regentry/58811.mspx?mfr=true - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php ___ synalist-public mailing list synalist-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synalist-public
Re: [Synalist] FreePascal + HTTP Server demo = bug
>Well, and have you raised maximum user socket count in your registry? It >is 4096 on most windows systems... >Lukas Gebauer. A snip from: http://www.ncftp.com/ncftpd/doc/misc/ephemeral_ports.html * Windows uses the traditional BSD range of 1024 through 4999 for its ephemeral port range. Unfortunately it appears that you can only set the upper bound of the ephemeral port range. Here is information excerpted from Microsoft Knowledgebase Article 196271: * Start Registry Editor (Regedt32.exe). * Locate the following key in the registry: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters * On the Edit menu, click Add Value, and then add the following registry value: Value Name: MaxUserPort Data Type: REG_DWORD Value: 65534 Valid Range: 5000-65534 (decimal) Default: 0x1388 (5000 decimal) Description: This parameter controls the maximum port number used when an application requests any available user port from the system. Normally, ephemeral (that is, short-lived) ports are allocated between the values of 1024 and 5000 inclusive. * Quit Registry Editor. Note: There is another relevant KB article (812873) which claims to allow you to set an exclusion range, which could mean that you could exclude ports 1024- (for example) to have the ephemeral port range be 1-65534. However, we have not been able to get this to work (as of October 2004) * You are going to need to get windows to reuse the ephemeral ports faster than it normally will reuse them. I think it's default reuse timeout is about 60 seconds or more. Google ephemeral ports and read, read, read. - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php ___ synalist-public mailing list synalist-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synalist-public
Re: [Synalist] FreePascal + HTTP Server demo = bug
Okay, I'm not familiar with the testing tool you are using but I'll take a guess here. Go to MSDN and look of the "linger" structure for sockets. Read up on it. Hopefully it's here: http://msdn.microsoft.com/en-us/library/ms739165(VS.85).aspx also have a read of this: http://msdn.microsoft.com/en-us/library/ms738547(VS.85).aspx >Changed from 10 to 1 at SetLinger May not be what you want if high load servicing is what you are after. You probably don't want ungracefull closes (linger < 1000) but you probably can't afford to give the network 10s to get things closed gracefully). Read up on it and figure out what you really want. That said it would be nice to tinker with your test to get a handle on what is causing the trouble (I'm betting it's Windows, but that's my bias). >The result: >C:\programacao\proxy>openload 192.168.1.20 >URL: http://192.168.1.20:80/ >Clients: 5 >MaTps 254.96, Tps 254.96, Resp Time 0.019, Err 0%, Count 257 >MaTps 255.86, Tps 264.00, Resp Time 0.019, Err 0%, Count 521 ... >MaTps 258.92, Tps 245.28, Resp Time 0.020, Err 0%, Count 3928 Are you saying you formed 3928 connections in about 4 seconds? Running 5 clients in parallel that connect, get some data, disconnect? Wow. Try this: Set Linger down to 1000ms (1 Sec). Should work great on your LAN. Put a delay in your test. For all five clients: connect, get some data, disconnect, delay 2 seconds. Rerun the test and report what you get. Need more load? Increase the number of clients, don't decrease the delay. Good luck. - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php ___ synalist-public mailing list synalist-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synalist-public
Re: [Synalist] Borland languages/tools FINALLY SOLD!
>After all, with D7, K3, Synapse, and a few other libs, what >else do we need?! Just a bit more free time! So much fun to be had, so little time... <>- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone___ synalist-public mailing list synalist-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synalist-public
Re: [Synalist] Borland languages/tools FINALLY SOLD!
>So, now that Borland finally sold off the languages/IDEs/tools >division, is anyone else getting nervous about their next >re-installation of a language/IDE newer than D5, that needs to >"phone home" for license authentication? As a D7 owner this has scared the heck out of me for a long time. Seeing the IDE's news pop up go cold a few years ago was the writing on the wall - CodeGear doesn't have the dedication to keep things like that alive. If it tanks I'll never consider buying anything from them again - for any reason. - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone ___ synalist-public mailing list synalist-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synalist-public
Re: [Synalist] Getting all IP Addresses on a computer
That was it, thanks! -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Andreas Berger Sent: Friday, April 18, 2008 6:40 AM To: Ararat Synapse Subject: Re: [Synalist] Getting all IP Addresses on a computer Use ResolveNameToIP like this: procedure ResolveIPs(var ipList : TStringList) var TcpSock : TTCPBlockSocket; begin TcpSock := TTCPBlockSocket.create; TcpSock.ResolveNameToIP(TcpSock.LocalName, ipList); TcpSock.Free(); end; Jon Bertrand wrote: > As I recall there is a function in Synapse that returns all of the IP > addresses held by a computer that has multiple network interfaces. I just > can't remember what the function name is... Anybody know? > > > Thanks, > > Jon B. > > - > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save $100. > Use priority code J8TL2D2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > ___ > synalist-public mailing list > synalist-public@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/synalist-public > > > - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone ___ synalist-public mailing list synalist-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synalist-public - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone ___ synalist-public mailing list synalist-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synalist-public
[Synalist] Getting all IP Addresses on a computer
As I recall there is a function in Synapse that returns all of the IP addresses held by a computer that has multiple network interfaces. I just can't remember what the function name is... Anybody know? Thanks, Jon B. - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone ___ synalist-public mailing list synalist-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synalist-public
Re: [Synalist] new Synapse release 38.
> Pingsend... We can ping from XP and Vista without being admin? How did you manage that? Lukas you are the king of networking. :) - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ synalist-public mailing list synalist-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synalist-public
Re: [Synalist] Detect Bind Port Failure
Complicated post but it sounds like you are discribing an application problem not a synapse problem. The demo app isn't checking LastError when it should. Not much you can do about that. You'd really want to find places in Synapse where it overwrites an error (or fails to read the error before calling the next function). -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Wily Dev Sent: Friday, November 16, 2007 9:29 AM To: Ararat Synapse Subject: Re: [Synalist] Detect Bind Port Failure > This is not true! Yes it is! And it really isn't that hard to find, especially when I keep pointing it out. It's also a pervasive problem affecting the entire library, with a core loss of functionality. > When you call 'bind' in server code, then it do just BIND and nothing > else! There is not any placa for any canread or others what can > replace error message. As I told you in the message, I was using the httpserv code as a common, easy-to-use base for us all to explore, diagnose, and hopefully FINALLY remedy this situation. Bind() actually DOES recognize the error, but if RaiseExcept is not set, won't do anything about it. The HTTP daemon code (like all sorts of other code) then goes directly into Listen() where it REDEFINES the previously properly set LastError (10048) to the wrong 10022 and (repeatedly) sets the FLastErrorDesc to that wrong message. THAT code definitely does call CanRead(), and it DOES hide the previous errors (almost any operation after the error will clobber the fLastError value); the same sort of thing that was happening with previous problems. (Additionally ANY SERVER that actually wants to SERVE will eventually need to LISTEN...) Instead of talking at cross-purposes, let's try to walk through an example together. This will get a *little* complicated, but hopefully we'll establish *today* whether there's a problem or not. --- I'll try to create instructions generic enough for all interested parties to try this out. Chances are I'll miss some details (I'm in a rush); hopefully they're obvious enough... Otherwise, post a message and I'll try to fill in the blanks. 1. Open httpserv in Delphi; compile it; make a copy of the httpserv.exe in another location, so that it can be run independently. This way recompiles in Delphi won't be stopped by the active program running. (Delphi can't create httpserv.exe while the very same httpserv.exe is running. 2. Let's create a breakpoint in the TTCPHttpDaemon.create method. Navigate to that routine, and place a breakpoint on the "bind('0.0.0.0', '80');" line. Also add a watch on Sock.LastError. 3. OK. Here we go. Run the separately copied httpserv and activate the server (push the button) to get an active server on port 80. Then run the copy within Delphi's IDE to the breakpoint (also pushing the button to get there). Note (for other readers) that the TTCPBlockSocket created in the HTTPDaemon.create code creates the socket *object* but does not *bind* yet. That happens in the thread's Execute setup code (just before the listening loop). 4. As we're paused on the bind('0... line, look at the Sock.LastError value in your Watch window. It should still be 0. Now let's trace into Bind(). FLastError gets reset... You can either Step Over (F8) or set a breakpoint on the line in Bind(Ip, Port : string) that says "SockCheck(synsock.Bind... " . 5. When you get to SynSock.Bind() step INTO it (F7), tracing through till you end up in SockCheck where you'll find that the SockResult parameter is -1. It then does a WSAGetlLastError AND GETS THE PROPER 10048 and Error Description. Trace back out of the routine; now we're back in TBlockSocket.Bind(). 6. Step Over till you get to ExceptCheck which we'll go INTO. (Note while we're here, that FLastErrorDesc is already correctly set, but it gets set again.) Now if RaiseExcept is not set, which it shouldn't be since we left the code alone, the PROPER error is going to be ignored and we'll pass on out of the ExceptCheck() method, and go straight into Listen()! The first thing in Listen() (SockCheck) blanks out the FLastErrorDesc that was just properly set, and then resets FLastError to 10022 AND THEN IT CONTINUES... ETC. ETC. ETC. I'M OUT OF TIME right now. I've got to go without checking what I've just written (just like I was rushing last night). Hopefully it's close enough. I'll be back in a few hours. I believe that this is enough information to fully demonstrate the issue in *this* case, and to show that it's a pervasive problem (with some other aspects) that affects the *entire* library. Lukas, I'm definitely not doing this for FUN! Please investigate what I've shown here. I'll try to help again later. - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
Re: [Synalist] problem connecting to the server
So why not sniff the traffic and see how outlook does it? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of [EMAIL PROTECTED] Sent: Wednesday, June 27, 2007 4:15 PM To: Subject: Re: [Synalist] problem connecting to the server everything u said does happen after 5-20 minutes the server response (with error i guess) and synapse fallback to plain logon (as u wrote) and then connect to the server with no problem the problem is specifically calling APOP command to the server i know u dont like to hear that but outlook express connect to this mail server really fast, but i dont know what is outlook philosophy for connecting to servers _ בתאריך 27/06/2007 23:11:55, Lukas Gebauer - [EMAIL PROTECTED] כתב: > realize it doesnt support APOP mayb synapse should use the APOP as a last > resort instead of what it does now? IMHO it waiting to timeout, because server not responding to APOP command at all. Correct will be respond at least by error! (if server response error, then Synapse fallback to plain logon if autodetection is selected.) Using APOP as last resot it big nonsence, think about it! How it can work? APOP is first resort, because it is safe compared with plain login. If it will be last resort, then you allways use weak plain login instead -- Lukas Gebauer. E-mail: [EMAIL PROTECTED] WEB: http://www.ararat.cz/synapse - Synapse Delphi and Kylix TCP/IP Library - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ synalist-public mailing list synalist-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synalist-public - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ synalist-public mailing list synalist-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synalist-public
Re: [Synalist] Using Synapse/Delphi to make a Network Service
Thank you for the help! -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Pawel Rewak Sent: Thursday, May 24, 2007 7:02 PM To: 'Ararat Synapse' Subject: Re: [Synalist] Using Synapse/Delphi to make a Network Service Hello, We have found that no service can talk to a Mapped Network drive. No matter what the login assigned is. We use UNC paths instead and change the logins to an account with the right permissions to access those UNC shares. Regards, Pawel _ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jon Bertrand Sent: Friday, May 25, 2007 6:35 AM To: Ararat Synapse Subject: [Synalist] Using Synapse/Delphi to make a Network Service Has anyone created a Network Service application with Delphi? We have an application that was a Windows service. It uses Synapse to talk to dozens of devices on a network. We just found out a Service doesn't have the rights needed to access a mapped network drive so we switched the Service to be a Network Service. Now we can't talk to the network. It seems CanRead always comes back False. Any ideas? Thanks for your help. Jon B. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ synalist-public mailing list synalist-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synalist-public
[Synalist] Using Synapse/Delphi to make a Network Service
Has anyone created a Network Service application with Delphi? We have an application that was a Windows service. It uses Synapse to talk to dozens of devices on a network. We just found out a Service doesn't have the rights needed to access a mapped network drive so we switched the Service to be a Network Service. Now we can't talk to the network. It seems CanRead always comes back False. Any ideas? Thanks for your help. Jon B. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ synalist-public mailing list synalist-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synalist-public
Re: [Synalist] Two networks cards
I forgot about the IP address in Bind. That makes great sense. Thanks for the help. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Alex Gilev Sent: Thursday, May 03, 2007 5:53 PM To: Ararat Synapse Subject: Re: [Synalist] Two networks cards Hello Jon, You must have Bind procedure in your TCP server code. This procedure exactly to specify which interface will listening on. E.g. to listen all interfaces: bind('0.0.0.0', Port) To listen only one interface: bind('192.168.192.1', Port) Full description of Bind command from synapse sources :) : Connects socket to local IP address and PORT. IP address may be numeric or symbolic ('192.168.74.50', 'cosi.nekde.cz', 'ff08::1'). The same for PORT - it may be number or mnemonic port ('23', 'telnet'). If port value is '0', system chooses itself and conects unused port in the range 1024 to 4096 (this depending by operating system!). Structure LocalSin is filled after calling this method. Note: If you call this on non-created socket, then socket is created automaticly. Warning: when you call : Bind('0.0.0.0','0'); then is nothing done! In this case is used implicit system bind instead. -- With best regards, Alex Gilev, http://www.xstarter.com Jon Bertrand wrote: > Question for all you smart network people: > > If a PC has two network interfaces and I write a TCP server which interface > is it listening on? > > How do I control which one to listen on? > - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ synalist-public mailing list synalist-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synalist-public - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ synalist-public mailing list synalist-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synalist-public
[Synalist] Two networks cards
Question for all you smart network people: If a PC has two network interfaces and I write a TCP server which interface is it listening on? How do I control which one to listen on? Thanks, Jon B. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ synalist-public mailing list synalist-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synalist-public
Re: [Synalist] Remove '(Produced by Synapse)' in MIME header of email...
>And what next will be classified by spamassasin? > Boundaries? It is neverending problem. :-( > It is like cat-mouse war, and why we are playing this game? > Is score 1.5 of one header some real problem? You are right. They look at everything. The best action is to only include what is required to get the email to flow. And what you do include should be customized to each email sender. That way one crazy spambot won't get us all labeled as spam. I removed all X header references in Indy - they are not needed. As for boundaries I changed Indy code to generate a boundary that is specific to only me and my email sending program, it doesn't look anything like the Indy boundary. For spamassasin I find most people have the threshold set at about 5.0. So 1.5 is fairly large - and it's easy to remove it. Jon B. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ synalist-public mailing list synalist-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synalist-public
Re: [Synalist] Remove '(Produced by Synapse)' in MIME header of email...
I can answer this: >Did you ask Spamassasin guys, why Spamassasin marking this legal header >as invalid? It's not invalid, it's a key indicator of spam. Must be enough people use Synapse to write spam bots that it's now considered a "1.5 point" score in spamassisin. That's why I always just hack the source to remove any consistant header "fluff". FWIW the Indy header contained something like "rkindy" and it was about 1.5 to 2.5 points. Jon B. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Lukas Gebauer Sent: Wednesday, April 18, 2007 12:46 PM To: Ararat Synapse Subject: Re: [Synalist] Remove '(Produced by Synapse)' in MIME header of email... > I'm using this excellent library to make an email client. It's pretty > cool, but I have a suggestion . When a mail sent by synapse is checked > by spamassassin, it's add 1.5 points to message due to this header line: > > Mime-version: 1.0 (Produced by Synapse) > > only mime version must be present. We can add X-Mime header and add > additional info here. Why? This is legal mime header by RFC, it is not illegal. What is best, this form of mime-version header is explicitly noted in RFC documents! Read section 4 of RFC-2045. As you can read here, I can create legal header for example like: MIME-Version: 1.(produced by Synapse)0 Yes, this header is really legal header! Did you ask Spamassasin guys, why Spamassasin marking this legal header as invalid? -- Lukas Gebauer. E-mail: [EMAIL PROTECTED] WEB: http://www.ararat.cz/synapse - Synapse Delphi and Kylix TCP/IP Library - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ synalist-public mailing list synalist-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synalist-public - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ synalist-public mailing list synalist-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synalist-public
Re: [Synalist] Remove '(Produced by Synapse)' in MIME header of email...
Indy has the same problem. I just search through the source and nuke it myself. It would be nice if it wasn't in there in the first place. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Diego Sent: Wednesday, April 18, 2007 8:29 AM To: synalist-public@lists.sourceforge.net Subject: [Synalist] Remove '(Produced by Synapse)' in MIME header of email... Hi! I'm using this excellent library to make an email client. It's pretty cool, but I have a suggestion . When a mail sent by synapse is checked by spamassassin, it's add 1.5 points to message due to this header line: Mime-version: 1.0 (Produced by Synapse) only mime version must be present. We can add X-Mime header and add additional info here. Regards!. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ synalist-public mailing list synalist-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synalist-public - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ synalist-public mailing list synalist-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synalist-public
[Synalist] UDP Multicast when there is no network connection
I have two applications (both on the same PC) that communicate using UDP multicast and TCP. If I disconnect the network cable the TCP traffic is fine but the UDP multicast traffic stops. It appears I get a Destination Unreachable on the UDP sending side. I was expecting this to work since they are in the same PC but it doesn't. Why is the network connection needed when the multicast sender and receiver are in the same PC? It's almost like Windows XP Pro doesn't have multicast routing/grouping capability. Is there some XP configuration issue I've missed? Thanks, Jon B. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ synalist-public mailing list synalist-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synalist-public
Re: [Synalist] Socket Server not freeing threads
A minor (somewhat unrelated) note: > ClientSock.SetLinger(true, 10); As I recall the 10ms specified is divided by 1000 by synapse (since windows only knows linger values in seconds) so SetLinger(true,10) is the same as SetLinger(true,0). Which (if I remember correctly) is Window's strange way of saying close the connection even if you have to loose data (don't close gracefully). For Windows you probably want SetLinger(true, 1000); Jon B. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ synalist-public mailing list synalist-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synalist-public
Re: [Synalist] outlook consider html as attachment
The most advanced part should be last. In your case that means the HTML part needs to be last. The idea was old "legacy" clients know only text and they were coded to just show the first - they will show the text version. New clients were coded to start with the last part and work their way backward - they stop and display the first part they understand. Then the only real trouble you have is clients that think they know HTML when they really don't (ccMail for example). -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of [EMAIL PROTECTED] Sent: Monday, February 19, 2007 9:44 AM To: synalist-public@lists.sourceforge.net Subject: Re: [Synalist] outlook consider html as attachment hi thank you for your response the problem is, outlook in hebrew has a bug (that MS says it isnt even though the english version works ok), so putting the html part last, makes it show gibberish is there another multipart/??? option that i can use to mayb solve this problem? (im using multipart/mixed only in case i have attachments) i want to make sure i got your email right at first u wrote: "make sure you put the text/html part last." and in the end u wrote: "So if you put text/plain last that is all you'll ever see" currently text part is last, so should it be last or before last? thanks _____ בתאריך 19/02/2007 17:33:13, Jon Bertrand - [EMAIL PROTECTED] כתב: If you do multipart/alternative emails with text/plain and text/html make sure you put the text/html part last. The Client is supposed to read the alternatives in reverse order and stop on the first one they understand and know how to display. So if you put text/plain last that is all you'll ever see. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of [EMAIL PROTECTED] Sent: Saturday, February 17, 2007 1:27 PM To: synalist-public@lists.sourceforge.net Subject: [Synalist] outlook consider html as attachment hi i have 2 parts in the email text part and html part like this: MimePart := Msg2.AddPartMultiPart('alternative', nil); tmpHTML.Text := tmphtml; Msg2.AddPartHTML(tmpHTML, MimePart); tmpHTML.Text := tmptext; Msg2.AddPartText(tmpHTML,MimePart); and it seems that outlook consider one of the parts as attachment so the receiver sees the content as it should but he also gets an attachment (im not sure if its the html part or the text part) how can this be avoided? thanks - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___ synalist-public mailing list synalist-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synalist-public
Re: [Synalist] outlook consider html as attachment
If you do multipart/alternative emails with text/plain and text/html make sure you put the text/html part last. The Client is supposed to read the alternatives in reverse order and stop on the first one they understand and know how to display. So if you put text/plain last that is all you'll ever see. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of [EMAIL PROTECTED] Sent: Saturday, February 17, 2007 1:27 PM To: synalist-public@lists.sourceforge.net Subject: [Synalist] outlook consider html as attachment hi i have 2 parts in the email text part and html part like this: MimePart := Msg2.AddPartMultiPart('alternative', nil); tmpHTML.Text := tmphtml; Msg2.AddPartHTML(tmpHTML, MimePart); tmpHTML.Text := tmptext; Msg2.AddPartText(tmpHTML,MimePart); and it seems that outlook consider one of the parts as attachment so the receiver sees the content as it should but he also gets an attachment (im not sure if its the html part or the text part) how can this be avoided? thanks - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___ synalist-public mailing list synalist-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synalist-public
Re: [Synalist] SetLinger settings
My guess: if the data is moving okay then the linger value doesn't affect the number of available sockets. I've been setting Linger to 1000 to 1 and I've had no trouble. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Coco Pascal Sent: Friday, January 19, 2007 5:29 AM To: Ararat Synapse Subject: Re: [Synalist] SetLinger settings Jon Bertrand wrote: > I think this is true: > > Windows only supports linger values in seconds (1 sec, 2 sec and so on). > Other TCP stacks use linger values in msec. If your code is to run on > windows you need a linger greater than 1000. > > Linger shouldn't affect max connections/requests because it only delays if it > has to. Assuming you have the bandwidth linger doesn't really come into play. > > Is concerns middleware mostly querying/updating databases which doesn't know what bandwidth clients have available. In case of a heavy load of small requests the number of available sockets could become a bottleneck, or not? With a greater linger , on avarage less sockets are available, or not? So , what (magiitude of) values could be set as defaults best, for windows and linux platforms? - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ synalist-public mailing list synalist-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synalist-public - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ synalist-public mailing list synalist-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synalist-public
Re: [Synalist] SetLinger settings
I think this is true: Windows only supports linger values in seconds (1 sec, 2 sec and so on). Other TCP stacks use linger values in msec. If your code is to run on windows you need a linger greater than 1000. Linger shouldn't affect max connections/requests because it only delays if it has to. Assuming you have the bandwidth linger doesn't really come into play. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Coco Pascal Sent: Wednesday, January 17, 2007 6:26 AM To: synalist-public@lists.sourceforge.net Subject: [Synalist] SetLinger settings Hello, I wondered how to set SetLinger parameters for a multithreaded appserver. I read somewhere the SetLinger(True, 1) would suit most needs on Windows. What about other platforms? I suppose that higher Linger values decrease the max connections/requests that can be made, correct? Is it meaningfull to vary Linger actively with different stress levels? Tia, Coco - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ synalist-public mailing list synalist-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synalist-public - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ synalist-public mailing list synalist-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synalist-public
Re: [Synalist] Output truncated
You have to be careful with SetLinger if you are using Windows (Winsock). Winsock only supports linger values in seconds - not milliseconds. As I recall Synapse divides this value by 1000 when you are using Winsock. So 10/1000 = 0 (integer math) so SetLinger(True, 10) really is treated as SetLinger(False, 0) and it aborts the connection and thows away any queued outbound data. It's common to say SetLinger(True, 1000) when you are on Windows. Jon B -Original Message- From: [EMAIL PROTECTED] on behalf of Lukas Gebauer Sent: Sat 12/30/2006 3:39 AM To: Ararat Synapse Cc: Subject:Re: [Synalist] Output truncated > > > To solve the problem just insert this line > > > > > > Sock.SetLinger(True, 1); > > > > Is not 1 seconds too much? > > > >From your documatation: > > Sets linger. Enabled linger means that the system waits another LINGER (in > milliseconds) time for delivery of sent data. This function is only for > stream type of socket! (TCP) > > So it waits a maximum of 10 seconds. In the worst case the tcp/ip stack > contains 64 kB of data when the SendBuffer procedure returns. So 10 > seconds are quite low on an ISDN connection. Ah, error in my mind! Very prehistoric Synapse have this value in seconds, and I forgot it! It is really in milliseconds now. See my demo (prehistrc too), and you can found here line where I setting Linger to value 10. It is really small value. Try to raise this value to yours 1 and see if it helps you. (I was setting linger on listening socket, because accepted sockets should got socket settings from listening socket. You can verify, it is this true. :-)) -- Lukas Gebauer. E-mail: [EMAIL PROTECTED] WEB: http://www.ararat.cz/synapse - Synapse Delphi and Kylix TCP/IP Library - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ synalist-public mailing list synalist-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synalist-public <>- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___ synalist-public mailing list synalist-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synalist-public
Re: [Synalist] ?????: Re: outlook and gibberish
Several years ago I wrote a mass-email program that uses Indy components. It seemed to work everywhere but Outlook so I've got a bit of experience with Outlook. I doubt Outlook is the problem. Outlook is very unforgiving about all of the smtp encoding. I've forgotten the details but as I recall you have two levels of encoding you have to follow. (Two RFC's) The first level is the "." junk related to line termination and word wrap. I can't recall what the second level of encoding is. For reference: Indy did both levels wrong (I've had to hand modify the Indy code to get it to encode correctly). If the corrupted text contains a lot of "=" signs you are doing the second level of encoding wrong (had something to do with hard returns as I recall). If the corrupted text contains a lot of boxes and such you are probably specifying your content type or character set wrong. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ synalist-public mailing list synalist-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synalist-public
Re: [Synalist] exchange server support
Have your sever admin enable pop3 on the exchange server. No way they'd do it but I thought I'd toss it out :) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Amos Sent: Sunday, December 17, 2006 7:34 AM To: synalist-public@lists.sourceforge.net Subject: [Synalist] exchange server support hi in order to use pop3 servers, i can use pop3send is there a way to handle exchange servers? thanks - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___ synalist-public mailing list synalist-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synalist-public
Re: [Synalist] busy X-mas times...
No worries! Have a good Holiday! Lukas Gebauer wrote: > Sorry, I have very busy pre-X-mas times now. I cannot resolve all your > problems immediately, please, be patient. Thank you! - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ synalist-public mailing list synalist-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synalist-public
Re: [Synalist] connection timeout
Was this a solution when using Windows? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Amos Sent: Thursday, December 07, 2006 5:11 AM To: synalist-public@lists.sourceforge.net Subject: [Synalist] connection timeout hi few weeks ago i wrote here about connection timeout problem even though there is a timeout property i was told, this has no relation to the connection timeout alex, kindly sent me his solution for this problem and i was wondering whether this changes will be added to the formal release of synapse thanks - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___ synalist-public mailing list synalist-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synalist-public
Re: [Synalist] UDP Multicast IP Address msb-lsb issue?
>try to use fixed code: >Multicast.imr_multiaddr.S_addr := SwapBytes(strtoip(MCastIP)); I changed AddMulticast() to be SwapBytes(StrToIp(MCastIP)); All the tests passed (there are 20 tests or so for UDP and 20 for TCP). I then added tests for DropMulticast() (we didn't have any) and those tests failed. I changed DropMulticast() to be SwapBytes(StrToIp(MCastIP)); and the tests all passed. Thanks for your help. Jon B. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ synalist-public mailing list synalist-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synalist-public
Re: [Synalist] UDP Multicast IP Address msb-lsb issue?
Thanks for the quick reply! It it probably worth checking all the spots that use strtoip(). Thanks again. Jon B -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Lukas Gebauer Sent: Thursday, November 30, 2006 12:38 PM To: Ararat Synapse Subject: Re: [Synalist] UDP Multicast IP Address msb-lsb issue? > S_addr is -536857804 (as an integer - or 3758109492 as an unsigned int). > > This is what I'd expect 224.0.51.52 to convert to (224 is the most > significate by I believe). I'm assuming Intel big/little endian junk > factors into the problem here. > > There is a difference between new and old code. New code doesn't > work. Is this a bug or did I miss something? You found new bug. This new code exists in latest release and I forgot to swap bytes with IP address here. try to use fixed code: Multicast.imr_multiaddr.S_addr := SwapBytes(strtoip(MCastIP)); -- Lukas Gebauer. E-mail: [EMAIL PROTECTED] WEB: http://www.ararat.cz/synapse - Synapse Delphi and Kylix TCP/IP Library - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ synalist-public mailing list synalist-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synalist-public - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ synalist-public mailing list synalist-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synalist-public
[Synalist] UDP Multicast IP Address msb-lsb issue?
Hello, We use DUnit on Delphi 2006/Windows XP to do automated unit tests on our code. We updated from release 32 (I think) to release 37 and several UDP unit tests are now failing. The unit tests are making sure that UDP multicast works. The tests are failing because an attempt to AddMulticast('224.0.51.52') is returning with a winsock 10049 error (which is something like "address unavailable/invalid"). The DUnit code is: ... // set up UDP listener mxTestUDPSocket := TUDPBlockSocket.Create; mxTestUDPSocket.Bind('0.0.0.0', C_SCRIPT_MULTICAST_PORT); mxTestUDPSocket.AddMulticast(C_SCRIPT_MULTI_CAST_BROADCAST_IP); Assert(mxTestUDPSocket.LastError = 0); ... So the assert fails because LastError is 10049 THE OLD CODE: Tracing into AddMulticast('224.0.51.52') with the code that works (release 32) shows it uses inet_addr() procedure TUDPBlockSocket.AddMulticast(MCastIP: string); begin ... Multicast.imr_multiaddr.S_addr := synsock.inet_addr(PChar(MCastIP)); Multicast.imr_interface.S_addr := u_long(INADDR_ANY); SockCheck(synsock.SetSockOpt(FSocket, IPPROTO_IP, IP_ADD_MEMBERSHIP, pchar(@Multicast), SizeOf(Multicast))); ... end; S_addr is 875757792. I guess Windows must reverse the bits in the IP address because this is backwards. Still, this is the case that works. THE NEW CODE: The new code uses a Synapse function to convert the IP dot notation to an integer. This doesn't work: procedure TUDPBlockSocket.AddMulticast(MCastIP: string); begin ... Multicast.imr_multiaddr.S_addr := strtoip(MCastIP); Multicast.imr_interface.S_addr := INADDR_ANY; SockCheck(synsock.SetSockOpt(FSocket, IPPROTO_IP, IP_ADD_MEMBERSHIP, pchar(@Multicast), SizeOf(Multicast))); ... end; S_addr is -536857804 (as an integer - or 3758109492 as an unsigned int). This is what I'd expect 224.0.51.52 to convert to (224 is the most significate by I believe). I'm assuming Intel big/little endian junk factors into the problem here. There is a difference between new and old code. New code doesn't work. Is this a bug or did I miss something? Jon B. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ synalist-public mailing list synalist-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synalist-public