Re: [twsocket] 64 bit NNTP Article IDs

2011-12-31 Thread Piotr Dałek
that assume 32bit integers will probably get only a tons of warnings, but should work as long as the actual values are within signed 32-bit integer boundaries. -- Piotr Dałek enigmati...@interia.pl -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org

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

2011-09-22 Thread Piotr Dałek
) data is transferred. -- Piotr Dałek enigmati...@interia.pl --- Nie licz na ZUS, zadbaj o swoja przyszlosc! http://linkint.pl/f2a40 -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman

[twsocket] Connected when not connected

2011-05-03 Thread Piotr Dałek
things, GetPeerPort and GetXPort which results in exceptions because socket is not actually connected. -- Piotr Dałek enigmati...@interia.pl - Dzwon tanio! Sprawdz http://linkint.pl/f29a1 -- To unsubscribe or change your settings

Re: [twsocket] Connected when not connected

2011-05-03 Thread Piotr Dałek
is NOT enough to check whether it is actually connected or not? -- Piotr Dałek enigmati...@interia.pl - Zapytaj wrozke! Sprawdz http://linkint.pl/f29a2 -- To unsubscribe or change your settings for TWSocket mailing list please goto http

Re: [twsocket] Connected when not connected

2011-05-03 Thread Piotr Dałek
of disaster? Catch the error code in OnSessionConnected and (using some kind of PostMessage) display actual error message outside OnSessionConnected? -- Piotr Dałek enigmati...@interia.pl - Dzwon tanio! Sprawdz http://linkint.pl/f29a1

Re: [twsocket] TWSocketServer: how to make it listening to

2010-11-27 Thread Piotr Dałek
fatal). -- Piotr Dałek enigmati...@interia.pl Nie polegaj na drogowcach #8211; sam zaskocz zimę i ZMIEŃ OPONY! SprawdĹş http://linkint.pl/f286e -- To unsubscribe or change your settings for TWSocket mailing list please goto http

Re: [twsocket] TWSocketServer: how to make it listening to

2010-11-26 Thread Piotr Dałek
derived from TWSocketServer that would accept such input and leave original TWSocketServer untouched. Just my 5€. -- Piotr Dałek enigmati...@interia.pl -- Chcesz więcej zarabiać? ZmieƄ pracę na lepszą! http://linkint.pl/f2849 -- To unsubscribe

Re: [twsocket] OpenSSL 1.0

2010-08-24 Thread Piotr Dałek
them instead the ones provided by ICS itself and gain sometimes huge performance advantage. -- Piotr Dałek enigmati...@interia.pl http://www.hellcore-mailer.pl -- Najlepsza wyszukiwarka tanich lotow! Sprawdz http://linkint.pl

Re: [twsocket] Proposal for more contenttypes in DocumentToContentType in OverbyteIcsHttpSrv.pas

2009-09-13 Thread Piotr Dałek
' In my opinion, such things shouldn't be kept in component's source code. There should be external (or stored as resource) configuration file that contains all extension-content type pairs. -- Piotr Dałek enigmati...@interia.pl

Re: [twsocket] Package Count / Wireshark

2009-09-10 Thread Piotr Dałek
all your RETR/ARTICLE requests in just one outgoing packet). -- Piotr Dałek enigmati...@interia.pl -- Praca za granicą? Zobacz oferty! http://link.interia.pl/f2331 -- To unsubscribe or change your settings for TWSocket mailing

Re: [twsocket] Ipv6

2009-07-15 Thread Piotr Dałek
: -- Piotr Dałek enigmati...@interia.pl -- Bezpłatne konto? Otwórz tutaj! http://link.interia.pl/f225a -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo

Re: [twsocket] FileMD5 : Different Hash Result - same

2009-06-24 Thread Piotr Dałek
. -- Piotr Dałek enigmati...@interia.pl -- Dobra czy zla wiadomosc? Zawsze warto oszczedzac. Teraz 5,5%. Sprawdź http://link.interia.pl/f221b -- To unsubscribe or change your settings for TWSocket mailing list please goto http

Re: [twsocket] FileMD5 : Different Hash Result - same File ondifferent workstation

