Re: [twsocket] TWSocket Digest, Vol 507, Issue 5

2013-01-11 Thread Markus Humm
> > Hello! > > Using HTTPCLI AsyncGET how main thread wait for the Async to download the > html code. > Code relies on input html code. If i sleep the main ui thread it will > become frozen. > > I know how to get HTML with Async via Events but i have no idea how program > it so that Main UI thre

[twsocket] Plans for ICS and iOS?

2012-10-25 Thread Markus Humm
Hello, afaik pointers are still present in next gen compiler but shouldn't be used as liberately as in the past. Only use them when necessary for certain APIs etc. But where do you have this information from? Greetings Markus -- To unsubscribe or change your settings for TWSocket mailing list p

[twsocket] SmtpCli and sending mails in international context

2012-08-02 Thread Markus Humm
Hello, > Arno wrote: > >> Humm, Markus wrote: >> Hello, >> >> fixed my Smtp problem not by specifiying UTF8 as charset and using >> AnsiToUTF8 > > It's not clear how you fixed it? > You should specify "UTF-8" as the charset if you convert mail body and > subject line etc. to UTF-8. Also set Allo

[twsocket] SmtpCli and sending mails in international context

2012-08-01 Thread Markus Humm
Hello, I used SmtpCli in one of my applications (ok still ICS V5 under D2007) and today I found out that I send all mails with charset set to iso8859-1, even when the message body later on contains japanese (ANSI). This is of course not well displayed in Outlook on the receiving site. Even changin

[twsocket] Wiki issue

2012-08-01 Thread Markus Humm
Hello, I've looked something up in the wiki today and routinely (don't do much ICS related work currently so routinely is months...) I look at the list of latest changes to see how wiki progresses. (Has anybody not yet ontributed? ;-) ) Now I saw that in the last few days > 500 bogus user accoun

Re: [twsocket] Should next ICS version support anything, before Delphi XE ?

2012-04-01 Thread Markus Humm
Hello, > And while I'm at it, I use Delphi 7 on a Windows 7 64 bit machine with > 16gig ram and have no plans at all to use Delphi XE. So count my vote as > keeping full support for Delphi 7. I just don't like the look and feel > of Delphi XE. I own it, but never use it. WHat's wrong with the

Re: [twsocket] Download manager

2012-02-25 Thread Markus Humm
> > Perry Kappetein wrote: >> Hello, >> First of all, I am new to this list, and wasn't aware that there was a >> mailinglist available. >> Hopefully someone is able to help me with this. >> >> I am working on a download manager, and using the >> HTTPMultipartdownloader component. >> >> >> For now

Re: [twsocket] Restricted ports on the Mac

2011-11-06 Thread Markus Humm
Hello Arno, I fear you misunderstood what I wrote: the one party who MUST know about this because they've created the OS X would be Apple! My suggestion was to bother their support with this as well! If you cannot find the reason in their docs then contact their support. Greetings Markus -- To

Re: [twsocket] Restricted ports on the Mac

2011-11-04 Thread Markus Humm
Hello, for developpers there is a free support form or something like this available. That one I used at least once for getting answers of some "bureaucratic" questions before starting some development. You'll get answers from them but bear in mind when asking that those who answer play a bit dum

[twsocket] VirtualTreeView

2011-09-07 Thread Markus Humm
> Message: 1 > Date: Tue, 6 Sep 2011 18:00:55 +0200 > From: "Arno Garrels" > Subject: Re: [twsocket] OT: Mustangpeak Virtual Shell Tools > To: "ICS support mailing" > Message-ID: > Content-Type: text/plain; charset="iso-8859-1" > > Angus Robertson - Magenta Systems Ltd wrote: >> Has anyone

Re: [twsocket] Send and Shutdown oddity

2011-02-15 Thread Markus Humm
Hello, either I have implemented the suggestion of confirming the reception of my shutdowncommand and only then closing the connection completely false or it's something quite curious and different: I found out now that the problem only happens under these conditions: - in my application's setup

[twsocket] Send and Shutdown oddity

