Re: [twsocket] Freeing of sockets

2009-02-18 Thread Wilfried Mestdagh
Hello Markus, Release post a message to a hidden window. when the message is received Destroy is called. You can check that with the debugger. Destroy call the destructor direct. Free checks for null value and then calls Destroy. --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/t

Re: [twsocket] AV trying to download from a website

2009-03-15 Thread Wilfried Mestdagh
Hello Jeff, > I followed the example (I think!) and created the stream in DocBegin, > used it RequestDone and freed it in DocEnd - which seems logical but in > debugging I see that DocEnd comes before RequestDone. DocBegin: fires at begin of the document DocEnd: fire at end of the document Reques

Re: [twsocket] TCP connection problem

2009-04-09 Thread Wilfried Mestdagh
Hello Markus, > I haven't yet a failure message or so if a socket can't connect then onsessionconnect is fired with an error code. then onsessionclose is fired, eventually also with an error code. I assume you keep these errorcodes in an errorlog file or so. you have to give this so we can see wh

Re: [twsocket] Connection OK but no data

2009-04-22 Thread Wilfried Mestdagh
Hello Alex, Are you sure you have a working message pump? If not no event will fire. --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html http://www.mestdagh.biz Wednesday, April 22, 2009, 15:45, Alex Greenspan wrote: > I am using TWSocketServer to listen and connect to

Re: [twsocket] Connection OK but no data

2009-04-23 Thread Wilfried Mestdagh
nse. No I do not know anything about the message > pump. I started from the small sample code for the server and did not see > anything about message pump, though I have seen other references to it. How > to implement? I am using Delphi 7 by the way. > -Alex > On Wed, Apr 22, 2009

Re: [twsocket] TWsocket disconnect in 60 seconds

2009-05-01 Thread Wilfried Mestdagh
Hello Ronaldo, At first sight I see nothing wrong with your code. However it is not normal that some of the sockets close without reason. Wich of the sockets do the close? Maybe the close is with a winsock error, then it will tell you more about the reason. You have at least log all the winsock er

Re: [twsocket] TWsocket disconnect in 60 seconds