2009-06-23 Thread Piotr Dałek
This *might* be also a sign of corrupted RAM or failing motherboard, especially if you get different hashes every time. -- Piotr Dałek enigmati...@interia.pl -- Przekaz dalej wiadomosc: Zawsze warto oszczedzac

Re: [twsocket] TWSocket Digest, Vol 321, Issue 4

2009-05-14 Thread Piotr Dałek
-- Piotr Dałek enigmati...@interia.pl -- Dzwonki na komorkę! Sprawdz http://link.interia.pl/f2161 -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo

Re: [twsocket] TIcsLogger proposal

2009-05-08 Thread Piotr Dałek
. -- Piotr Dałek enigmati...@interia.pl -- Wygraj 3000 zl, wycieczke lub lot balonem! Sprawdz http://link.interia.pl/f2154 -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi

Re: [twsocket] TIcsLogger proposal

2009-05-08 Thread Piotr Dałek
is and has been always used. However the format string must IMO not be concatenated before the call to FormatDateTime unless speed doesn't matter. Then concatenate it once in property's setter. -- Piotr Dałek enigmati...@interia.pl

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

2009-03-13 Thread Piotr Dałek
something like if HttpCli.RcvdStream=nil then ShowMessage('RcvdStream is NIL, click OK to crash.'); before sl.LoadFromStream(HttpCli.RcvdStream); to check whether that's the case. -- Piotr Dałek enigmati...@interia.pl

Re: [twsocket] MboxProxy available for download

2009-02-19 Thread Piotr Dałek
Hello! Interesting stuff, but your site looks down... Works for me. (?) Direct URL: http://branchware.ovh.org/files/mboxproxy.7z (123kB) -- Piotr Dałek enigmati...@interia.pl -- Promocja w Speak Up. Kurs angielskiego za

[twsocket] MboxProxy available for download

2009-02-18 Thread Piotr Dałek
regarding MboxProxy directly to me (email below). -- Piotr Dałek enigmati...@interia.pl -- Promocja w Speak Up. Kurs angielskiego za darmo. Liczba miejsc ograniczona. Sprawdź! http://link.interia.pl/f205c -- To unsubscribe

Re: [twsocket] tHttpCli ~ firewall software problem

2009-01-30 Thread Piotr Dałek
. Once I added my apps to trusted applications, I have no problems with recompiling and running them from IDE or standalone. -- Piotr Dałek enigmati...@interia.pl --- Promocja w Speak Up. Kwartal angielskiego za darmo. 3 miesiace

Re: [twsocket] Pause and Resume just not working!

2009-01-23 Thread Piotr Dałek
having received OnDataSent event - you say hey, I have some more data to send, send them when you'll deal with all previous data, and tell me, by firing OnDataSent, when you'll send *all* data - the previously ordered to send *and* the new data. HTH. -- Piotr Dałek enigmati...@interia.pl

Re: [twsocket] Pause and Resume just not working!

2009-01-23 Thread Piotr Dałek
Hello! HI Piotr Dałek, yes you are right with your argumentation. I am using TWSocket in a manner generally not allowed, cause message processing and so on is not assured. And we can stop right here. Since I'm a ICS V5 user, I cannot answer to your but's - maybe something has changed in ICS

Re: [twsocket] OverbyteIcsMimeUtils.pas - DoFileEncBase64

2009-01-21 Thread Piotr Dałek
, however only with ShareMode fmShareDenyWrite). var LocalStreamSize: integer; [..] LocalStreamSize := Stream.Size; [..] More := Stream.Position LocalStreamSize; [..] Problem solved. -- Piotr Dałek enigmati...@interia.pl

Re: [twsocket] OverbyteIcsMimeUtils.pas - DoFileEncBase64