2011-02-14 Thread Markus Humm
Hello, what does the event OnSentData _exactly_ signal? Does it really signal that WinSock has completed sending the data? Because in my investigations about my problem yesterday I could see that this event always fires on my sending side and reports the correct number of bytes I have sent. But in

Re: [twsocket] Send and Shutdown oddity

2011-02-13 Thread Markus Humm
> Markus Humm wrote: >> > Markus Humm wrote: >>>> >>> My application now has to tell the communication part (means the >>>> >>> server side of the TWSocket connection) to shut down. it sends him a >>>> >>> binary shutdown c

Re: [twsocket] Send and Shutdown oddity

2011-02-13 Thread Markus Humm
Markus Humm wrote: > > My application now has to tell the communication part (means the > > server side of the TWSocket connection) to shut down. it sends him a > > binary shutdown command and after a short time the client does a > > shutdown(1) on the socket. > >

[twsocket] Send and Shutdown oddity

2011-02-11 Thread Markus Humm
Hello, I'm using TSWocket and have the following problem: One client and one server running on the same PC (localhost, 127.0.0.1) use the socket as medium to transport commands. It normally works as it should but under certain conditions it fails like this: my application has to deal with Blueto

[twsocket] UPNP

2011-01-07 Thread Markus Humm
Hello Eric, could it be that some other UPNP service is still active on your PC which blocks usage of this port? Greetings Markus -- 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://

[twsocket] Detecting broken connection and reestablishing

2010-10-06 Thread Markus Humm
Hello, I've got a TWSocket with a TCP connection to some server. Now how to find out if the connection got broken and if, how to reestablish it? My current attempt is in the sending routine of mine, if not everything could be sent the connection is believed to be broken and it is closed on TWSock

[twsocket] Ping and WIndows 7 question (Markus Humm)

2010-06-26 Thread Markus Humm
Hello, problem is already solved. Was between two ears... ;-) (plugged the device I wanted to pin in the wrong switch... duh!) Greetings Markus -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our webs

[twsocket] Ping and WIndows 7 question

2010-06-24 Thread Markus Humm
Hello, assume the following: a TCP/IP based device which initially has no IP address and the assignment of an IP works by creating a static MAC address for the desired IP with the MAC address of this device. After this a ping is sent to this IP addres. The device now sees a ARP package with his M

[twsocket] Reetrancy issue with OnDataAvailable once again

2010-06-03 Thread Markus Humm
Hello, using ICS V5 under D2007 I'm having OnDataAvailable reetrancy issues once again. (and nobody explained yet to me why the message triggering OnDataAvailable is still sticking in the queue until OnDataAvailable is fully processed) My setup is a bit complex: 1. a GUI which also is a COM clie

[twsocket] Wiki

2010-05-13 Thread Markus Humm
Hello, somebody wrote ablout the wiki and free access to it. If one looks at the huge number of loginns already created for the Wiki and how few of them actually contributed already it's doubtfull that completely free access will change much if anything. Greetings Markus -- To unsubscribe or cha

[twsocket] InternalAbort causes OnDataAvailable

2010-03-28 Thread Markus Humm
hello, shouldn't the receivestr or similiar methods mark the buffer as being processed so there never ever is any need for calling OnDataAvailable again? (unless new data has been received on the socket) I just don't understand the architecture and the why it is done in this way. Greetings Mark

[twsocket] InternalAbort causes OnDataAvailable *during* the Abort call

2010-03-28 Thread Markus Humm
Hello, I never really understood why OnDataAvailable isn't called in a way which hinders such reetrancy problems. Isn't the Windows message which triggered it taken off the message queue by then? If not, why not? Greetings Markus -- To unsubscribe or change your settings for TWSocket mailing lis

[twsocket] ICS documentation

2010-03-01 Thread Markus Humm
Hello, I can only subscribe what Francois said. Another annoying this is, that many people already promised to help a bit in the wiki but didn't do it up to now. The list of registered Wiki users is already long now, but most of those didn't yet write a single page of it. What is so hard in docum

[twsocket] www.overbyte.be down?

2010-03-01 Thread Markus Humm
Hello, is it only me who get's a timeout when trying to open www.overbyte.be or is this a general problem? Greetings Markus -- 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.ov