2009-05-01 Thread Wilfried Mestdagh
Hello Ronaldo, As Arno already sayed this is not a winsock error. But to be sure (because I don't see it in your code example), we are talking about the ErrCode argument in the TWSocket events, right? --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html http://www.mestdag

Re: [twsocket] TWsocket disconnect in 60 seconds

2009-05-01 Thread Wilfried Mestdagh
Hello Ronaldo, > yes, error is on TWsocket! > here is code I don't see anywere in your code logging of the ErrCode argument in the TWSocket events! So it is not sure where you get the error 5 I also see you use OnError event of TWSocketServer and use GetLastError there. Don't use OnError, instea

Re: [twsocket] TWsocket disconnect in 60 seconds

2009-05-01 Thread Wilfried Mestdagh
Hello Ronaldo, oke we are getting somewhere :) > procedure TForm3.SocketSessionClosed(Sender: TObject; ErrCode: Word); > begin {this is Socket = TWSocket} > memo1.lines.add('Proxy Disconnected from Server!'); > memo1.lines.add( Format('Error %d on SocketSessionClosed',

Re: [twsocket] TWsocket disconnect in 60 seconds

2009-05-01 Thread Wilfried Mestdagh
Hello Ronaldo, 10053 is when OS decide to stop the connection. Normally this is because of some network problem, a malfunctioning router or switch. But many virus scanners and firewalls are doing wierd things with TCP, so stop any service of it (not disable it) and test again. --- Rgds, Wilfried

Re: [twsocket] OT: WM_USER or WM_APP

2009-05-04 Thread Wilfried Mestdagh
Hello Paul, use starting from WM_USER. You don't have to worry because you send / post messages to specific windows, so the right window will receive it. WM_USER = 0x400 WM_APP = 0x8000 Windows help say: Message numbers in the second range (WM_USER through 0x7FFF) can be defined and used by an

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

2009-05-26 Thread Wilfried Mestdagh
Hello Markus, > problem here is: it's a connection to 127.0.0.1 which at least Wireshark > doesn't see. Can you recommend any other packet sniffer capable of > watching localhost connections? You can use SocketSpy (you can find it at the user made page). It works like a kind of proxy dislaying al

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

2009-05-27 Thread Wilfried Mestdagh
Hello Markus, Since it happen sometimes it is possible you have some where an exception that does not show up where you loose data. Other possibility I see you have a long lineEnd. Can you also test with 1 or 2 character? Maybe you have an untested situation. --- Rgds, Wilfried [TeamICS] http://

Re: [twsocket] TWSocket stops receiving where TClientSocket just keeps going

2009-06-05 Thread Wilfried Mestdagh
Hello Robert, To be absolutely sure if it is the sending or receiving application I suggest you put SocketSpy between it. You find it on user made page. Then we are sure in wich application is a bug and we can search deeper. --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics

Re: [twsocket] connection limit?

2009-06-17 Thread Wilfried Mestdagh
Hello Flavio, Not a known issue. But when it accept new connections after you restart your application, maybe you are out of nonpaged memory? (sockets use nonpaged). --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html http://www.mestdagh.biz Monday, June 15, 2009, 22:08

Re: [twsocket] Clients dysfunction

2009-06-23 Thread Wilfried Mestdagh
Hello Engi, How do you send your data in the server? it should be something like: for n := 0 to Srv.ClientCount - 1 do try Srv.Clients[n].SendStr('Hello again'); except end; --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html http://www.mestdagh.biz Tues

Re: [twsocket] Sending Record Type Data over tcp

2009-06-30 Thread Wilfried Mestdagh
Hello Alper, > I'm using LineMode, to receive all data sent. (My data size is 49b in total > and no string data in it) > Are there any conflicts i may encounter in the approach stated below? Yes, if your binary data contains the line end characters you use the your code will fail as Arno already

[twsocket] TSmtpCli autenication

2009-08-05 Thread Wilfried Mestdagh
Hello, I cannot test this at the moment, but if I set in TSmtpCli (ICS V5): AutType := smtpAuthAutoSelect; And fill in the userName and passWord (at creation time), is this enough that it find all possible autentication types (seems to be quit a few)? -- Rgds, Wilfried http://www.mestdagh.biz --

Re: [twsocket] TSmtpCli autenication

2009-08-05 Thread Wilfried Mestdagh
thank you Arno for fast answer, Does it not matter how the code is written (OnRequestDone), eg like this: case RqType of smtpConnect: begin Cli.Helo; end; smtpHelo: begin Cli.Mail; end; Meaning, I don't use Ehlo method or so. ---

Re: [twsocket] TSmtpCli autenication

2009-08-05 Thread Wilfried Mestdagh
> Mixed up request types with methods, guess you know what I mean > nevertheless. That's ok. Thanks for the help. --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html http://www.mestdagh.biz -- To unsubscribe or change your settings for TWSocket mailing list please goto

Re: [twsocket] Simple POP3 application

2009-11-16 Thread Wilfried Mestdagh
Hello Michael, Can you point me to the example and what exacly is going wrong? I like to help you. --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html http://www.mestdagh.biz Monday, November 16, 2009, 15:26, Kochendoerfer, Michael wrote: > I'd like to stay with ICS, a

Re: [twsocket] Simple POP3 application

2009-11-16 Thread Wilfried Mestdagh
wrote: > Wilfried, > thanks for your great support! I'd like to send you the example offline, > as soon as I'll get access to my office pc. > Michael > Wilfried Mestdagh schrieb: >> Hello Michael, >> >> Can you point me to the example and what e

Re: [twsocket] Problem on connection successful / unsuccessful handling

2009-11-19 Thread Wilfried Mestdagh
Hello Andrea, You should check in every event if there is a Winsock error. When nobody is listening then OnSessionConnected is fired with winsock error 10061. Then you know there is no connection. That is how winsock works. Use the OnChangeState only for displaying options if you need it. If you

Re: [twsocket] OverbyteIcsPingTst

2009-11-20 Thread Wilfried Mestdagh
Hello Signed, Can you ping your local machine (127.0.0.1)? Can you ping both with the command interpreter? --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html http://www.mestdagh.biz Thursday, November 19, 2009, 20:39, Signed Source® Project wrote: > Hi guys, > I have

Re: [twsocket] OverbyteIcsPingTst

2009-11-20 Thread Wilfried Mestdagh
> >From PingTst I can ping only and only localhost and it gives this. >>> .. >>> .. >>> Resolving host 'localhost' >>> Host 'localhost' is 127.0.0.1 >>> Send

Re: [twsocket] OverbyteIcsPingTst

2009-11-20 Thread Wilfried Mestdagh
d only localhost and it gives this. >>> .. >>> .. >>> Resolving host 'localhost' >>> Host 'localhost' is 127.0.0.1 >>> Sending 56 bytes to 127.0.0.1 (127.0.0.1) Received 56 bytes >>> from 127.0.0.1 in 0 msecs >>> .

Re: [twsocket] OverbyteIcsPingTst

2009-11-20 Thread Wilfried Mestdagh
is > on? > Am I missing something? > - daniel > ----- Original Message - > From: "Wilfried Mestdagh" > To: "ICS support mailing" > Cc: "Signed Source® Project" > Sent: Friday, November 20, 2009 9:41 PM > Subject: Re[2]: [twsocket] Overbyte

Re: [twsocket] Use of twsocket in thttpserver application

2009-12-08 Thread wilfried Mestdagh
Hi, >while sckCustScreen.State <> wsclosed do > Application.ProcessMessages; No, use the State property only for displaying states, not to take action. Also it is not a wise idea to put your application in a loop. Use OnClose event of the socket. It will fire when it is close; in the OnC

Re: [twsocket] Merry Christmas

2009-12-22 Thread wilfried Mestdagh
For me too a merry christmas an a happy new year!!! And for next year interesting projects -- mvg, Wilfried http://www.mestdagh.biz -Oorspronkelijk bericht- Van: twsocket-boun...@elists.org [mailto:twsocket-boun...@elists.org] Namens Signed Source® Project Verzonden: dinsdag 22 dece

Re: [twsocket] OS & TWSOCKET

2009-12-30 Thread wilfried Mestdagh
Hi, The mails are automatically sent to every subscriber on the list. If you get your mail with the same email address you will get all the mail automatically. -- mvg, Wilfried http://www.mestdagh.biz -Oorspronkelijk bericht- Van: twsocket-boun...@elists.org [mailto:twsocket-boun...@el

Re: [twsocket] Concatenate multiple UDP packets

2010-01-11 Thread wilfried Mestdagh
Hi Dave, In addition of the reply of Francois. If your receiver has no time receiving an UDP packet (for example when it arrives when your application is busy displaying it in the TRichEdit) then it will be trown away. That is nature of UDP and probably the reason that you only receive 1 packet.

Re: [twsocket] Receive function

2010-03-07 Thread wilfried Mestdagh
Hi Engi, No the Receive method is not blocking. The method copy the already received data with a maximum of what you give to it as size. -- mvg, Wilfried http://www.mestdagh.biz -Oorspronkelijk bericht- Van: twsocket-boun...@elists.org [mailto:twsocket-boun...@elists.org] Namens Engi V

Re: [twsocket] Sending Buffer size

2010-03-17 Thread wilfried Mestdagh
Hi, You use UDP and UDP respect packet boundary. So as soon winsock has receive a complete packet then it will deliver to application. -- mvg, Wilfried http://www.mestdagh.biz -Oorspronkelijk bericht- Van: twsocket-boun...@elists.org [mailto:twsocket-boun...@elists.org] Namens ed...@cl

Re: [twsocket] UDP...

2010-03-24 Thread wilfried Mestdagh
Hi, > WSocket1.Addr:='192.168.1.2'; > WSocket1.port:='9600'; > I get an error 10049. Means you cannot bind to that address. '192.168.1.2' is the address on the remote machine, you can not listen on that. > The only difference I can see is the sending local port number is not 9600. This should m

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

2010-03-25 Thread wilfried Mestdagh
Hi, It is not a bug, it is by design. The data already received is delivered to the application. The application can easy check if it is complete data by checking the line end character(s). -- mvg, Wilfried http://www.mestdagh.biz -- To unsubscribe or change your settings for TWSocket mailing l

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

2010-03-27 Thread wilfried Mestdagh
Hi, > To clarify, OnDataAvailable has received complete data, say: > help\n > In processing that data, an exception occurs and TWSocket.Abort is called to > abort the connection. Before .Abort returns, OnDataAvailable is called > again, with the exact same that was already being processed: These

Re: [twsocket] Error "Socket operation on non-socket"

2010-04-16 Thread wilfried Mestdagh
Hi Anton, Somewhere in your application a pointer is probably overwritten by something else. Not easy to fins especially if it happens only once a while. It can due to several reasons: - Filling a record with a size bigger than it is - Usage of allocated memory for something that where it is not a

Re: [twsocket] Multiple FTP Clients

2010-04-16 Thread wilfried Mestdagh
Hi Graham, Yes TFileStream will use disk. If you have only small transfers you can do as you do now. If you worry about speed then you could gain speed a lot by using pointers to your own memory location instead of TStream. -- mvg, Wilfried http://www.mestdagh.biz -Oorspronkelijk bericht--

Re: [twsocket] WSAECONNABORTED (10053) when connecting to server

2010-04-27 Thread wilfried Mestdagh
Hi Anton, Never had that issue, but can you First disable all firewall and virusscanner on the machine where you run the application and try again? -- mvg, Wilfried http://www.mestdagh.biz http://www.comfortsoftware.be -Oorspronkelijk bericht- Van: twsocket-boun...@elists.org [mailto:

Re: [twsocket] client problem

2010-05-04 Thread wilfried Mestdagh
Hi, Do you reconnect in the OnClose event? If so do it outside it by posting a message to a custom message handler. -- mvg, Wilfried http://www.mestdagh.biz http://www.comfortsoftware.be -Oorspronkelijk bericht- Van: twsocket-boun...@elists.org [mailto:twsocket-boun...@elists.org] Name

Re: [twsocket] SocketSpy to C++ Problem

2011-01-22 Thread Wilfried Mestdagh
Hi, > Sorry again, Francois told me and I missed it. > https://www.quicksilvermail.net/socketspyc.zip Glad it is solved :) -- mvg, Wilfried http://www.mestdagh.biz http://www.comfortsoftware.be http://www.expertsoftware.be > -Oorspronkelijk bericht- > Van: twsocket-boun...@elists.org [

Re: [twsocket] Trying POP3 proxy but loosing lines

2011-02-25 Thread Wilfried Mestdagh
Hello, > I fixed the problem but I don't understand why it did as what I > changed should not have chaneg anything, I only removed the > ReceiveStr() loop The design is that this method only be called 1 time in OnDataAvailable. So by calling it multiple times you are in an un

[twsocket] ICS latest version for Delphi XE

2011-03-18 Thread Wilfried Mestdagh
Hi, I just installed Delphi XE pro. Is http://wiki.overbyte.be/arch/icsv7w.zip the latest version for ICS? -- mvg, Wilfried http://www.mestdagh.biz http://www.comfortsoftware.be http://www.expertsoftware.be -- To unsubscribe or change your settings for TWSocket mailing list please goto http:/

[twsocket] property editor for LineEnd broken in Delphi XE

2011-04-17 Thread Wilfried Mestdagh
Hi, I just discovered that the property editor for LineEnd is broken using Delphi XE. No big deal for me as I always create TWSocket at runtime. I don't know how much work it is. If someone can give some hint maybe I find the time to work on it. -- mvg, Wilfried http://www.mestdagh.biz http://ww

Re: [twsocket] property editor for LineEnd broken in Delphi XE

2011-04-17 Thread Wilfried Mestdagh
Hi Arno, > It wasn't registered for the correct string type Yes this fix is working fine. -- mvg, Wilfried http://www.mestdagh.biz http://www.comfortsoftware.be http://www.expertsoftware.be -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/

Re: [twsocket] UDP receive issue from a Windows service

2011-04-18 Thread Wilfried Mestdagh
Hi Francois, > Actually the service is a dual mode service/app console and it works > perfectly well as a console application (and also as a service when a > debugger is attached). I do not understand the 'dual mode' but could that be a reason? What happens if you put your application into 1 obje

Re: [twsocket] UDP receive issue from a Windows service

2011-04-18 Thread Wilfried Mestdagh
Hi Francois, > A dual mode service is an application which detect if it run as a > service I understeand. I did the same concept years ago -- mvg, Wilfried http://www.mestdagh.biz http://www.comfortsoftware.be http://www.expertsoftware.be -- To unsubscribe or change your settings for TWSocket

[twsocket] SPF records

2011-05-02 Thread Wilfried Mestdagh
Hello, I have an SMTP server receiving mail to be send by SMS. I have to implement SPF record verification. I think with this information I can at least verify that the SMTP client who connect is the one who he claims to be. But where and how can I grab SPF records? Did somebody already written s

Re: [twsocket] SPF records

2011-05-02 Thread Wilfried Mestdagh
Hi Angus, Thank you for reply and usefull information. I'm in the stage of price for customer but if I get my hands into it there sure will be ICS example :) -- mvg, Wilfried http://www.mestdagh.biz http://www.comfortsoftware.be http://www.expertsoftware.be > -Oorspronkelijk bericht- >

Re: [twsocket] Connected when not connected

2011-05-03 Thread Wilfried Mestdagh
Hi, This is how winsock works. OnSessionConnected is fired with an error, after it OnSessionClosed is fired with or without an error. You should use the events in how to access the component. -- mvg, Wilfried http://www.mestdagh.biz http://www.comfortsoftware.be http://www.expertsoftware.be > -

Re: [twsocket] Repair Connection?

2011-05-26 Thread Wilfried Mestdagh
Hi, No you cannot repair lower layers. There could be a hardware problem or a driver problem. But I think you should be able to connect again without quit / restart the application. -- mvg, Wilfried http://www.mestdagh.biz http://www.comfortsoftware.be http://www.expertsoftware.be > -Oorspr

Re: [twsocket] Showstopped bug in ICS

2011-07-01 Thread Wilfried Mestdagh
Hi, > it is expecting that my > event handler DO receive the data (But it doesn´t) and then, it locks > up on a loop! You have to receive the available data in the OnDataAvailable event handler. This is by design. If you want to process the data in another thread then the most obvious is that you

Re: [twsocket] Memory leak in ICS Client socket

2011-07-01 Thread Wilfried Mestdagh
Hi > RecStream := TMemoryStream.Create; If you have a memory leak in this code fragment then you probably forgot to free the stream. -- mvg, Wilfried http://www.mestdagh.biz http://www.comfortsoftware.be http://www.expertsoftware.be -- To unsubscribe or change your settings for TWSocket maili

Re: [twsocket] Showstopped bug in ICS

2011-07-02 Thread Wilfried Mestdagh
> I know this is by design, but I believe that is why you have added > wsoNoReceiveLoop so we don´t have to receive data in OnDataAvailable... No this is addes to get out of a closed loop in case of users had slow code to process fast data. > software wasn´t being able to process over 150mbits of

Re: [twsocket] Showstopped bug in ICS

2011-07-05 Thread Wilfried Mestdagh
Hi Eric, > I know, but if you still call OnDataAvailable with current socket > options, > for the ones that has not set wsoNoReceiveLoop (By default) the > behaviour > will still be the same right... for the ones that has set > wsoNoReceiveLoop > (like me) OnDataAvailable will still be called, and

Re: [twsocket] TWSocket OnSessionAvailable problem

2011-07-20 Thread Wilfried Mestdagh
Hi, Maybe too many sockets in TIME_WAIT? You can chech this with netstat -a -- mvg, Wilfried http://www.mestdagh.biz http://www.comfortsoftware.be http://www.expertsoftware.be > -Oorspronkelijk bericht- > Van: twsocket-boun...@elists.org [mailto:twsocket-boun...@elists.org] > Namens mf

Re: [twsocket] how to legally close and free client

2011-07-21 Thread Wilfried Mestdagh
> When I call Client.Close the Client will be freed automatically > (destructor of Client will be called)? Yes. Sidenote: if you do this from withing an event then call CloseDelayed. -- mvg, Wilfried http://www.mestdagh.biz http://www.comfortsoftware.be http://www.expertsoftware.be > -Oors

Re: [twsocket] Socket flushing

2011-07-22 Thread Wilfried Mestdagh
> I´m having some issues with socket flushing due to the messageloop that What issues? > What is the purpose of calling MessagePump over here? Good question :) This dates from 1994... -- mvg, Wilfried http://www.mestdagh.biz http://www.comfortsoftware.be http://www.expertsoftware.be > -Oo

Re: [twsocket] Socket flushing

2011-07-27 Thread Wilfried Mestdagh
Hi Eric, TryToSend will exit if winsock returns WSAEWOULDBLOCK. I think that is the reason for the message pump call. I never used the Flush method. -- mvg, Wilfried http://www.mestdagh.biz http://www.comfortsoftware.be http://www.expertsoftware.be > -Oorspronkelijk bericht- > Van: tws

Re: [twsocket] Socket flushing

2011-07-30 Thread Wilfried Mestdagh
H Eric, > If I keep a loop like this > > while (FHSocket <> INVALID_SOCKET) and (not bAllSent) do > TryToSend; > > And TryToSend fails, will it fail everytime if I don´t call the message > pump? In this case an infinite loop would happen right? I think so yes. -- mvg, Wilfried http://www.me

Re: [twsocket] Socket flushing

2011-07-30 Thread Wilfried Mestdagh
Hi Eric, If the reason that you call the Flush method is because you want to be sure all is sent before closing the socket then you can better call ShutDown(1) method. -- mvg, Wilfried http://www.mestdagh.biz http://www.comfortsoftware.be http://www.expertsoftware.be -- To unsubscribe or change

Re: [twsocket] Socket flushing

2011-08-01 Thread Wilfried Mestdagh
Hi Arno, > Why? Do you have arguments? No, just something I recall, but it is very long time ago so I assume you are right. > I agree that Flush generally violates the async paradigm and > _might cause problems, however removing the call to MessagePump > should not make a difference. OK -- mv

Re: [twsocket] Socket flushing

2011-08-01 Thread Wilfried Mestdagh
Hi Eric, > Socket.Send(@Data[0], Length(Data)); > Socket.Close; I think this is better: > Socket.Send(@Data[0], Length(Data)); > Socket.Shutdown(1); This will send all data, telling the other end to signal to close when received. There is in your case no need to call the Flush method. -- mvg,

Re: [twsocket] Socket flushing

2011-08-01 Thread Wilfried Mestdagh
cht- > Van: twsocket-boun...@elists.org [mailto:twsocket-boun...@elists.org] > Namens Arno Garrels > Verzonden: maandag 1 augustus 2011 16:57 > Aan: ICS support mailing > Onderwerp: Re: [twsocket] Socket flushing > > Wilfried Mestdagh wrote: > > Hi Eric, > > &g

Re: [twsocket] Socket flushing

2011-08-02 Thread Wilfried Mestdagh
; actually sent (I can see it on sniffer), even on remote internet hosts > > Eric > > > > -Oorspronkelijk bericht- > > Van: twsocket-boun...@elists.org [mailto:twsocket-boun...@elists.org] > > Namens Arno Garrels > > Verzonden: maandag 1 augus

Re: [twsocket] multithread server

2011-08-17 Thread Wilfried Mestdagh
Hi, If OnDataAvailable triggers then you have to try to receive data, even if RcvdCount (wich is unreliable) returns 0. If you don't receive then OnDataAvailable will be called again in a closed loop en that is probably what happens. -- mvg, Wilfried http://www.mestdagh.biz http://www.comfort

Re: [twsocket] multithread server

2011-08-18 Thread Wilfried Mestdagh
s it normal? > What is property Multithreaded in TWServerSocket? Should it be set to > TRUE? In demo application property is set to FALSE and only client > sockets are set to TRUE. > > Now I have no idea where is problem with service hanging. Any idea > where > to look is wel

Re: [twsocket] multithread server

2011-08-18 Thread Wilfried Mestdagh
Hi Lukas, > version 1: incoming data are received in main thread and are written to > buffer of client, client has own thread to process data in buffer > version 2: data are received in client thread (in same way as in demo > thread application) Possible you have a trhead problem. Possible a thre

Re: [twsocket] Is it possible to lose an accept select message?

2011-09-05 Thread Wilfried Mestdagh
Hi, Possible you have an unhandled exception. Please put some logging code into the event OnBGException to check this, as well for the server socket as for the data (client) sockets. -- mvg, Wilfried http://www.mestdagh.biz http://www.comfortsoftware.be http://www.expertsoftware.be > -Oors

Re: [twsocket] Is it possible to lose an accept select message?

2011-09-05 Thread Wilfried Mestdagh
e an accept select > message? > > Hello Wilfried, > > Thanks for answering. > Wouldn't an unhandled exception show up in a message box? > > Henk van der Meer > Time Service > > > -Oorspronkelijk bericht- > Van: twsocket-boun...@elists.org [

Re: [twsocket] DLL implementation advice (or example)...

2011-09-08 Thread Wilfried Mestdagh
Hi Adam, > Hi - after pulling out a lot of hair Hopefully you have some reserve :) > I've spent the last couple of days tinkering with the DLL 1 example but DLL is not different from other. Only think is if you write a DLL you maybe don't know who call it. Maybe a programmer will use the DLL wi

