er/cardinal to
int64 should be relatively safe. Applications 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 setti
between your pc
and mentioned device. Also, these programs should tell you on what ports and
which protocols (not necessary TCP) data is transferred.
--
Piotr Dałek
enigmati...@interia.pl
---
Nie licz na ZUS, zadbaj o swoja przyszlosc!
http://lin
nd initiate actual HSPA/HSUPA data transfer - in that case,
increasing connection timeout might be an option.
--
Piotr Dałek
enigmati...@interia.pl
Znajdz samochod idealny dla siebie!
Szukaj >> http://linkint.pl/f29e2
--
To un
in a way that makes user aware of
error AND not cause any kind 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
-
omponent state 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 mailin
my code accesses, among other 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 uns
d your design well, it's not totally equivalent because
it will treat any single bind failure as a total disaster, even if another
binds are meant to be spare and actually not required to function (failure
to bind on other ip:ports is not considered fatal).
--
Piotr Dałek
enigmati...@interia
ter the user input, but that adds new code to equation. Another, and what
I think the most reasonable, is to create a new class derived from
TWSocketServer that would accept such input and leave original
TWSocketServer untouched.
Just my 5€.
--
Piotr Dałek
enigmati...@interia.pl
--
t in, one can use
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!
revious test, this time I
> got a subject header properly reencoded to Base64. The original mail was
> encoded quoted-printable. So obviously these tests make no sense.
I don't know why you insist on using ISO-2022-jp when there's UTF-8. I could
understand that in MIME decoder, but SMTP c
> 我が世誰ぞ 常ならむ
> 有為の奥山 今日越えて
> 浅き夢見じ 酔ひもせず
... however, body looks good.
--
Piotr Dałek
enigmati...@interia.pl
--
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
Ext = 'ppt') or (Ext = 'pptx') then
> Result := 'application/vnd.ms-powerpoint'
In my opinion, such things shouldn't be kept in component's source code.
There should be external (or stored as
waiting for response, sending another request, ...
and so on; for POP3/NNTP protocol you usually can fit all your RETR/ARTICLE
requests in just one outgoing packet).
--
Piotr Dałek
enigmati...@interia.pl
--
Praca za granicą? Zo
.
And IMAP4 :>
--
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.elist
CCT" or StressPrime. These tools should help, too.
--
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 c
t this night)
> i'll come back to you
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
-
Tried this too. The breaks has no effect in this "switch"
> ( No "default" value )
See this:
http://www.cppreference.com/wiki/keywords/switch
--
Piotr Dałek
enigmati...@interia.pl
--
Dzwonki na komorkę!
Spra
IMO.
>>
>> "Format" could be used instead of concatenation.
> Format 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
ld be
> simplified IMO.
"Format" could be used instead of concatenation.
--
Piotr Dałek
enigmati...@interia.pl
--
Wygraj 3000 zl, wycieczke lub lot balonem!
Sprawdz >> http://link.interia.pl/f2154
--
To
;< AV here
[..]
> What am I doing wrong?
Probably you're freeing destination stream before using it. Put something
like
if HttpCli.RcvdStream=nil then
ShowMessage('RcvdStream is NIL, click OK to crash.');
before "sl.LoadFr
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
e send any mail 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.int
without SSL), I don't use any other ICS
components. 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
--
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
; method, you say "put these
data in your buffers, send it to the other side, and tell me, by firing
OnDataSent, when you've dealt with that.". If you use "send" again - before
having received OnDataSent event - you say "hey, I have some more data to
send, send the
ta still reside on disk).
I think that all users will use simple files containing ready data that is
not going to be changed during encode process. Supporting other scenarions
is overkill, at least for me. If you don't agree, then what if you buffer
(in TBufferedFileStream) 1024 byt
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 st
ize we could also check against file size, however
> only with ShareMode fmShareDenyWrite).
var
LocalStreamSize: integer;
[..]
LocalStreamSize := Stream.Size;
[..]
More := Stream.Position < LocalStreamSize;
[..]
Problem solved.
-
print what you type. Try blind-typing proper
password 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.or
tring.
No need to switch to TRegIniFile or (DOH!) XML files.
For example:
IniFile.WriteString('Settings', 'LastFile', UTF8Encode(filename));
filename:=UTF8Decode(IniFile.ReadString('Settings', 'LastFile', ''));
--
Piotr Dałek
[EMAIL
s
> somewhere
> else:
Yes, it was. ;-) After proofreading and comparing line-by-line my
wsocket.pas and one from most recent ICS V5, I noticed that buffering code
in my wsocket.pas was flawed, so I copied one from most recent ICSV5 and now
it works.
> 1)[ICS-SSL] Fix: SessionClosed may trigger tw
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
CTRL_FLUSH
[..]) 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
eover,
this copies data twice (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]
would give), some not - if you're upgrading from 2002
version, it's more than just "possible" that something won't work, so
first try to find where whole thing loops and try to find out why. It
may be not because of ICS.
--
.oooO
lows and
extremely critical "system access" and/or "DoS" security vulnerabilities. ;)
Good luck!
--
.oooO /~) (~\ Oooo. "Programowanie to |Piotr Dałek
( ) / ( ) \ ( ) *najprzyjemniejsza* | [EMAIL PROTECTED]
\ ( ( ) ( ) )
atest ICS, will there be anything that is likely to
> cause me programming difficulties? Will any buffer overflow vulnerabilities
> been fixed?
Make a copy of your ICS, install new, and check it on your own. Is that
so difficult? Don't expect us to do your homework. We have ou
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)
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 handl
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 co
Hello!
>> I wonder the optional RFC2616 pipelining mechanism for requests in
>> HTTP/1.1
>> is anything utilized by clients in the real world or just hypothetical?
>> Currently no ICS code (client/server) supports it.
> Pipelining use would require changing the state machine in ICS component. At
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]
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
> [..]
> Mess
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 mor
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
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
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 Ar
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
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 i
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 ot
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)
>
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 D
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 stor
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 dnsstuf
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.
C:\WINDOWS\Profiles\
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" Dale
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
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 tim
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
Hello!
> Hello Piotr,
> 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 tim
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 2
Hello!
> Hello,
> I want to wich you all a merry Christmess.
ROTFL
I didn't catched what's the point beyond the Steven S. Showers message,
but after taking a sharper look, well, I still do roll on the floor
laughing... Maybe because of what I've had in my current job during this
week (total "w
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
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,
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 trac
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
> hat
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 -
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 ant
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 con
Hello!
> Hi Francois,
> That option already I proved it but I did not have the
> awaited result. As it commented in the previous mail, when the size of
> the window of the terminal changes, Windows program Telnet is even sent
> a package to the Host but not his content and not if the one is tha
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 'r
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.
>>
> I thought windows buffered writes anyway? Is this so you can have a
> larger
> buffer or something completely different
Hello!
>> I could but...don't remember where is my stop-time watch I just bought
>> around the corner to make it pause life-time for next 10 years :-)
> However, most high level components would benefit from such a buffered
> stream,
> highly efficient, and don't forget "I am programming, therefo
Hello!
> I think there's a maximum line length specified in the RFC for SMTP
> transactions, but like any other header, you can add a line break and
> indent the next line to extend the header. So I guess there isn't a
> specific limit for this header.
For references (and large discussions) i
74 matches
Mail list logo