[twsocket] Determining a correct free IP on the network

2009-10-22 Thread Markus Humm
Hello, which options do I have to determine a suitable IP address for a new device on the network? Constraints: - new device shall get a IP address - process shall be as automatic as possible - my application shall learn the IP address of this particular device, as other nodes on the net normal

Re: [twsocket] SMTPCli and COM inprocess DLL

2009-07-28 Thread Markus Humm
Hello, > > my D2007 ICS V5 based app uses SmtpCli in a COM server DLL which was > formerly a real exe file with a mostly hidden VCL main form and thus a > separate message loop. But the SmtpCli was bound to its own thread via > setting multithreaded to true and threaddetaching and threadattaching >

[twsocket] SMTPCli and COM inprocess DLL

2009-07-27 Thread Markus Humm
Hello, my D2007 ICS V5 based app uses SmtpCli in a COM server DLL which was formerly a real exe file with a mostly hidden VCL main form and thus a separate message loop. But the SmtpCli was bound to its own thread via setting multithreaded to true and threaddetaching and threadattaching it to this

Re: [twsocket] TWSocket doesn't always send my data?

2009-05-27 Thread Markus Humm
Hello, I solved the problem now (at least mostly) by creating a thread and assigning the socket to this thread. The execute of the thread is mostly a message loop. The normal case now behaves as it should, but if I try to handle a "emergency" exit command (means not the normal way to quit but som

Re: [twsocket] TWSocket doesn't always send my data?

2009-05-26 Thread Markus Humm
Hello, > > after a little reseach and useage of that recommended trial version > > found out that the data really gets sent (OnDataSent also triggers). > So we are now sure that the issue is probably located in the "other > application". The message is sent but that application doesn't see it. >

Re: [twsocket] TWSocket doesn't always send my data?

2009-05-26 Thread Markus Humm
Hello, after a little reseach and useage of that recommended trial version I found out that the data really gets sent (OnDataSent also triggers). It simply doesn't trigger OnDataAvailable on the server side without known reason. There is a 2nd TCP connection which is quite similar constructed and

Re: [twsocket] TWSocket doesn't always send my data?

2009-05-25 Thread Markus Humm
> You should use a network monitor (packet sniffer) to see if your message is > sent or not accross the network. You'll then be able to understand if the > problem is the sending side or the receiving side. > > Most of the time, transmission doesn't work when the message pump is no more > calle

Re: [twsocket] TWSocket doesn't always send my data?

2009-05-25 Thread Markus Humm
Hello, today I rewrote that part of the application but without success. It now works like this: the GUI finds that the user wants to quit. OnCloseQuery is called. Here a custom message (wm_user+100) is sentm, a flag is set and can close is set to false. In ApplicationMessages the GUI calls a com

[twsocket] TWSocket doesn't always send my data?

2009-05-20 Thread Markus Humm
Hello, I'm using V5's TWSocket in D2007 and have a strange problem which doesn't always occur but approx. 2-3 times out of 10 tries. I have two applications running on the same PC "connected" via a TWSocket TCP connection (127.0.0.1). The client side is in a COM automation DLL (I think single th

[twsocket] V7 and D2009

2009-05-09 Thread Markus Humm
Hello, where can I get a current stable version of ICS V7 and how far is D2009 support? I'm currently interested in TWSocket and in the FTP-client component as well as in the hashing functions (MD5). I haven't installed a SVN client currently. Greetings Markus -- To unsubscribe or change your

[twsocket] TCP connection problem

2009-04-10 Thread Markus Humm
Hello, I can see that the other app is listining via netstat. It says: listening Greetings Markus -- 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

[twsocket] TCP connection problem

2009-04-10 Thread Markus Humm
Hello, thanks Wilfried for your answer. Some things I can already say out of my head while the error codes I've to check. The PC is a W2K PC with no firewall and no anti virus set up since it's not connected to our company network. It has 2 network interfaces but only one is physically connected

[twsocket] TCP connection problem

2009-04-09 Thread Markus Humm
Hello, I'm wrining a 2-part application where both parts use a TWSocket to communicate with each other. The one part is started and creates a listining socket on localhost's port 8999 where the other will connect to. Now on some PCs (Windows 2000 at least in one case) this fails. The user has on

[twsocket] ICS Wiki on www.overbyte.be

2009-03-27 Thread Markus Humm
Hello, I wonder where all those people are which have a login to the ICS wiki or which expressed their wish to have on e created in the past? I do not see much action there, but I often enough feel the need for a better documentation. At least for me not all things are self explanatory and the de

[twsocket] Windows TCP connect timeout

2009-03-24 Thread Markus Humm
Hello, I've learned once that the default timeout for reporting a failed TCP connect attemp is 45 seconds for Windows? Is this correct and is there any public source about this available? Greetings Markus -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lis

[twsocket] Windows 7 Beta

2009-01-11 Thread Markus Humm
Hello, tired to download the beta from the link provided here earlier, but every time at around 330 MB size I get a broken download. This is either Firefox or a newly installed HTTP download manager named "Free Download Manager". This one just says "unknown network error". Any hints? Greetings

[twsocket] Mailing list vs. forum

2008-12-18 Thread Markus Humm
Hello, just one thing to add to the discussion: there exist moderated (NNTP) newsgroups where posts go to a moderator first and are only visible to the public after being aproved by the moderator(s). Greetings Markus -- To unsubscribe or change your settings for TWSocket mailing list please got

Re: [twsocket] Windows and events

2008-06-23 Thread Markus Humm
> Date: Sun, 22 Jun 2008 19:55:51 +0200 > From: "Francois PIETTE" <[EMAIL PROTECTED]> > Subject: Re: [twsocket] Windows and events > > Never noticed such a behaviour, but I have no KVM ! > What you tell make me thinking that the issue could arise from calling the > message pump from your event ha

[twsocket] Windows and events

2008-06-22 Thread Markus Humm
Hello, this one is slightly off topic but I like to know if ICS could be affected by this phenomen as well (didn't yet find the time to test is): I'm doing serial communications and have a timeout mechanism via timer. If the other device doesn't answer within the timer interval I send out the s

Re: [twsocket] TCP and fragmentation

2008-01-31 Thread Markus Humm
> Hello Markus, > > Fragmentation has nothing to do with ICS, it is IP issue and you cannot > influence it. Ok, understood. I just thought to have seen a flag somewhere "don't fragment". > I think if you send packets smaller than MTU then chance > is lower that you get fragmentation. Also I thi

[twsocket] TCP and fragmentation

2008-01-30 Thread Markus Humm
Hello, since the device I want to talk to does only support sending back the UDP answerts to a predefined IP thus requiring a fixed IP adress on PC side I have to experiment with TCP now. I originally used UDP because it's fragmentation free because behind the device I'm talking to sits anothe

Re: [twsocket] Question about changing some UDP application

2007-12-27 Thread Markus Humm
Hello, I fear you all haven't yet completely understood my problem, so here I go again: - my application uses UDP and must use it - there is one PC - there are up to several (can also be only be one device but that doesn't matter) hardware devices where I've no control over the firmware exc

Re: [twsocket] Question about changing some UDP application

2007-12-23 Thread Markus Humm
[snip] > >> Question: can I simply change my code so that the sending UDP socket >> also does the receiving for his connection? > > No problem. Make you socket listening and call SendTo to send any data to > the given IP/Port. At first glance, a single socket is needed for everything > provided

[twsocket] Question about changing some UDP application

2007-12-21 Thread Markus Humm
Hello, one of my application uses UDP to communicate with some hardware. UDP is necessary in this case. It is possible to have several of those devices connected to the same PC, so each has its own address. All of this hardware communication has been put into a DLL for the sake of reuse and encap

[twsocket] Wiki

2007-09-26 Thread Markus Humm
Hello, maybe some of the people around here have forgotten that a Wiki for ICS exists http://wiki.overbyte.be/wiki/index.php/Main_Page. I think it always seeks for more contributors, so just get yourself a login and start to add or revise content... Greetings Markus -- To unsubscribe or chan

[twsocket] Strange effect

2007-08-15 Thread Markus Humm
> Message: 2 > Date: Tue, 14 Aug 2007 21:55:06 +0200 > From: Markus Humm <[EMAIL PROTECTED]> > Subject: [twsocket] Strange effect > To: ICS support mailing > Message-ID: <[EMAIL PROTECTED]> > Content-Type: text/plain; charset=ISO-8859-15; format=flowe

[twsocket] Strange effect

2007-08-14 Thread Markus Humm
Hello, I have two TCP connections via separate but similar made classes which both have the nearly identical keep alive machanism implemented. A timer is constantly checking wether data was received or not and if not the socket the client has been bound to in the OnSessionAvailable will be Fre

[twsocket] SmtpClient and aborting connection

2007-05-14 Thread Markus Humm
Hello, I finally got it working now by using (and somewhat enhancing) that thread approach. I've left out the cancelling on long lasting connection attempts right now, maybe I add it later and I think I might want to do it on shutdown as well. Greetings Markus -- To unsubscribe or change yo

[twsocket] SmtpCli and the results of some tests

2007-05-13 Thread Markus Humm
Hello, I've tested one of my ideas for making SmtpCli working for me now. I've constructed a thread which will do the sending of the mail and thus does a thread attach/detach and has its own message loop. It also knows the threadid of the main program so it posts a message to it when the thread

[twsocket] SmtpClient and aborting connection

2007-05-12 Thread Markus Humm
Hello, I#ve a new idea and would like some expert opinions about it before wasting time on it: what if I put the e-mail sending in a seperate thread where the SmptCLient is bound to the thread (execute)? So it would have its own message loop which hopefully wouldn't interfere with the rest of

[twsocket] SmtpClient and aborting connection

2007-05-11 Thread Markus Humm
Hello, my COM server goes havoc when the e-mail has been sent. If the client calls some simple functions which normally would only read something from the database and return the value they fail instead. Functions which aren't really interdependant or so. I'm wondering now why. It also happens

[twsocket] SmtpClient and aborting connection

2007-05-10 Thread Markus Humm
Hello, Wilfried suggested today that I should use a timer. Basically a good idea, but how to do? The com-server's function should send the mail and either return sort of true if successfull or false if not (it actually would return the mail server's address or a empty string if not successfull

[twsocket] SmtpClient and aborting connection

2007-05-10 Thread Markus Humm
Hello, I've still or even worse trouble with this e-mail sending. maybe I should explain it more in detail what my environment is and what I want to do. Okay I have this: COM Client -> COM-Server -> ICS SmtpClient | Other application connected via TWSocket (TCP)

[twsocket] SmtpClient and aborting connection

2007-05-09 Thread Markus Humm
Hello, I'm using your SmtpClient component for sending e-mails. I'm trying to built in a failover in my application so that if the first configured mail server can't be reached a second etc. will be tried. The problem is now that I like to cancel the connect if it takes too long. timeout:=ti

Re: [twsocket] How to get the call stack programmatically?

2007-04-30 Thread Markus Humm
Hello, MadExcept does work also with Delphi 2005 and 2006 (and I suppose 2007). Greetings Markus -- 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] How to get the call stack programmatically?