Re: [twsocket] DLL implementation advice (or example)...

2011-09-09 Thread Wilfried Mestdagh
Hi Adam, > The problem is that the DLL is quite unstable so I was trying to use a > different approach and hoping to get better stability. Are we talking about TWSocket in your second approach? > Right now, I have the basic DLL test project running - it is connecting > to > my server but the wor

Re: [twsocket] DLL implementation advice (or example)...

2011-09-11 Thread Wilfried Mestdagh
n be used with ICS? > > Regards, Adam > > > -Original Message- > From: twsocket-boun...@elists.org [mailto:twsocket-boun...@elists.org] > On > Behalf Of Wilfried Mestdagh > Sent: 09 September 2011 09:04 > To: 'ICS support mailing' > Subject: Re

Re: [twsocket] DLL implementation advice (or example)...

2011-09-15 Thread Wilfried Mestdagh
Hi Adam, > despite tearing out some hair and losing a Hopefully you have spare :) > Result := PAnsiChar(NotesList.Strings[0]); > NotesList.Delete(0); The problem is that you give a pointer to the return value of that function to something that not exists anymore after the functions exit

[twsocket] HTTP 401 missing header line

2011-09-18 Thread Wilfried Mestdagh
Hello, I'm trying to POST to a server that needs authentication. I expect a 401 from the server with in the header something like: WWW-Authenticate: Basic Realm=/something But it is not in the response. Also what does the 'connection: close' mean? I think the THttpCli does not send an authenticat

