Re: [twsocket] OnClientDisconnect on Linux
(_very_ old msg, I played with a snapshot, thought I'd drop a mail about it, and then read the backlog of msgs on this list) Does ICS work with FPC (Free Pascal Compiler) it is free and compiles to Linux and Windows (plus others)? FPC also has a Delphi compatibility mode so it will also compile Borland Pascal syntax as well as Turbo pascal and fpc pascal. It usually takes a couple of simple changes only for win32. I never really tried the Kylix branch, because it was too Linux/x86 specific to invest significant time in from a FPC perspective at the time. E.g. see the list below what it takes to get the vc32/ dir compiling with the development version of FPC/Lazarus: (and note that some are not strictly FPC problems, but exposing of broken code that is not compiled by Delphi) - Add include idoverbytedefs.inc in a few units (avltrees,httpccodzlib,zlibdll), just after the interface statement. This can be solved with cmdline parameters btw, but this is nicer. - prefixing the unit {$ELSE} clause in the uses of zlibhigh with overbyte- (FPC can't use the .o) - Under FPC TRTLCriticalSection is in unit system, and not in Windows. I'll see if I can fix that with an alias. - Added a ; to OverbyteIcsFtpCli.pas:line 1448 (and else branch of {$ifdef stream64} - commented the debughook and patchint3 reference in icsntmlssp - added a string()in smtpprot 3073. Code doesn't deserve a beauty price btw. ( pchar(#13#10) now pchar(string(#13#10)). Character sequences up to till 4 bytes are not automatically a string. - TMessageEvent is unknown. Probably some procedure of object somewhere. bug ticket opened. This compiles 40 out of 44 units in vc32. (and since they have all worked before, I assume they still do) The rest are more visually oriented and use some extra methods of tcontrols that lazarus doesn't do yet, or application object functionality that is disabled by default. If time permits I'll make a snapshot of the last beta. -- 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] OnClientDisconnect on Linux
Hi Kris, Thank you for your reply. The code is written using Borland C++ and I don't think this will solve my problem. Thank you anyway » » Juan Carlos Seguí » » Kris Leech escribió: Juan Carlos - CAE wrote: Hello everybody, This is my first post to the list. I'm porting a Windows service to Linux using the ICS components for Kylix3. I've almost finished the porting but I've a little problema that I don't know how to solve. I'll try to explain it the best I can: I've a TIcsSocketServer listening for connections on a given port. When a client connects to the server I receive an OnClientConnect event where I assign some events to the new client socket created. All seems to be ok at this point. After this the client sends some 'data' to the server that is correctly parsed in the OnDataAvailable event from the client socket. All seems to be ok again. When the client has finished his work, he closes the connection and the server receives an OnClientDisconnect event. Here is the problem: I'm not allways receiving that event. At first it seems to be all ok and I receive the OnClientDisconnect event for the first connections, but at a given point no more OnClientDisconnect events are received. I know for sure that the client closes the connections because in Windows works fine. I think the problem only affects to Linux. Recently I've updated the Linux box to a 2.6 kernel (previously was the 2.4 branch) and now the problem is more visible, I don't know why. I'm using the ICS for Kylix3 beta4 (this release has not changed for ages). Is there a new version for Kylix? Is the kylix ICS project dead or it will continue developing? Does somebody know why the ClientDisconnet event is not arriving? Does ICS work with FPC (Free Pascal Compiler) it is free and compiles to Linux and Windows (plus others)? FPC also has a Delphi compatibility mode so it will also compile Borland Pascal syntax as well as Turbo pascal and fpc pascal. Thank you very much -- 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] OnClientDisconnect on Linux
Juan Carlos - CAE wrote: Hello everybody, This is my first post to the list. I'm porting a Windows service to Linux using the ICS components for Kylix3. I've almost finished the porting but I've a little problema that I don't know how to solve. I'll try to explain it the best I can: I've a TIcsSocketServer listening for connections on a given port. When a client connects to the server I receive an OnClientConnect event where I assign some events to the new client socket created. All seems to be ok at this point. After this the client sends some 'data' to the server that is correctly parsed in the OnDataAvailable event from the client socket. All seems to be ok again. When the client has finished his work, he closes the connection and the server receives an OnClientDisconnect event. Here is the problem: I'm not allways receiving that event. At first it seems to be all ok and I receive the OnClientDisconnect event for the first connections, but at a given point no more OnClientDisconnect events are received. I know for sure that the client closes the connections because in Windows works fine. I think the problem only affects to Linux. Recently I've updated the Linux box to a 2.6 kernel (previously was the 2.4 branch) and now the problem is more visible, I don't know why. I'm using the ICS for Kylix3 beta4 (this release has not changed for ages). Is there a new version for Kylix? Is the kylix ICS project dead or it will continue developing? Does somebody know why the ClientDisconnet event is not arriving? Does ICS work with FPC (Free Pascal Compiler) it is free and compiles to Linux and Windows (plus others)? FPC also has a Delphi compatibility mode so it will also compile Borland Pascal syntax as well as Turbo pascal and fpc pascal. Thank you very much -- 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