[twsocket] ReadLine

2005-05-01 Thread Markus Humm
Hello, I'm using TWSocket for UDP communications, so far it works quite good. Now I have the problem that at one place in the program I need synchronus communication. I send out one byte and if I receive the same byte within some short timeout, I assume that the device I'm talking to has a echo

Re: [twsocket] ReadLine

2005-05-01 Thread Markus Humm
it? The timeout will be rather short anyhow (ca. 50 ms) and I think i do it with GetTickCount, which should be sufficient here and more easy to use than a at this place timer. Or is there anything bad with these ideas? Greetings Markus Humm -- To unsubscribe or change your settings for TWSocket

Re: [twsocket] ReadLine

2005-05-01 Thread Markus Humm
[snip] The thing is that the code is in a dll, so application.processmessages might not work here. Or does it? The timeout will be rather short anyhow (ca. 50 ms) and I think i do it with GetTickCount, which should be sufficient here and more easy to use than a at this place timer. Or is there

Re: [twsocket] ReadLine

2005-05-02 Thread Markus Humm
Francois Piette schrieb: Defenitely not. Depending on the network traffic, you could easily have something like one thousand messages per second in the queue. The message loop must run full speed. As I said, you must either provide a callback to the DLL to call the application's

[twsocket] Messages

2005-05-03 Thread Markus . Humm
Hello, does a sending TWSocket need to have its messages processed? If yes how is this done? A simple loop directly after sending which calls processmessages of the socket? Greetings Markus Humm -- To unsubscribe or change your settings for TWSocket mailing list please goto http

AW: [twsocket] ProcessMessages

2005-05-03 Thread Markus . Humm
There are two other components in the dll which suffer from the very same problem. One is the timer and another is one for the other communication method which doesn't have a processmessages. Obviously, you failed to have a working message pump. Do you have any hints for these

AW: [twsocket] ProcessMessages

2005-05-03 Thread Markus . Humm
- the sending TWSocket doen't need to be created in an thread because that sends at once (nearly) without the need of windows messages Wrong. Sending and receiving btoh use messages, even if in some cases it seems to be direct. So the sending part must be in another thread and call

[twsocket] Messages

2005-05-03 Thread Markus . Humm
with it? It seems I'm near the solution, but haven't got it yet. Greetings Markus Humm -- 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] Messages

2005-05-03 Thread Markus Humm
Bjørnar Nielsen schrieb: If the application does not respond to mouseclicks etc, I think something is blocking somewhere. Maybe some of the functions in the dll does not return? Is the code really running in thread-context? No. The sending is not, but I wanted to test these things right now.

AW: [twsocket] Thread Attach

2005-05-04 Thread Markus . Humm
Hello, how does TWSocket.ThreadAttach work? I don't see where have to specify the thread. Or is it to be used in TThread.Execute and then is's automatically attached to the current one? hm, curious. Now it works if I have the receiving component statically on the data module and

AW: [twsocket] Messages

2005-05-04 Thread Markus . Humm
The app. does something like this: repeat send something; wait some ms; until ende = true; This is bad design considering you are using an asynchonous component. You must replace any loop by a cascade of events. Just like any normal GUI program: you have a running message

[twsocket] Problem with FTPClient

2005-10-13 Thread Markus Humm
Hello, I'm trying to use the FTP client to upload a file onto my local ftp server (ip 127.0.0.1). My browser can connect to it and your demo program seems to work well enough as well. I borrowed some code of it, but I keep getting an 10049 error when I try to connect. The message is:

[twsocket] TWSocket and Close problem

2006-01-31 Thread Markus Humm
Hello, (now writing from my other account) just to clarify some things: - I want the socket to be closed and freed at this point, because the DLL who provided communication via sockets for the other levels is unloaded and opening or closing communication channels is done rather seldom in

Re: [twsocket] TWSocket Digest, Vol 154, Issue 8

2006-02-01 Thread Markus Humm
Hello Markus, This is done because each thread does more things than just sending receiving. The message was meant because many people think they need a thread per communication TWSocket channel. So I assume you have your own reason to have a thread. What you can do is Create and

Re: [twsocket] TWSocket Digest, Vol 155, Issue 3

2006-02-06 Thread Markus Humm
friday afternoon I outlined my new approach. Before implementing it I'd like to know if packing all creating and closing stuff in a dedicated thread (one for all sockets) with a message pump is okay (should work if implemented with some care). Yes, it is OK. BUT make sure your code is

[twsocket] Message Loop

2006-02-07 Thread Markus Humm
Hello, my thread's execute method would look like this now: var msg:TMsg; begin while not terminated do begin case myaction of acreate: here I'd create a new connection and then status will be anothing again aclose: here I'd close a open connection and then

[twsocket] Still dll trouble

2006-03-25 Thread Markus Humm
Hello, now as I have sokme time to visit my dll problem again I recoded the whole thing according to your suggestions which I do appreciate. But it nevertheless crashes, although not as often as before. A TeabB member already told me that I shouldn't create and destroy my global dll thread I'm

Re: [twsocket] TWSocket Digest, Vol 161, Issue 19

2006-03-26 Thread Markus Humm
Now I wrote a simple test program which Loadlibraries the dll, waits some ms and freelibraries it then and waits another few ms. This is done up to 1000 times to check whether it works or not. if only done a few times all is well, but when really trying to do it 1000x it crashes (the app

[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

[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 twsocket@elists.org Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=iso-8859-1 Markus Humm wrote

[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 delete request? If authentication is required

[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] 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] 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

[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 message

[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

[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] 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

[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] 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

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

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

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 associate this

[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] 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 modified

[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

[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

[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

[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

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

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

[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

[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

[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

[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] 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

[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:

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] 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

[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

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

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

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

[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.

[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-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

[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

[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] 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

[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

[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

[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 twsocket@elists.org Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=ISO-8859-15; format=flowed Hello, I have two TCP

[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

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

[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

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 think on a

[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

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 handler.

[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

[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] 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

[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

[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

[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

[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] 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

[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

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

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 called or

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

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. How do

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 some

[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

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 it

[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

[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

[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

[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

[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

[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

[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

[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

[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

[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

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. There's most likely something wrong in your

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 command and after a short time the client does a shutdown(1) on the socket. There's most

[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

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] VirtualTreeView

2011-09-07 Thread Markus Humm
Message: 1 Date: Tue, 6 Sep 2011 18:00:55 +0200 From: Arno Garrels arno.garr...@gmx.de Subject: Re: [twsocket] OT: Mustangpeak Virtual Shell Tools To: ICS support mailing twsocket@elists.org Message-ID: E22C655C09334363BBD211D7B318FF48@asus Content-Type: text/plain; charset=iso-8859-1

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

  1   2   >