Re: [twsocket] HTTP 401 missing header line

2011-09-18 Thread Wilfried Mestdagh
Hi Angus, Yes indeed, I found out already. The authentication is an argument in the POST command. When it is invalid or missing the server returns a 401 with the missing header line. Is that a bug in the server? -- mvg, Wilfried http://www.mestdagh.biz http://www.comfortsoftware.be http://www.e

Re: [twsocket] Hdr From and To cutting off

2011-09-21 Thread Wilfried Mestdagh
Hi, > I would like to instead use the first option and not have it cut off on > the first word. Is that possible? The result is depending on the email reader of the recipient and not predicable if you don't follow the rules. See the RFC's for header lines in emails therefore. You must build a he

Re: [twsocket] PCSensor "server"/ Simple client-server

2011-09-23 Thread Wilfried Mestdagh
Hi, > to the target server, I need to send just two bytes, 0xBB and > 0x83 You only need the HttpCli if you use HTTP protocol. Your device does not. It uses his own protocol (receiving 2 bytes - sending results). So you need to develop a simple TCP client program using TWSocket. If you need to s

Re: [twsocket] PCSensor "server"/ Simple client-server

2011-09-23 Thread Wilfried Mestdagh
Hi, > Would the demo "Client5: A basic client program using TWSocket > component." seem to you who know like an alternative good starting > point for my efforts? The good starting point is: do not copy! - Study example; then start from nothing - zero - null ! -- mvg, Wilfried http://www.mestdag

