did mention about using ICS and LocalIPList property. But I simply could
not find
the property/method. Anyway, thanks again for the pointer.
LocalIPList has nothing to do with a specific socket, it is a global
function returning the lists of all local IP addresses.
--
I tried to read WsocktServer1-LocalAddr but the value is 0.0.0.0; Is
there
a way (using ICS) to get what ip does a socket bind to?
A server socket is either bound to ALL IP addresses or to a single one.
When bound to a single IP, you - as the programmer - select which one by
setting the Addr
Hello Peter,
Thanks for your feedback. While you are at it, maybe you could fix the
issues you see and propose it to the community ?
Before doing that, be sure to download the very latest development snapshot,
preferably directly out of the SVN repository. Then make your changes and
submit a
Changes applyed.
Thanks.
--
francois.pie...@overbyte.be
The author of the freeware multi-tier middleware MidWare
The author of the freeware Internet Component Suite (ICS)
http://www.overbyte.be
--
To unsubscribe or change your settings for TWSocket mailing list
please goto
Hi,
Your message has not reached the mailing list for unknown reason...
I have no idea. The most likely is a firewall (internal to Windows or external
in the network infrastructure you are using.
You said the server is listenig on port 336. OK, but is it on the correct
interface ?
Try with
http://docwiki.embarcadero.com/RADStudio/XE2/en/Release_Notes_for_XE2_Update_2
--
francois.pie...@overbyte.be
The author of the freeware multi-tier middleware MidWare
The author of the freeware Internet Component Suite (ICS)
http://www.overbyte.be
--
To unsubscribe or change your settings for
According to the rfc1808.txt, an URL can start with //
The ParseURL function will fail in such cases. Also, during a relocation,
the THTTPCli fail to parse a location field with such URLs.
Here is an example, that result in a relocation with these characteristics
with //
On 27-10-2011 19:28, Francois PIETTE wrote:
If I'm wrong, please point me to the exact text in the /HTTP/ standard
(RFC2616).
From RFC2396, that merge RFC1808 with two others, and that is
referenced in the RFC2616
This kind of change would be interesting if implemented in a way that a
derived class can implement his own parser. The base class in ICS would then
parse the URL as currently and the developer would be able to create a
derived class (component) which override the standard behaviour with
I'd like to add to a desk application (C++Builder) running under W7 pro,
the
possibility for the user to send emails from this program. The TSmtpCli
component is very convenient for that purpose, but the Smtp Server is not
very easy to find, when it exists, in the register.
You don't need to
Why don't you announce it on your web site and this list with an
announcement?
It is announced since we are talking about it. But obviously, you used the
wrong conversation and the wrong subject.
Please note that I have not said that I will do it. Let's first see how much
money we can
I think we all need SPDY support:
http://en.wikipedia.org/wiki/SPDY
Interesting. Why don't you start the development ? Using TSSLWSocket should
be OK for that purpose.
--
francois.pie...@overbyte.be
The author of the freeware multi-tier middleware MidWare
The author of the freeware
With upcomming cross platform support new IFDEFs are required.
The V7 DotNet port Francois committed a few years ago has never
been finished and in the meanwhile a lot of development took
place with zero care about .NET compatibility. As a result
current .NET state is in a very bad state and I
I think we all need SPDY support:
http://en.wikipedia.org/wiki/SPDY
Interesting. Why don't you start the development ?
Using TSSLWSocket should be OK for that purpose.
Unfortunately I do not have that much time. Why don't we collect some
donation from members for some dedicated coder to
I am having server and client built with TSslWSocketClient Server.
I would like to to make client to download bunch of files from the server
when it gets the command from the server.
The command will be a list of the files to download.
Is this possible?
Sure, it is basically what a FTP
FYI: Here's the next one, HttpsTst demo live on the Mac:
http://www.bilder-space.de/show_img.php?img=40aadd-1318952812.pngsize=original
SSL worked more or less out of the box :)
Waouw !
francois.pie...@overbyte.be
The author of the freeware multi-tier middleware MidWare
The author of the
I then need to be able to send HTTP messages (xml documents) back from
the server to the client periodically
or as and when I need to, down the already open connection. The client
still needs to be able to respond to these
messages.
Since you seems to control both client and server side, I
Interesting screenshot:
http://www.bilder-space.de/show_img.php?img=955c9e-1318435341.pngsize=original
Great !
--
francois.pie...@overbyte.be
The author of the freeware multi-tier middleware MidWare
The author of the freeware Internet Component Suite (ICS)
http://www.overbyte.be
--
To
Hello 日本気象(株) 荒二井 勇 ,
PLEASE when replying, please edit your Subject line so it is more specific
and trim the message to keep only relevant part for discussion.
To which file is explanation of each methods (put, dir, dele, etc.) of
TFtpCli written?
They directly matches the FTP
Hello,
Please see OverbyteIcsFtpTst sample program. You can find it in ICS
distribution.
If you need more help, please ask for specific questions.
Regards,
francois.pie...@overbyte.be
The author of the freeware multi-tier middleware MidWare
The author of the freeware Internet Component Suite
Fake site !!!
I have unsubscribed the guy. His system is probably infested.
Sorry for inconvenience.
--
francois.pie...@overbyte.be
The author of the freeware multi-tier middleware MidWare
The author of the freeware Internet Component Suite (ICS)
http://www.overbyte.be
--
To unsubscribe or
I see. The idea is the usage of the widestring just as a easy way to call
the, behind the scene, SysAllocString and SysFreeString, that we need in
this case. But we can always treat it as a buffer, setting its length, and
moving data, explicitly, without casting.
In my opinion, it is ALWAYS a
Add USE_SSL in the conditional defines for your project options.
--
francois.pie...@overbyte.be
The author of the freeware multi-tier middleware MidWare
The author of the freeware Internet Component Suite (ICS)
http://www.overbyte.be
-Message d'origine-
From: Daniel Legrand
Sent:
I would like to send a special thank you to both Arno Garrels and Angus
Robertson. ICS for Delphi XE2 64 bit is here because those two highly
expermented volunteers worked hard. Double special thank you to Arno who
made the 64 version alive.
---
francois.pie...@overbyte.be
The author of the
Sometimes Windows triggers OnDataAvailable when no data is actually
available. This is how it works. It is safe to ignore it. The most important
is to call Recv (or any derivative) anyway. Using RcvdCount to decide to
call or no Recv is wrong. Always call Recv which is the only one to actually
I've been forced down the Multi-threaded server route as I'm using a
client's
API that only works when on its own connection thread.
What kind of client API ?
Everything has been working fine except for an issue I get that when
the PC is busy with multiple connections, some new connections
As I already said a lot of times in the past, I don't want a newsgroup
because I would loose control on the group.
Subject closed.
francois.pie...@overbyte.be
The author of the freeware multi-tier middleware MidWare
The author of the freeware Internet Component Suite (ICS)
We have a small issue with out client/server connection and disconnection
code everything
works fine until a user connection fails from there site (internet kick)
and then our server
will get a index error on sending ping to all users I think the problem is
that the server
is still trying to
Since Win7 there's no mail reader available, shame on MS.
Not exactly, the good old Outlook Express has been renamed Windows
Live Mail. It has a new ribon tool bar and slightly different
folder treeview, but it is still Outlook Express and it is still
free. Not delivered with Win7 itself, you
Since Win7 there's no mail reader available, shame on MS.
Not exactly, the good old Outlook Express has been renamed Windows Live
Mail. It has a new ribon tool bar and slightly different folder treeview,
but it is still Outlook Express and it is still free. Not delivered with
Win7 itself,
I'm using TWSocketServer to handle multiple incoming connections from a
client's embedded unit.
Unfortunately the remote unit has a few limitations; the main one being
that it can establish
an IP connection to a server but cannot send data until the server
requests it.
This means that
I don't think it is a hardware issue. It is likely a software issue. One
of the layer between winsock and the network card has a bug. That is why
you see it on one computer and not another.
Determining which layer is faulty will be a difficult task ! I don't know
what to say to help you :-(
Thanks for the links, it's an interesting read. What still goes beyond me
though, is that all I see in the diagram seems to be hardware independent
stuff, so how could it ever happen that it behaves different on different
machines?
That's the point: IMO the issue comes from the software which
I just made a nice discovery. I found out that I had another machine (same
model, but mini tower) sitting here somewhere. I checked, and the problem
does not show there.
So I took the hard drive from the not working one and put it in the
working one and it booted nicely (since hardware is
Well I can only make it work if I use the edit options and manually dink
with these until it works.. then if i resize the form, do it all over
again. Change the font size to be smaller or bigger, and tweak each other
property until all is good. For the end user, that wont be acceptable.
Is
I suggest you look at security software which may be installed on those
PC. Some of those software (anti-malware, firewall, proxy,...) are
malfunctionning in their interception of socket communication. So first do a
test with every security software disabled.
It may also be a virus or trojan
Does anyone have ideas why TIcsWndControl.ProcessMessages could
hang sometimes when socket is used in separate thread?
Actually ProcessMessages probably doesn't hang. ProcessMessages it the
place
from where all events are called. It is likely an event handler which is
blocking. You should try
AFAIR the workaround was to do your own ARP request first in order
to check whether the destination exists or not, utilizing the IP Helper
API.
Yes, that what I did.
How can I confirm that this is what's happening with me?
In my case, the blocking was occuring in the main thread. TO see
I am using ICS-V7 Distribution (October, 2010). I have encountered a
problem when using this component:
I make a Connect() call to invalid address(that is no guy listen on that
address and that port), after a while, the OnChangeState event fired, with
the NewState = wsConnected, in this case,
2Arno:
No problem to use async in a DLL, have a look at OverbyteIcsDll1 demo,
it shows a multi-thread capable implementation. If you don't need MT
have a look at the console demos, those with con in name, the same
princple works in a DLL as well.
Thanks! I digged into OverbyteIcsDll1 demo and
Hello,
I have created a LinkedIn group for belgian Delphi users. I mean either
belgian citizens, or peoples working in Belgium. The link is:
http://www.linkedin.com/groups?home=gid=398
Regards,
--
francois.pie...@overbyte.be
The author of the freeware multi-tier middleware MidWare
The
I am using TSSLWSocket and I would like to know why I get memory leak
error while using the following at the “OnFormCreate”,
RecStream := TMemoryStream.Create;
Any ideas about what am I doin wrong?
At first, this is not related to ICS: If you create a memory stream or any
other object, then
can someone please inform,
what are the latest supported SSL packages and DLL files?
Where can I get them?
http://wiki.overbyte.be/wiki/index.php/ICS_Download
--
francois.pie...@overbyte.be
The author of the freeware multi-tier middleware MidWare
The author of the freeware Internet Component
Anything that works for Apache would work since they use OpenSSL as well.
Thanks for the response :)
I am so sorry :(, forgot to tell...
I am not using SSL for web communication, I am using the SSLServer and
SSLClient for client to host connection.
I believe this has got nothing to do with
I was finally able to get back to the password failing when it is empty.
(which is OK)
The lines in the source code that prevent the '' password appear to be:
unit OverbyteIcsHttpSrv;
function THttpConnection.AuthDigestCheckPassword(const Password: String):
Boolean;
...
if Password = ''
Francois, what do you think?
I think I will not have more than 2 peoples creating something. Not worth
the effort.
--
francois.pie...@overbyte.be
The author of the freeware multi-tier middleware MidWare
The author of the freeware Internet Component Suite (ICS)
http://www.overbyte.be
--
To
...
Francois PIETTE wrote:
A 401 is returned.
What am I missing?
As I told you in my previous message, you missed that password
(passed as var to the event handler) is initialized to #0 which is
NOT an empty string.
I also do not understand why that has something to do with the fact
How I can download a file in memory instead on disk using the command GET
?
Use a TMemoryStream instance and assign it to LocalStream property
--
francois.pie...@overbyte.be
The author of the freeware multi-tier middleware MidWare
The author of the freeware Internet Component Suite (ICS)
On this subject, does ICS team plans to release official support for IPv6?
Arno already done most of the work, so yes it is intended to release it
someday.
We need testers and you are welcome to participate.
As you probably know, Embarcadero is preparing the next release. ICS must be
ready
The password field is blank in OnAuthGetPassword. I do not change the
'Password'. It is #0.
You should probably change Password to the empty string. #0 is /not/ the
empty string. This has been designed so that you can use an empty password
which is different than not changing Password var
The password field is blank in OnAuthGetPassword. I do not change the
'Password'. It is #0.
You should probably change Password to the empty string. #0 is /not/ the
empty string. This has been designed so that you can use an empty password
which is different than not changing Password var
My ICS client socket application crashed when the host (not ICS based)
failed.
MadExcept captured the following. If this is meaningful to someone, I'd be
interested in any observations/suggestions.
exception message : The application seems to be frozen.
MadExcept tries to detect that an
Please tell me, can I set a password and a user-name for Proxy in
TMultipartHttpDownloader?
Can I remove blinks of TMultiProgressBar when it works? And can I change a
color of a bar (not background) of TMultiProgressBar?
I wrote the component and demo long time ago. I don't remember the details
If you want to download several files sequentially, just build a list of
files and use one component to download each file after the each other.
Question: how can I perform this? I am trying to make a list and download
a
next file working with a RequestDone event. But I have an error
How can download couple files at once
using TMultiPartHTTPDownloader ? I can add only one file into
MultiPartHTTPDownloader to download, what about more files than one?
Can I create a list of files to download?
TMultiPartHTTPDownloader is a component aimed at downloading a single file
but
I don't know how to make sure there won't be any other machines in
between, I mean to make sure both data belongs to the same computer.
My question is,
How can I set both messages comes in the same time like one whole message
or combine them by the server as one message?
Is there any ways of
Hi , i want to develop a File Sharing Between Server and Client on LAN
and
Internet ; that means the Client can download a File if he is in the same
LAN or even from INTERNET from different network .
OK Sir Francois , on a LAN i did it like this :
i created a server based on TCP Server it
Currently I'm using HtmlSmtpClient and planing update to SslSmtClient.
and get next questions to migrate current code to ssl.
1- with html client can be sent mail at once in html with embedded images
and plain text. this can be done with ssl client?
2- if with ssl client only can be send as html
, Francois PIETTE a écrit :
I have tested your code and it works perfectly from here.
Here is the log using YOUR code and ICS-V7 updated form SVN repository
right now:
I have downloaded and installed the last update
(http://wiki.overbyte.be/arch/icsv7w.zip) on my Delphi 2010.
And I have exactly
It is only guaranteed that _connected clients never share the same CliId.
I couldn't see _where_ it is guaranteed... It's quite possible to have 1st
client with ID 1 connected for a long, long time while others connect and
disconnect very frequently (i.e. large proxy and a client downloading
if FClientNum = $7F then
currently it wraps around after 8,388,607
That is probably my bug, missed an F.
Should probably be MAXINT to avoid any issue with integer size change.
--
francois.pie...@overbyte.be
The author of the freeware multi-tier middleware MidWare
The author of the
I have tested your code and it works perfectly from here.
Here is the log using YOUR code and ICS-V7 updated form SVN repository right
now:
220-FileZilla Server version 0.9.24 beta
220 Micro$oft free
USER fpiette
331 Password required for fpiette
PASS ***
230 Logged on
CWD .
I have tested your code and it works perfectly from here.
Here is the log using YOUR code and ICS-V7 updated form SVN repository
right now:
I have downloaded and installed the last update
(http://wiki.overbyte.be/arch/icsv7w.zip) on my Delphi 2010.
And I have exactly the same problem.
When are you doing the PUT? In that routine after the CWD
Yes in the routine after the CWD like I do on FTP server which allows
active mode.
I don't use Event TftpClient.OnRequestDone.
Must I wait for something ?
No because you are using the synchronous version of the functions.
Usually ICS
I can send you login and password to test on a private mail if you want.
OK !
Is this occuring with all FTP servers ?
And as I said before, does it occur with ICS demo ?
Send me your source code (Complete project but minimal source code to
reproduce the issue), I'll compile and try it and
I hope I have explained okay.
I do not grasp your complete architecture.
Which programs are you writing ? A server, a client, both ?
What is the ID you are talking about ?
Which protocol are you using ? You own ?
--
francois.pie...@overbyte.be
The author of the freeware multi-tier middleware
First,
Server gives info of connected client with it's ip and the ID, the ID is
very important for me because I need to use it for sending commands to the
client.
Second,
Client sends a message where it tells it's name etc. when it is connected.
I push client to send message to the server
Your second message comes later and is available from the OnDataAvailable
event handler at server side.
Is it possible to send this at the same time as it connects?
No. The client can only send data when the TCP session is established and
your first message is generated at server side form
We can get some remote info of the connected client from the following
code but,
are there any possibilities of getting the computername as well?
Are you asking about Windows networking computername ? This is completly
independent of the TCP/IP protocol. It may even be different that the DNS
Is there any way to set a default value to a parameter in Delphi? In C++
it's like (in .h or .hpp header file)
void function(int param = value);
so the function can now be called as function() without the requirement of
expicit param specification.
Same in Delphi.
--
This is how winsock works. OnSessionConnected is fired with an error,
after it OnSessionClosed is fired with or without an error.
So having TWSocket's state different from actual state should be
considered
normal? If so, then I understand that checking for component state is NOT
enough to
So how should I handle connection errors in a way that makes user aware of
error AND not cause any kind of disaster? Catch the error code in
OnSessionConnected
Yes, indeed.
and (using some kind of PostMessage) display actual error
message outside OnSessionConnected?
If you like it so, no
Hi Francois,
I understand it now.
I didn't get the idea in the first place :(
I tought it should be somehow different and need to be placed in the
code..
When a symbol impact a lot of units, it is more convenient to set it at the
project level so that it is really global. This is specially
OK.
--
francois.pie...@overbyte.be
http://www.overbyte.be
- Original Message -
From: Arno Garrels arno.garr...@gmx.de
To: ICS support mailing twsocket@elists.org
Sent: Friday, April 29, 2011 7:53 PM
Subject: Re: [twsocket] Bomb
Anton S. wrote:
Actually it could be replaced by
.. Thanks in advance -Original
Message- From: Francois PIETTE Sent: Thursday, April 28, 2011 8:45 AM To:
ICS support mailing Subject: Re: [twsocket] Bomb Could someone please
explain, what this means? Bomb('Add USE_SSL in the define section in
project options'); The code in the unit
You have to define use_ssl on your project option and rebuild all.
How do I do this exactly?
I am not sure if understand what i need to do.
Delphi menu / Project / Options / Delphi Compiler / Conditional Definitions
(May vary according to Delphi version)
then add USE_SSL after the existing
Could someone please explain,
what this means?
Bomb('Add USE_SSL in the define section in project options');
The code in the unit where such line is included is intended to be compiled
using the USE_SSL symbol defined at the project level. The line is there to
trigger a compilation error
Just a quick question. I need to interface to a XML RPC API, but I havent
got the foggiest were to start. Could the ICS possibly assist?
XML RPC is a remote procedure call (RPC) protocol which uses XML to encode
its calls and HTTP as a transport mechanism. XML-RPC also refers
generically to
It's unfortunately an existing API I need to interface with.
No problem. As usual with XML, be prepare to have CPU and memory hungry
piece of code.
The encoding is
Base64, so I'll need to find a delphi lib to get it back to regular XML.
ICS has the functions to encode and decode base64.
GDisplayProc is assigned a routine which output the message to the
console window and to the log file and which is used all over the
application.
Guess what ? It works !
This is not satisfying since the log file is full of unwanted
messages and this probably only hides the real problem.
Does
While testing, I also had during some time FD_READ triggered but
ReceiveFrom returning -1.
Isn't that quite common, if those are WSAEWOULDBLOCK errors?
As far as I know, not so much. I saw is returning -1 during 4 seconds which
is the timeout time in my appication.
--
Am running a chat system using tcp for data transfer but I have a problem
am unable to fix and was wondering if anyone else had this issue.
basically when using my app for more then 3 days it would cash but not a
full socket crash were it would boot people it would just stop accepting
new
Hi !
I have a strange problem: in a windows service and using UDP, the service do
not receive UDP datagram. Trying to debug this problem, I attach Delphi
debugger to the running service and suddenly it starts receiving the UDP
datagrams !
Actually the service is a dual mode service/app
No idea, but that can't be a permission issue IMO. Receiving datagrams
in a service running as system works fine. Also attaching a debugger
doesn't change security context of the debugee.
What happens is that a new thread is created in the process being
debugged, maybe there's some issue with
I had a similar experience in the past, not with ICS components but
generally working on a completely different project.
When project was running normally at some point did not work but when
attaching a debugger then it would work.
The problem at that situation was that the program needed some
Maybe when you use the debugger then the application run
undeer a different user?
I start the service which starts sending his UDP datagrams (This is a SNMP
client) and waiting for UDP response which never comes. Then I attach the
debugger to the running service process and suddenly the UDP
I think that if you consider what I suggested before, might help you...
It maybe has to do with extra process time the debugger gives
Thanks for insisting.
Which extra process time do you mean ? The debugger has just to be attached.
No need to set any breakpoint nor single step. Just attach.
When the debugger is attached is it exactly the same like when it's not
attached for the program being executed ?
I would say no since my application is working.
But I would say it doesn't change the time required to do domething.
OK then, my idea was that it's different.
Actually I work with
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?
A dual mode service is an application which detect if it run as a
I'm happy you finally found the problem.
Thanks for your feeback.
--
francois.pie...@overbyte.be
The author of the freeware multi-tier middleware MidWare
The author of the freeware Internet Component Suite (ICS)
http://www.overbyte.be
- Original Message -
From: Éric Fleming Bonilha
I have got to the bottom of the Error 10048
This means the port you are trying to use is already used and thus is no
more available.
It seems that the order in witch you assign values to the TWSocket
properties when you want to open a client is important
- so now I can open and close the
Hello Anton,
1) Excess ancient defines
The code is cleaned up as we goes by.
3) HTTPCliWindowProc
function HTTPCliWindowProc is never used, maybe it should be removed?
If not used anymore, yes.
2) $IF defines
Same as (1)
4) THttpBigInt
THttpBigInt type - is it really needed?
My application receives UDP data from IP Cameras, somehow we are not
receiving some
packets, but by using a network sniffer I can see that the packet was
received, but the
application never receives it!
I already checked receive buffer lengths.. I actually spent 2 entire days
cheking for
So This leads me to think that TWSocket is not
closing/freeing/de-allocating
the LocalPort, such that when I try to reopen the connection a few seconds
after I close it, windows raises the 10048 error due to the LocalPort
still
being allocated
Is this the case
No, it isn't. But Windows
I don't know if there's a better way
That is fine.
So the HttpCli built-in timeout is not enough?!
Only for sync calls.
--
francois.pie...@overbyte.be
The author of the freeware multi-tier middleware MidWare
The author of the freeware Internet Component Suite (ICS)
http://www.overbyte.be
Do we have any kind of demo project of how to upload stuff to the server
by using ssl and how to download from the server?
This is something that I also very much would like to know about.
You have two demos: client (OverbyteIcsHttpsTst.dproj) and server
(OverbyteIcsHttpsServer). Both are
And how could I send a file on HTTPS protocol?
There is no difference in HTTP (or HTTPS) between files and documents.
I would like to connect two clients behind firewalls through a server on
WAN and initiate the file transfer between them... Do you think that's
possible?
Do you mean you
You cannot communicate between clients. You must pass thru the server,
first upload the file from one client to the server and then download
the file from the server to the second client.
Or transform one client into a server (That is simply use ICS HTTPS
server component). But then you'll
I would like to transfer a file through a SSL tunnel using 443 port.
I've seen the SSL implementation in my loved ICS Components and I was
wondering how used them to do this...
Could you help me?
SFTP or HTTPS or...?
HTTPS OK, FTPS OK, SFTP not OK (because it is SSH and not SSL).
Is there a
I am writing a DLL that will have two sockets managed by the same thread.
In the thread's Execute method I am calling the message pump from one of
the sockets.
My question: will this message pump also handle the messages of the second
socket?
For reference (and so others can check for
1 - 100 of 1981 matches
Mail list logo