2007-04-29 Thread Markus Humm
Hello, what I meant by mentioning MadExcept: it contains the source code to determine the call stack. This you could extract from madExcept and call it whenever you like. No need to raise some exception first! The full version of the FastMM memory manager contains similar code. Greetings Mark

Re: [twsocket] How to get the call stack programmatically?

2007-04-28 Thread Markus Humm
Hello, did you already try MadExcept? Afaik it comes with source or at least can be bought with it and will decipher the callstack. It's free to use for non commercial projects AFAIK. Greetings Markus -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.e

Re: [twsocket] Hash algorithm

2007-04-24 Thread Markus Humm
Hello, thanks for the info about the C++ Hash implementation. But I'm only looking for hasing some simple string to store the hash instead of a encrypted password. It will take some time till I get to it, but I wanted to be ready for it and if time permits I'll document the one I've used in th

[twsocket] Hash algorithm

2007-04-22 Thread Markus Humm
Hello, if I remember correctly ICS has a hash algorithm (MD5?) built in somewhere. Am I right on this? And if, which one and in what unit? Is it already included in V5.2x? I might want to use it and I'd be willing to spend some minutes to ducument this feature in the wiki (maybe as separate entr

Re: [twsocket] properly closing a TWSocket

2007-04-09 Thread Markus Humm
> Markus Humm wrote: > >> My problem now is that FastMM reports a memory leak when the >> application is terminated. > > The report attached says that an attempt has been detected to call > a virtual method on a freed object. That isn't a memory leak. Yes