[twsocket] SSL session closed with 10053

2011-10-17 Thread Wilfried Mestdagh
Hi, This is my First SSL with THttpCli. This site requires a BASIC authentication but that is not importand here. The strange thing is I get a session closed with winsock error 10053. Nothing is sent. If I put SocketSpy in between then I also have the 10053 "in" Socketspy immediately after the cl

Re: [twsocket] SSL session closed with 10053

2011-10-17 Thread Wilfried Mestdagh
Hi Arno, Thank you. You put me on a tracé. I put a breakpunt over there, it is not the FSslEnable, but FSslContext is NIL so exeption is raised and eaten somewhere. Now my question: What is SSLContext and what should I do with it? procedure TCustomSslWSocket.StartSslHandshake; begin {$IFNDEF NO_

Re: [twsocket] SSL session closed with 10053

2011-10-17 Thread Wilfried Mestdagh
Hello SZ, Stupid question: in which unit is TSSlContext declared? I'm pulling my hair :( -- mvg, Wilfried http://www.mestdagh.biz http://www.comfortsoftware.be http://www.expertsoftware.be > -Oorspronkelijk bericht- > Van: twsocket-boun...@elists.org [mailto:twsocket-boun...@elists.org

Re: [twsocket] SSL session closed with 10053

2011-10-17 Thread Wilfried Mestdagh
Ok thx SZ :) FSslContext := TSslContext.Create(nil); HttpCli := THttpCli.Create(nil); Where and to what do I assign FSslContext to THttpCli ? -- mvg, Wilfried -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/