2009-01-21 Thread Piotr Dałek
Hello! Piotr Dałek wrote: Hello! A reliable way to calculate More was More := Stream.Position Stream.Size; however that is slower since Stream.Size has to seek to the end of the stream and the back to current position on each call of DoFileEncBase64(). (Instead of Stream.Size we could

Re: [twsocket] OverbyteIcsMimeUtils.pas - DoFileEncBase64

2009-01-21 Thread Piotr Dałek
, no matter what! So why should you care about size change, if you don't care about actual file changes? I don't think that you're going to support *that* scenario. -- Piotr Dałek enigmati...@interia.pl -- Promocja w Speak Up. 3

Re: [twsocket] OT: openssl

2008-11-17 Thread Piotr Dałek
and pressing enter. -- Piotr Dałek [EMAIL PROTECTED] Dzwon tanio do wszystkich! Sprawdz http://link.interia.pl/f1f93 -- 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

Re: [twsocket] Proposal to replace TIniFile by TRegIniFile in all

2008-11-09 Thread Piotr Dałek
: IniFile.WriteString('Settings', 'LastFile', UTF8Encode(filename)); filename:=UTF8Decode(IniFile.ReadString('Settings', 'LastFile', '')); -- Piotr Dałek [EMAIL PROTECTED] -- Konkurs! Wygraj telewizor LCD! Sprawdz

[twsocket] Can't send data with SSL enabled

2008-10-12 Thread Piotr Dałek
[..]) returns success but data aren't really sent (checked with external sniffer), and I get no notification of data being sent out. SSL'ised versions of TPop3Cli and TSmtpCli don't work either. Any ideas what may be wrong? I'm struggling with this for two days now. ICS V5. -- Piotr Dałek [EMAIL

Re: [twsocket] Can't send data with SSL enabled

2008-10-12 Thread Piotr Dałek
Hello! Piotr Dałek wrote: Hi! This drives me crazy. I can estabilish standard, unencrypted connection with any non-SSL server and successfully transfer data, and I can estabilish unencrypted connection, estabilish SSL/TLS session (via means similiar to STARTTLS in POP3/SMTP

Re: [twsocket] Converting memorystream to string?

2008-08-14 Thread Piotr Dałek
(wastes time and memory). Use this: SetLength(s, LoginSocket.RcvdStream.Size); Move(TMemoryStream(LoginSocket.RcvdStream).Memory^, pointer(s)^, LoginSocket.RcvdStream.Size); -- Piotr Dałek [EMAIL PROTECTED] -- Prosty kredyt na

Re: [twsocket] Interesting multithreading issue: race condition when triggering an event handler

2006-08-06 Thread Piotr Dałek
Hello! I've found an interesting multithreading issue which is related not only to ICS component but many many other components I've seen so far. It is a race condition between two thread where one is triggering an event handler and the other is removing (setting to nil) the event handler.

Re: [twsocket] Interesting multithreading issue: race condition when triggering an event handler

2006-08-06 Thread Piotr Dałek
Hello! I've found an interesting multithreading issue which is related not only to ICS component but many many other components I've seen so far. It is a race condition between two thread where one is triggering an event handler and the other is removing (setting to nil) the event

Re: [twsocket] HTTP/1.1 pipelining--any need?

2006-07-29 Thread Piotr Dałek
Hello! If you look at the rfc, the requests are meant to be executed serially. The responses must be provided in the same sequence as the requests. This doesn't mean that each request can't be executed by a separate thread. As I said, responses has to be serialized to be sent in the

Re: [twsocket] Message-Id is not valid, according to RFC 2822

2006-07-18 Thread Piotr Dałek
Hello! Is there something I can do to pacify X-Spam? Remove that space (the one between Roland and Couvela). Shall we modify function GenerateMessageID? Something like: Do whatever you please... -- Piotr Dalek [EMAIL PROTECTED]

Re: [twsocket] Message-Id is not valid, according to RFC 2822

2006-07-17 Thread Piotr Dałek
Hello! Thank you, Arno, for your help, project now working, but on sending myself a message I get back X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on as002.apm-internet.net X-Spam-Report: * 1.7 INVALID_MSGID Message-Id is not valid, according to RFC 2822 [..] Message-ID:

Re: [twsocket] ICS V6 Http Post problem

2006-03-31 Thread Piotr Dałek
Hello! I always loved the Pascal way of obfuscating code with those complicated mix of @ pchar ^ and other funny notation as soon as you need to play with pointers and direct data memory access... It's complicated only when you don't use it often. Otherwise it requires a bit more

Re: [twsocket] Server problem (leaking memory)

2006-03-21 Thread Piotr Dałek
Hello! I saw some leaks in older Delphi versions when I didn't finalize (may be due a mistake I made when I was a beginner?). Seems so. Here (D3Prof) everything works properly, no leaks. Since this time I don't really on Delphi and free dynamic record members manually. And you don't get

Re: [twsocket] Server problem (leaking memory)

2006-03-21 Thread Piotr Dałek
Hello! Since this time I don't really on Delphi and free dynamic record members manually. And you don't get AVs and/or Invalid Pointer Operation exceptions? No problemo. Finalize(P^); or AString := ''; Dispose(P); Hint: Dispose acts as Finalize+FreeMem. No need to finalize records

Re: [twsocket] twsocket cpu usage

2006-03-16 Thread Piotr Dałek
Hello! Is there a way to limit the cpu usage when receiving files thru TWsocket? Usualy CPU is 90-100% used and the computer freezes for the time the transfer is made. If you write in a random sized chunks (especially byte-per-write), use some kind of write-buffering filestream (AFAIR Arno

Re: [twsocket] Charset in Mail header

2006-03-08 Thread Piotr Dałek
Hello! Is it possible, what I want to do? Because, now I have in header line like this: Content-Type: multipart/related; type=multipart/alternative; boundary==_NextPart_000_0048BF3A_0.5597F664 But, I need to add something like this: Content-type: text/html; charset=iso-8859-2 If I

Re: [twsocket] Running on W95

2006-02-28 Thread Piotr Dałek
Hello! Found update for sr1 and winsock 2 for W95 on the microsoft-pages. First hit after searching for winsock on the download-page. After upgrading, ICS works again. For my part I think it's ok that it works if the updates are aplied. Installing Winsock 2 is a good idea also for other

Re: [twsocket] Running on W95

2006-02-28 Thread Piotr Dałek
Hello! You already know what was the problem, but I'll answer this one anyway: version of winsock.dll located in your %windir%. If it is 4.00.950, you've got Winsock 1, Winsock 2 is 4.10.1656 (at least at my Win95 installation). My winsock.dll is version 4.00.. If what you say is

Re: [twsocket] Running on W95

2006-02-27 Thread Piotr Dałek
Hello! I have trouble with running an exe that uses the the THttpCli component on a W95. It works on W98 and later. And it works also on earlier versions of ICS, but not the latest beta. I get this error-message in ReasonPhrase in OnRequestDone: Can't connect: No error (Error #0)

Re: [twsocket] OT: ICS' position on Borland sale

2006-02-24 Thread Piotr Dałek
Hello! Whenever Delphi is sold I think actual version of Delphi and ICS will permit to continue make programs for some years. Exactly. Since Delphi isn't some kind of interpreter and also isn't closed environment, extending RTL to accomodate OS changes is still possible. If there will be no

Re: [twsocket] Sending directly, not via Send Buffer

2006-02-21 Thread Piotr Dałek
Hello! Yes, I'm going to use such long delimiter because I need to send binary data... If you're sending binary data, don't play with delimiters, but send the data size first (as a 4-byte longint), then actual data. Client first waits for data size, then waits for the data_size bytes and

Re: [twsocket] Reverse DNS lookup failure

2006-02-10 Thread Piotr Dałek
Hello! www.microsoft.de resolves to 207.46.130.108 and 207.46.250.119 WSocket.ReverseDnsLookup(207.46.130.108/207.46.250.119) as well as NSLookup fails, tested with multiple name servers. Does somebody know why? But http://www.dnsstuff.com/ returns 15 records.

Re: [twsocket] Reverse DNS lookup failure

2006-02-10 Thread Piotr Dałek
Hello! PD Seems like dnsstuff.com may have more nameservers or their own database. PD Since it doesn't work with simple ping -a too, I wouldn't worry about PD this. I only see thoses two IPs from dnsstuff.com, which field/option did you use ? To be honest, I didn't used dnsstuff.com - I

Re: [twsocket] ICS and MidWare Frappr group

2006-01-15 Thread Piotr Dałek
Hello! Sure their privacy policy of the day say they won't spam, but it also says We reserve the right to change our privacy policy at any time If they change their policy, this would apply only to the data they collected after their change. Well... Microsoft also writes everywhere that

Re: [twsocket] ICS and MidWare Frappr group

2006-01-15 Thread Piotr Dałek
Hello! Sure their privacy policy of the day say they won't spam, but it also says We reserve the right to change our privacy policy at any time Just use an e-mail address you can 'burn' if necessarry. I couldn't. Nobody allowed me to choose the address. -- Piotr Hellrayzer Dalek [EMAIL

Re: [twsocket] (no subject)

2006-01-13 Thread Piotr Dałek
Hello! -l 1472 works for WAN machines (ie. .wp.pl), but not localhost nor LAN. It works here with Win-XP PRO SP2. So one of solutions is moving to WinXP Pro with SP2. No other reasonable solutions? ;-) I'll be googling more for this W95+Winsock2 feature later. Maybe I'll finally find

Re: [twsocket] (no subject)

2006-01-13 Thread Piotr Dałek
Hello! Strange. Maybe your local MTU is set to 512 because of the dialup ? PPP is defaut 512 bytes. I thought so too, but removing PPP didn't changed things. So I assumed that there's some unreverted changes in Winsock settings - I've changed appriopriate settings multiple times for

Re: [twsocket] (no subject)

2006-01-12 Thread Piotr Dałek
Hello! Pinging 195.130.132.82 with 1473 bytes of data: Packet needs to be fragmented but DF set. Packet needs to be fragmented but DF set. Packet needs to be fragmented but DF set. Packet needs to be fragmented but DF set. As you see, my largest possible packet size is 1472. Adding 28

Re: [twsocket] Feature: single WindowHandle/thread

2005-12-15 Thread Piotr Dałek
Hello! FP I have a development version for TWSocket which share the same window handle FP for as many TWSocket as you like (for one as now to any large value which FP fit your needs). Initially, I planned to make it available as a next majour FP release but I had no time to really finalize

Re: [twsocket] HTTP compression

2005-11-20 Thread Piotr Dałek
Hello! released, effectively alpha testing. Unfortunately such alpha testing does not seem to be done by all ICS developers, so things get broken. Of the two pending beta components, I found MimeDec to cause one of my applications to no longer decode the last attachment part of email,

Re: [twsocket] transmission stress test

2005-11-03 Thread Piotr Dałek
Hello! Have a look at TTWSChatForm.CliWSocketDataAvailable in TWSChat1.pas source file. There is a RcvBuf which is a stically allocated array of char (you can make it dynamically allocated) where data is received and the end of what has already been received. RcvLen variable keep track of

Re: [twsocket] Open to Suggestions

2005-09-25 Thread Piotr Dałek
Hello! I have a COBOL DLL written that works and communicates well with the COBOL data. I would like to use the HTTPSERVER and call this DLL repeated times for various connections. Because of the SLOWNESS of this DLL and the overhead of having to initialize it each time, I really hate

Re: [twsocket] [TMimeDec] Beta version to test

2005-09-24 Thread Piotr Dałek
Hello! However, I have a question. Decoding attachments seems to take a long time. Decoding a base64-encoded attachment of 10 MB takes 17 sec. On which machine? (cpu, mainboard, amount of free RAM, operating system...) If it's new/rather new machine, such result is far below expectations - I

Re: [twsocket] abnormal winsock behaviour by firewall

2005-09-19 Thread Piotr Dałek
Hello! Hello, Just information because I think this is interesting to know: Normally when I want to know if there is a server on a machine I try to connect on the port where it should listen and check Error argument in OnSessionConnected. If you do this on a machine where Norton

Re: [twsocket] [TMimeDec] Beta version to test

2005-09-08 Thread Piotr Dałek
Hello! And since you're too lazy to do a such simple thing, It's unfortunate your messages are so badly composed, full of capital letters which makes them hard to read, So what? My english isn't perfect, that's true. and essentially very irritating. More irritating is trying to

Re: [twsocket] [TMimeDec] Beta version to test

2005-09-06 Thread Piotr Dałek
Hello! And what was the cause? In TMimeDecEx you set destination stream after the part was decoded. You lose your data, because you don't save it: Hope this helps... :) Not really, you say there's bug in TMimeDecEx, but you don't say what you changed to get your 'result'. No

Re: [twsocket] FTPClient speeds

2005-09-04 Thread Piotr Dałek
Hello! I wrote a write-buffering stream. Anyone interested? Adding read and seek support and extending it so it can write to other streams shouldn't be difficult. snip I thought windows buffered writes anyway? Is this so you can have a larger buffer or something completely different?