[twsocket] properly closing a TWSocket

2007-04-09 Thread Markus Humm
Hello, my communication layer uses a TWSocket as TCP server socket and one for the actual communication as there will only be one connection at any give time. When the client requests a close of the connection I close the socket and in the OnSessionClosed I free it, because the server socket d

Re: [twsocket] Keepalive trouble

2007-04-03 Thread Markus Humm
Hello Arno, thanks for your replies! >> FreeAndNil(a); > > Oh, that's not a good idea, free it in SessionClose event. Okay, will try this. In the OnSessionClosed of that instance a, right? Since the listening server socket won't get a session closed because he has no longer control about it.

[twsocket] Wiki

2007-04-03 Thread Markus Humm
Hello, what became of all those promises to fill the Wiki? Some people also claimed to donate something ot ICS. Shouldn't they donate just a little bit of time to fill the Wiki? In case you don't know the URL: http://wiki.overbyte.be/wiki/index.php/Main_Page Greetings Markus -- To unsubscrib

[twsocket] Keepalive trouble

2007-04-03 Thread Markus Humm
Hello, I've a TCP connection (simple TWSocket, only one PC may connect) and want to implement some keep-alive now. The rest of the application seems to work well, but the keepalive killed my whole day now without much success. Currently I'm doing this in the OnSessionAvailable of the server:

[twsocket] another architectural question

2007-03-31 Thread Markus Humm
Hello, I've some application which sits between two networks. It get's queries to be carried out (not DB queries) from a PC and gets the replies from the other network. The replies are stored in a queue and shall be reported back to that PC originally asking (this is always the same PC). For c

[twsocket] Architectural question II

2007-03-20 Thread Markus Humm
Hello, regarding my question from last weekend only a part was answered so far. The thing is now: if several TTimers get fired at the same time and all of them want to write into a shared TStringList-Type buffer (okay, it's in a wrapper class), how to make sure only one at a time gets acces and

[twsocket] D2007 purchase hint

2007-03-20 Thread Markus Humm
Hello, besides to ordering the media kit one can backup the downloaded files of the installer. They're stroed in some folder under the profiles! Greetings Markus -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visi

[twsocket] Architectural question

2007-03-18 Thread Markus Humm
Hello, I've to rebuild some piece of my application because it fails after relatively short amount of time and I don't find the fault. It uses TWSockets on two occasions: one for up to ten parallel communications via UDP and one time for sending the results of these communications and for rece

[twsocket] FReadCOunt and other "bombs"

2007-02-26 Thread Markus Humm
Hello, as I found out that FReadCount wasn't prevented from overflowing I'm left now wondering if other such bombs are present in ICS V5 (esp. V5.20, can't change right now as I'm in the middsle of a search for a complex error). Any other things of that or similar types present? (just to make sur

Re: [twsocket] Slightly OT: How many of you agree that 2GB

2007-02-25 Thread Markus Humm
Hello, I'm not sure wether you know it or not, but with the new memory manager and some OS switch /3GB you can now use 3 GB instead of only two which may make the situation bearable just a little bit longer! Greetings Markus -- To unsubscribe or change your settings for TWSocket mailing list

Re: [twsocket] FReadCount and overflows

2007-02-24 Thread Markus Humm
Hello, after reading your replies (thanks for them) I'm still wondering what this means for me or what the FReadCount is really for. I had the impression that it would count all the bytes received within the session. Is that right? It's only for statistical/informative purposes? So if I commen

[twsocket] FReadCount and overflows

2007-02-23 Thread Markus Humm
Hello, while searching a serious problem in one of my apps I decided to run the affected part from the IDE. It contains two TCP Servers built with TWSocket (ICS V5.20, D2006). As I checked it this morning the debugger told me there is some integer overflow and when I looked at the line causing

[twsocket] OnSessionClosed

2007-02-14 Thread Markus . Humm
Hello, strange problem here: - two PCs connected via normal LAN - one runs my server app (simple TWSocket since the server only has to handle one connection) - the other one runs my client app (twsocket as well) - the connection is a TCP connection Normal communication is fine. I've assigned On

[twsocket] TWSocket TCP-Client address

2007-01-28 Thread Markus Humm
Hello, that with local adress I've to recheck, because I think I already looked at it and it was 0.0.0.0 In my testcase right now server and client are sitting on the same machine, but it's not necessarily so! Just for ease of develpment. Greetings Markus -- To unsubscribe or change your set

[twsocket] TWSocket TCP-Client address

2007-01-28 Thread Markus Humm
Hello, I've a TCP client socket (TWSocket) connected to a TCP-Server socket. Is there any possibility to determine the IP adress the client socket is sitting on? I don't mean to get a list of all IP adresses of that computer but simply the adress the client socket is sitting on means the IP the

[twsocket] basic e-mail questions

2006-11-26 Thread Markus Humm
Hello, I've some basic questions regarding e-mail sending from my app. preferably using ICS. I'd like to send e-mail when my app. detects a failure (not within the app. but in the hardware it monitors). I need to use the SMTP component, ok but: 1. I'm also using MadExcept which has some optio

Re: [twsocket] Telnet problems

2006-11-18 Thread Markus Humm
> Francois replied: > > I think TTnScript is the way to go. You can dynamically add/remove events > according to which "screen" you detect. If you don't use TTnScript, has a > look at his source code to understand how to get hand on the input stream to > chack for data. > > I also uploaded a modi

[twsocket] Telnet, Ping and ARP

2006-11-05 Thread Markus Humm
Hello, I'm looking for good ways to write a device configuration program using ICS. The devices to be configured can be configured via Telnet and the IP can be assigned via creating some arp entry for it and the first packet sent to the device sets its address. What I'd like to do is: - set the

Re: [twsocket] Large amount of OnDataAvailable calls

2006-11-03 Thread Markus Humm
Hello, > > procedure TServerSocket.MyOnSessionAvailable(Sender: TObject; > > ErrCode: Word); > > var news:TSocket; begin > > if not assigned(asoc) then > > begin > > try > > { We need to accept the client connection } > > NewS := self.Accept; > > > > { And then a

Re: [twsocket] Large amount of OnDataAvailable calls

2006-11-02 Thread Markus Humm
Hello, here's my OnSessionAvailable. I use TWSocket insteat of TWSocketServer because it already works and I don't want to change that part of my program. procedure TServerSocket.MyOnSessionAvailable(Sender: TObject; ErrCode: Word); var news:TSocket; begin if not assigned(asoc) then b

Re: [twsocket] Large amount of OnDataAvailable calls and timer/frozen main thread

2006-10-31 Thread Markus Humm
Hello, I tried the direct calling of the timer without succes (I think some of the affected VCL-components [like ListView and JvSimScope from JEDI] need windows messages for their updating as well). I also tried the thread based approach but without success. If I pack the ICS communication into a

[twsocket] Large amount of OnDataAvailable calls and timer/frozen main thread

2006-10-27 Thread Markus Humm
Hello, I've the following case: - VCL mainform with a timer which updates some statistics shown once a second - TWSocket as TCP-Server which gets requests from a client - if the client sends requests as a huge bulk (e.g. 10.000 requests in a relatively [not completely] tight loop) the stati

[twsocket] Wiki

2006-09-28 Thread Markus Humm
Hello, the ICS Wiki is growing now, albeit slowly. Some time ago some people on this support mailing list have claimed they would like to donate something (e.g. time) to the ICS project. Why don't they donate some time, write Francois a e-mail requesting a login to the wiki and help to fill it?

[twsocket] complex problem, probably not ICS related

2006-09-16 Thread Markus Humm
Hello, to my problem I found something out: if I disable processing of these commands up to 100.000 and more are stored in the queue, so the sending and receiving of them via ICS works well. The receiving uses a tight loop to extract all commands out of the ringbuffer and stores them in the queue

[twsocket] complex problem, probably not ICS related

2006-09-14 Thread Markus Humm
Hello, sorry, this will be just a tiny bit longer... ;-) I'm currently building some large application where several parts will act together. Two of them are connected via TCP and TWSocket. One is client and one server (okay there is TWSocketServer, but since there's always a 1:1 relation between

[twsocket] ftp client and port command

2006-09-03 Thread Markus Humm
Hello, in one app. of mine I've used your FTP-client component which works well for the local FTP-server used for testing (sitting on the same machine as the app. so communication is to 127.0.0.1 there). When I test it now with a remote FTP-server to be used later (a server of a webhoster) I can

[twsocket] TCP question

2006-09-02 Thread Markus Humm
Hello, if a client on a LAN sends a packet with e.g. 512 Bytes and TCP splits it up internaly to e.g. 4x128 Bytes will the receiver get 4x the OnDataAvailable event, or 1x with the whole 512 Byte? So needs the sender to have a larger buffer to be able to concatenate such packets before he can che

[twsocket] OnDataAvailable and Reetrancy

2006-08-31 Thread Markus Humm
> Can OnDataAvailable be called while it is > > already running? > > And if yes, how to prevent this? Is using critical > > sections a good idea here? > You must avoid having the events reentered. To avoid this, you simply > have > to _not_ call any form of the message pump from the events. The >

[twsocket] OnDataAvailable and reetrancy

2006-08-31 Thread Markus Humm
Hello, I've a server and a client app. which communicate through a TCP based protocoll I designed. The server get's requests which in OnDataAvailable are received into a 1500 Byte sized array (most time the app. will run on a LAN) whose contents is copied into a larger buffer then since the reque

[twsocket] change directory via FTP

2006-08-12 Thread Markus Humm
Hello, I need to change the directory on the server during upload of some files but didn't get much of a clue from the FTP-Demo program supplied with ICS. I'd like to do something like this: upload file 1 change to a different directory on the server upload file 2. How do I do this? Greetings

[twsocket] Design verification TCP and COM-Server

2006-08-07 Thread Markus Humm
Hello, I'm currently writing a COM-Server which also uses TWSocket for some TCP connection. When the COM-Server's client calls some initializing method on my COM-Server a TCP Socket is created which listens for a incomming connection on a certain port. There should only exist one connection over

[twsocket] FTPClient and strange behaviour

2006-07-05 Thread Markus Humm
>>> If authentication is required to issue a command the server should >>> send an error code, typically 530. >> Okay, will pay attention to it. Is there any short overview of the >> FTP-protocols available? Afaik the RFCs are a bit longish I fear. > > RFCs are the standards, there's no way aroun

[twsocket] FTPClient and strange behaviour

2006-07-04 Thread Markus Humm
Hello, > Markus Humm wrote: >> I've tried the FTPTst Application right now and found out that a PASS >> is required after a open, it will delete the file then. But why >> didn't the server tell me in my program and always claimed to have >> carried out my dele

[twsocket] FTPClient and strange behaviour

2006-07-03 Thread Markus Humm
> Message: 3 > Date: Sun, 2 Jul 2006 21:38:06 +0200 > From: "Arno Garrels" <[EMAIL PROTECTED]> > Subject: Re: [twsocket] FTPClient and strange behaviour > To: "ICS support mailing" > Message-ID: <[EMAIL PROTECTED]> > Content-Type: text/p

[twsocket] FTPClient and strange behaviour

2006-07-02 Thread Markus Humm
Hello, I'm using D2006, ICS 5 (from the Partner DVD) and Windows XP professional with a lightwight FTP-Server. I'm writing some application which is to be used to maintain a website later and for this a html-file is created on the local PC and should be transferred to the webserver using FTP. I

  1   2   >