Re: [twsocket] SSL session closed with 10053

2011-10-18 Thread Wilfried Mestdagh
den: maandag 17 oktober 2011 15:56 > Aan: ICS support mailing > Onderwerp: Re: [twsocket] SSL session closed with 10053 > > Use HttpCli.SslContext := TSslContext.Create(nil); > Best Regards, > > SubZero > On Mon, Oct 17, 2011 at 16:06, Wilfried Mestdagh > wrote:

[twsocket] how to make browser upload a file

2011-10-31 Thread Wilfried Mestdagh
Hi, I try to upload a file in THttpSrv, but in ExtractURLEncodedvalue, I only have 'datafile' containing the filename. If I try with socketspy in between the I do not see any upload of the file (only datafile=filename.ext). So I think I'm missing something. This is the generated HTML code to uplo

Re: [twsocket] how to make browser upload a file

2011-10-31 Thread Wilfried Mestdagh
Hi, I found out if I specify enctype="multipart/form-data" it upload the file. But how do I get the file content in THttpSrv? It seems not to be with ExtractURLEncodedValue. Socketspy shows me that it upload: -265001916915724 Content-Disposition: form-data; name="data

[twsocket] HTTPS problem

2013-02-05 Thread Wilfried Mestdagh
Hello, I have a application with THttpCli posting data to a server in HTTPS. Normally I have to get back a little data and a statuscode 201. Certainly it won't work anymore. Here is nothing changed (only the internet provider and a faster VDSL line) and provider say it is still working when they t

Re: [twsocket] HTTPS problem

2013-02-08 Thread Wilfried Mestdagh
Hello Arno, Ok I will try with latest version. This is at the moment not the case. It is an old application written in Delphi 7. Normally I don't update components at the time there are a lot of commercial applications because I cannot test them all. But I have Delphi XE on another VM and will tr

Re: [twsocket] HTTPS problem

2013-02-08 Thread Wilfried Mestdagh
Ik ga dus eerst proberen in Delphi XE met latest version. > -Oorspronkelijk bericht- > Van: twsocket-boun...@elists.org [mailto:twsocket-boun...@elists.org] > Namens Arno Garrels > Verzonden: woensdag 6 februari 2013 18:47 > Aan: ICS support mailing > Onderwerp: Re: [twsocket] HTTPS proble

Re: [twsocket] HTTPS problem

2013-02-09 Thread Wilfried Mestdagh
ww.expertsoftware.be > -Oorspronkelijk bericht- > Van: twsocket-boun...@elists.org [mailto:twsocket-boun...@elists.org] > Namens Arno Garrels > Verzonden: vrijdag 8 februari 2013 17:53 > Aan: ICS support mailing > Onderwerp: Re: [twsocket] HTTPS problem > > Wilfried Mestdagh wr

Re: [twsocket] CLOSE_WAIT

2005-03-14 Thread Wilfried Mestdagh
Hello Patrick, Please talk english because this mailing list is international and otherwise most people will not understeand you.. As for you question, yes it is normal an application that close the connection windows will hold the socket for a few minutes in WAIT state. --- Rgds, Wilfried http:

Re: [twsocket] OnDataSent

2005-03-14 Thread Wilfried Mestdagh
Hello Jack, Not exacly. OnDataSent is fired when TWSocket has empty his buffer. But you are right about when it is emptied between the calls, but of course only when messages are processed. --- Rgds, Wilfried http://www.mestdagh.biz Tuesday, March 15, 2005, 00:11, Jack wrote: > Hello Francois a

[twsocket] how exclusive is twsocketclient

2005-03-17 Thread Wilfried Mestdagh
Hello, I need to check session object. to do that I save Sender of TWSocketClient. But how exclusive is this ?> Is it possible same address is returned if many connect / disconnect happens ? eg: procedure MyFormSessionConnected(Sender: TObject; Error: Word) begin Save(integer(Sender)); end;

Re: [twsocket] UDP datagramreceive periodically freezes for seconds

2005-03-17 Thread Wilfried Mestdagh
Hello Udvari, TWSocketServer does not handle UDP, only TCP. --- Rgds, Wilfried http://www.mestdagh.biz Thursday, March 17, 2005, 16:28, Udvari András László wrote: > Hi List, > I wrote a little client-server application, which measures UDP > datagram transfer speed. The server is using TWSocke

Re[2]: [twsocket] router and IP

2005-03-17 Thread Wilfried Mestdagh
Hello, > detecting whether they are using either a proxy or router > Should i ask them at setup or is it detectable? There is a lot detectable but nothing is 100% safe. Check IPhelper on overbyte.be which has lots on board. --- Rgds, Wilfried http://www.mestdagh.biz Friday, March 18, 2005, 07:5

Re[5]: [twsocket] ICS for .NET in C#

2005-03-19 Thread Wilfried Mestdagh
assembly in delphi 8 or 2005 to try it out? --- Rgds, Wilfried http://www.mestdagh.biz Saturday, February 26, 2005, 18:36, Wilfried Mestdagh wrote: > Hello Francois, > No problem I understeand. So if someone can make an assembly for me of > TWSocket in .NET please tell. If it succeed t

Re[6]: [twsocket] ICS for .NET in C#

2005-03-19 Thread Wilfried Mestdagh
sorry I was incomplete: I need TWSocket and also TWSocketServer --- Rgds, Wilfried http://www.mestdagh.biz Saturday, March 19, 2005, 20:00, Wilfried Mestdagh wrote: > Hello, > Still did not have the time for it, but probably this weekend. If > someone interested and can make an ass

[twsocket] getting the plain text part of a mail

2005-03-24 Thread Wilfried Mestdagh
Hello, I need to get plain texp part of mail, even if it for example sent in HTML. Easy to do with mimedecode component. However I have some questions: 1. It seems easy to check if mail is in plain text or HTML. Just look to the header Content-Type: witch start with eather 'multipart' or with 'te

Re: [twsocket] Newbie here

2005-03-28 Thread Wilfried Mestdagh
Hello Andy, First of all, you dont need threads if you wants to have multiple connections. All go in main thread also. Could be that you need a thread or many, but certainly not for this reason. If the encryption of the data is a lenghty operation then it can maybe in your database class. This cl

[twsocket] IMAP component with TWSocket

2005-04-04 Thread Wilfried Mestdagh
Hello, Someonw wrote already an IMAP component with TWSocket and make it free source available ? -- Rgds, Wilfried http://www.mestdagh.biz -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http:/

<    1   2   3   4   5   6   7   8   >