If you find something, please let us know!
By the way, the mechanism is in use for year. If there is a flaw, it could
only be in a special corner case otherwise we already fixed it.
--
francois.pie...@overbyte.be
Embarcadero MVP
http://www.overbyte.be
http://francois-piette.blogspot.com
by François Piette. V3.00
TWSocket (c) 1996-2012 Francois Piette V7.87
TWSocketServer (c) 1999-2011 F. Piette V7.04 Waiting for clients ...
Client connected. Remote: 192.168.25.93/4634 Location:
192.168.25.66/5760ThrdID: $ 4,532 ThrdCnt: # 1 There is now 1 clients
connected.
Received from
WSocket only with WSocketServer WSocketThrdServer and that this problem
occurs, it takes is
a message exchange (string) between client and server with multiple
clients connected
simultaneously, the problem with the component WSocket that is working is
that if a
customer taking disconnect
How to implement the time of the last action on the event and then check
OnDataAvailable?
Assuming you use ThrdSrv: Add a filed in the class TThrdSrvClient which is
instanciated for each client connecting. Update this filed for datetime of
the last message sent by the client, probably from the
I'm doing based on the example MtSrv, would be the best for my case?
Have you looked at the comments in front of MtSrv sample ?
Here is is:
MtSrv is an old sample program
It works OK, but you should use ThrdSrv project
I will
My application is a LAN backup application and users want to use FTP to
additionally secure their data.
SSL certificates are used to make sure the client connect to the server it
thinks it connect and that the server is sure about who is the client.
Encryption of data take place even if there
('/*.asp',tasp_proc);
can be??
that is why i will use the Tsrv_myapp.mywebGetDocument proc. because it can be
hold everything.
btw,.AddGetHandler is a thread work mode??
myiisvif
From: François Piette
Date: 2013-04-17 02:25
To: 'ICS support mailing'
Subject: Re: [twsocket] i using
i found if i call the wmi ole object to get wmi data,THttpAppSrv will
hung and lose the 80 connection.
procedure Tsrv_myapp.mywebGetDocument(Sender, Client: TObject;
var Flags: THttpGetFlag);
the call the wmi object...
for just two or three times.
why? bug?
I'm not sure I
Can the network topology (different switches or hub) give different
results about this ?
Yes, it can.
Jumbo frames must be supported end-to-end. Each device has to support it and
be configured for it.
--
francois.pie...@overbyte.be
Embarcadero MVP
http://www.overbyte.be
I need to send a data packet in one chunck.
Today the datas are splitted in two chunks, one of 1500 (the MTU limit) and
another one for the rest.
I'm not able to go over this 1500 limit. I know it's possible because I
have another program how does it like this
What you ask is to use Jumbo Frames
I have seen TSslSmtpCli mentioned a couple of places but very little data.
Does such a thing exist? Is it part of the ICS-SSL suite?
Sure it exists. Starting from ICS-V7, ICS-SSL is included in the sntadard
distribution. There is no separate source code. For example TSslSmtpCli is
included in
How can I get the Client Index when the client connected ...
Suppose we have 10 client have already connected ... and then 1 client
disconnected ...
when the other client connected which index will get for that new
client ... ?
Please explain why you need the client index ? I ask because
Using HTTPCLI AsyncGET how main thread wait for the Async to download
the html code.
Code relies on input html code. If i sleep the main ui thread it will
become frozen.
I know how to get HTML with Async via Events but i have no idea how
program it so that Main UI thread will wait and
Using HTTPCLI AsyncGET how main thread wait for the Async to download the
html code.
Code relies on input html code. If i sleep the main ui thread it will
become frozen.
I know how to get HTML with Async via Events but i have no idea how
program it so
that Main UI thread will wait and then
Hi !
I wrote an article about an original way of iterating thru all the bits of
an integer.
This is the kind of fancy code one could write using recent version of
Delphi. I would like to apply this kind of code in ICS, but if I do, it
wont work anymore with the old D7.
The final code
I was just wondering, what would be a practical application of this
routine?
As you probably don't know, I'm doing a lot of process control with Delphi.
And I frequently have to process bit collections.
wouldn't it be more efficient to just shift the value to the left
directly without the
for quite a few years I have been using an application I wrote using the
THtmlSmtpCli
component using the default port 'smtp'. The problem I am encountering now
is that
my internet provider has decided to block port 25 in order to avoid spam.
My provider (Belgacom) is doing the same, but is
Hi !
This subject could be considered out of topic here although it might be
applied to ICS as well. I have not applied such coding to ICS because
currently ICS has to support old Delphi compilers which lacks the required
syntax.
I wrote a blog article about writing a class to implement a
How can i use MessageLoop with HTTPCLI SSL in a Thread?
I use this now which does do the request but returns nothing..
repeat
Sleep(1000)
HTTPCliSSL.MessagePump;
until FRequestCompleted;
You should rewrite your code using pure asynchronous operation.
First of all, I would like to congratulate the ICS team for the wonderful
job in creating a
way to share windows handles for processing messages.
I´m now extensively using this mechanism in all our application.
Thanks !
One question though, why is the default limit of 100 messages
How can this be done? For example checking 100 proxy's at the same time
like with PHP curl_multi.
Are there any open source projects based on ICS avaliable so I can have a
look :)
There are a lot of samples included with ICS right in the distribution. Did
you had a look at it ?
Hint: Look at
Hi !
You should use the Powered by ICS logo:
http://www.overbyte.be/graphix/logos/powered_by_ics.gif
Make it a link to my website.
Thanks.
Francois
-Message d'origine-
De : twsocket-boun...@elists.org [mailto:twsocket-boun...@elists.org] De la
part de Raymond Kennington
Envoyé :
I've tried to extract the code from my component package and it has been
well executed (the same code executed in the project).
What's the problem in your opinion ?
You have changed something else. Having a component out of a package doesn't
change his working. The same code is executed. So
I use a THttpCli to communicate with a XML-RPC server.
I have a problem when POST command is called.
The webserver respond the error below :
DTD interdite.
Ligne: 1
!DOCTYPE HTML PUBLIC -//W3C//DTD HTML
However as you can see I don't specify any DTD in THttpCli initialization
:
The problem
I have to write a local webserver, which demonstrates to users the effect
of their html and
php scripts (i.e. something like a desktop content management system).
I'm using Delphi XE2 and Windows 7. Is it possible to integrate CGI/PHP in
any of the
ICS components? Is there a demo for this
As I said in a previous e-mail. I am testing with 3 FTP sites. It appear
only one of them has this problem.
This probably means the problem is at the server side.
Please try with another FTP client, for example windows own command line FTP
client. Use the same file and do that from the same
This is my problem : I have just been given an old Delphi 4 application,
which needs to be modified.
This program was written using ICS components ten years ago. I have a
Delphi 4, and also the
components as they existed when the progran was created. So I should be
able to open then
program,
I vote for Binary as the default mode.
Unfortunately, the standard says text mode has to be the default.
--
francois.pie...@overbyte.be
Embarcadero MVP
http://www.overbyte.be
--
To unsubscribe or change your settings for TWSocket mailing list
please goto
The problem was that the World Wide Web Publishing Services was running.
You should have got the error 10048 Socket already in use. You reported
error 10013. Strange.
--
francois.pie...@overbyte.be
Embarcadero MVP
http://www.overbyte.be
--
To unsubscribe or change your settings for
Just started to look at the Web Server demo. When I run it I get 10013
Bind error.
Any clues as to how to proceed?
Error 10013 mean you have no access to some file.
Check the OS files hosts, protocol and services (no extension) which shoud
be in C:\Windows\System32\drivers\etc
Some virus
This code:
HTML
It looks like you posted in the wrong place ! This code is not related to
ICS use.
--
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 already try, after reading the Wiki, the Shutdown(1) procedure, anyway, the
result is the same. I try close, shutdown, abort ... etc.
Make a stripped down version of your application and mail it to me. Be sure to
include a complete project with only the code required to reproduce the error.
I would take a look as lazarus 1.x could handle ICS no problem.
You are welcome to try ICS with lazarus and make the changes required to
support Lazarus. If you do, please be sure to start with ICS-V8, the latest
version and take the source code directly out of the SVN repository.
--
.TCPClientSessionConnected(Sender: TObject; ErrCode: Word);
begin
logIt('SessionConnected: Error='+IntToStr(ErrCode));
dvLed1.LedOn := True;
end;
LeNif
From: François Piette
Date: 2012-10-23 18:39
To: 'ICS support mailing'
Subject: Re: [twsocket] TWsocket and EStackOverflow
Hello, thanks but I
, even after the close that's really strange ...
Maybe the problem is with the device and not with my socket ...
thanks
LeNif
From: François Piette
Date: 2012-10-24 20:14
To: 'ICS support mailing'
Subject: Re: [twsocket] TWsocket and EStackOverflow I don't see anything
obviously wrong
Hello, thanks but I already wait for OnsessionClosed befor restarting.
Wait ? Does this means you don't use the events ?
I post a capture with log info here ...
http://imageshack.us/photo/my-images/844/screenshot47a.png/
Not very interesting...
If you have a stack overflow, you probably
I'm running into a Ftp component not ready error.
What is the proper way to check for the component being ready in c++?
Use the OnRequestDone event.
--
francois.pie...@overbyte.be
Embarcadero MVP
http://www.overbyte.be
--
To unsubscribe or change your settings for TWSocket mailing list
I can get the attachment file on the IPhone, but as a side effect I get
all
embedded images as attachments too at the bootom of the message.
Are you able to send such as message using a mail client such as Outlook ?
If yes, just have a look at how that message is formatted and change the
Support for Delphi and C++ Builder XE3 is now available in ICS V8 beta
available from:
http://wiki.overbyte.be/wiki/index.php/ICS_Download
ICS V8 includes support for IPv6 and the FireMonkey FMX framework for
Windows and Mac OS X.
I would like to thanks Angus Robertson and Arno Garrels for
-Message d'origine-
De : François Piette [mailto:francois.pie...@overbyte.be]
Envoyé : vendredi 17 août 2012 21:32
À : 'dushy...@intellectsoftwares.com'
Objet : RE: CreateWindowEx failed error in TWSocket
By default, Windows is limited to 1 window handles globally. You
probably hit
It seems that I faced a problem of THttpCli component used in thread.
You must create the component from the execute method, not the constructor
and your thread MUST have a message pump.
I suggest you start with one of the multithreaded samples delivered with
ICS.
--
Those are created automaticaly by some malware in the hope of modifying
pages but since Overbyte wiki requires permission, nothing bad ever occured.
Thanks for worrying.
--
francois.pie...@overbyte.be
The author of the freeware multi-tier middleware MidWare
The author of the freeware Internet
I searched the web with no luck to find a SQL statement to delete fake user
from the database.
If anyone has some resource to share...
The difficulty is to delete only fake user and not the real users and
without compromising database [referential] integrity.
--
francois.pie...@overbyte.be
The
what is the status of IPv6 with ICS ?
Already working, thanks to Arno !
See SVN repository branch icsipv6.
--
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
We need to call this function from return-to-client-object-pool routine to
make HSocket = -1.
I cannot use inheritence as this is for THttpCli::CtrlSocket and I cannot
override the CtrlSocket
without re-writing the THttpCli unit from scratch.
Maybe I misunderstood...
You can use inheritance
ping indicates a success, and the ErrorCode also indicates
no errors.
The success means the ICMP request packet has been sent.
--
François Piette
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our
I have a simple chat system were users can re-login and change there
usernames however
ever seen i updated my delphi to xe 2 update 4 my relogin feature has
stopped working.
after debugging the code I am lost to find out as to why as there seams to
be no problems
with my code username is
I been trying to make my server reject ip’s that are already connected to
system
for i := 0 to (SocketServer.ClientCount -1) do begin
if (SocketServer.Client[i].GetPeerAddr = rSocket.GetPeerAddr) AND
(SocketServer.Client[i].Handle rSocket.Handle) then begin
// send message to client
Are there any special steps to follow for installing the beta ICS package
(from svn) for
Firemonkey? Tried to install it separately, and it gives an error
The procedure entry point @Overbyteicslibrary@initialization$qqrv could
not be located
in the dynamic link library OverbyteIcsDXe2Run.bpl
Do anyone know of a quick way to grab just visible SSID's
AFAIK this is out of ICS scope. You should probably ask this in the general
Delphi mailing list (del...@elists.org which as you can see is served by the
same mailing list server).
And while I'm at it
It is better to state your opinion
Hi !
Im planning the next ICS version
Being unable to use any features added to Delphi in the last 10 years is
very restricted. Maybe we need to cease support for old Delphi versions ?
Of course ICS V5 and V7 will remains available however, the only changes
will be bug fixes.
What do
OK, I searched (briefly) for some mal content via FTP with no success.
Good news !
Just wonder why those get logged when you have to send a request
to Francois first in order to get an account?
Actually, anyone can create an account, but this account is read only. So
maybe some robot
Would the FireMonkey beta be the next “stable release” of ICS ?
I hope so, at least that is my plan, don't know what the rest of the team
thinks?
+1
--
francois.pie...@overbyte.be
The author of the freeware multi-tier middleware MidWare
The author of the freeware Internet Component Suite
Can I use the property Http.State=Ready for consider that the http
component
is fully available and its last download is finished?
No. use the events.
--
francois.pie...@overbyte.be
The author of the freeware multi-tier middleware MidWare
The author of the freeware Internet Component Suite
By the way, I don't really understand the real world use case for such
WebSockets in the context of a IC/Delphi/WebServer application.
Unless you have to support and existing client application, it is IMO
not very interesting. Maybe I'm wrong.
The websockets supersede the old AJAX approach
Hello Stan,
As I understand, you are trying to - or you already have - implement
RFC6455, server side (http://tools.ietf.org/rfc/rfc6455.txt).
Is that correct ?
There are several ways to implement that using ICS. I don't know the best
one since I have not read RFC6455 in details. Candidates are
Probably Universal Plug and Play (UPnP)is what you are looking for.
How reliable is that ?
What do you mean ?
Are you asking if it works ? The answer is yes.
Are you asking it is always available ? The answer is no. It is disabled on
firewalls or routers where security is really controlled.
Do you know how TCP hole punching works ?
http://www.brynosaurus.com/pub/net/p2pnat/
--
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
Now I need to establisch a P2P connection that can pass firewalls.
Does anyone knows how it should be done ?
Could you more explicit about the situation ?
Where is the server, where is the client(s), where is the firewall ? Is each
client also a server or do they work thru an intermediate server
Now I need to establisch a P2P connection that can pass firewalls.
Does anyone knows how it should be done ?
Could you more explicit about the situation ?
I thougth that the whole idea of hole punching is a way to let NAT and
firewalls thinck
that there is no server that a gateway is needed
Do you think that routing cicle is ok? There is a better way to do that?
Can you give any advice about that?
How do you solve the issue which can happen if a client is not receiving
data fast enough ? The sending socket will buffer data (It is asynchronous
on send as well) and all memory could
Be sure to use latest ICS which has been ported to unicode enabled Delphi
versions such as D2010.
--
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
For this I configured each client to send about 1000 packets per second of
4 bytes (about 32Kbps).
Your bps computation is wrong. You send 4 data bytes, the actual packets on
the network are much larger (something like 10 times) ! Have a lokk there:
http://sd.wareonearth.com/~phil/net/overhead/
I am working on a download manager, and using the HTTPMultipartdownloader
component.
For now I have 5 different HTTPMultipartdownloader components on my form,
but I think
I should be able to do it with only 1. like HTTPMultipartdownloader[xx] ?
It depends on the requirements for your
Does the TSmtpCli support ports other than 25?
No, only TSslSmtpCli supports SSL/TLS.
Including SSL/TLS connections or method/command STARTTLS on any port number
you want.
Just to clarify Arno's answer: If you need to send Emails with SMTP over
SSL/TLS link, you need the SSL enabled version
Am looking for way to stream image data with client /server sockets so
that
i can broadcast same image to all connected clients as anyone got a
working
demo or can help me with this ?
There is an old pair of demos in ICS: a client and a server for a basic chat
system. Of course this demo is
It is likely that your problem comes from the different programming paradigm
between the two libraries. ICS is non-blocking (asynchronous) while the
other is blocking. It is possible that you don't follow the rules for
asynchronous programming and get problems... There are two very important
There is a way to recognize networks changes like these?
Have a look at IP Helper API:
http://msdn.microsoft.com/en-us/library/aa366329(VS.85).aspx
--
francois.pie...@overbyte.be
The author of the freeware multi-tier middleware MidWare
The author of the freeware Internet Component Suite (ICS)
OK, have it working now.
And the problem was
It is always better to report the solution you found for a problem you
talked in the list. This way, the next guy searching for the same problem
will also find the solution !
Thanks.
--
francois.pie...@overbyte.be
The author of the freeware
We summarize. I have to read e-mail. I read the first post and everything
is ok (they
are executed properly onheaderend events, onmessageend, ...
Step to read any other message (which exists) is not getting any error
message but
still displays the information of the first message and events
I have a client ftp component written using ICS and a server component also
using ICS - everything
was grand up to about 2 weeks ago, when the client ftp was sending a SITE
EXEC progname to
the server - now that command never even gets received (and therefore
never executes).
This smells of
If I make a Send call to that socket, does it have to occur on the same
thread as the worker thread?
Or can I call it's Send method from another thread? I looked at the
WSocket.pas code and I didn't
see anything that looked like it wasn't thread-safe,
Sending data pass thru the internal
HERE IS A LINK FOR API http://www.kgnsoft-in.com/oauth/api0001.gif
SCREENSHOT FOR THE POST METHOD
Please provide the link to the API you are trying to implement. Just that
part is not enough.
Have you seen this : http://tools.ietf.org/html/draft-ietf-oauth-v2-23 and
this :
Thanks Arno.
Well done.
--
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-
De : twsocket-boun...@elists.org [mailto:twsocket-boun...@elists.org] De
Maybe a new component options would let the developer select the behaviour ?
Or maybe first try with on option and then automatically switch to the other
if it fails ?
--
francois.pie...@overbyte.be
The author of the freeware multi-tier middleware MidWare
The author of the freeware Internet
Can somebody please ban this f.. SPAMer?
Done !
--
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-
De : twsocket-boun...@elists.org
Just installed BCB XE and with the DVD was the Overbyte package.
I have installed it and trying to use it, but get the error:
Multiple declaration for 'sockaddr'
I know that it is something to do with the winsock file.
I have tried to move around with the includes, but no luck.
I have also for
How does one handle client/server connectivity in a way that avoids needing
to do port forwarding in routers? Ie Something like LogmeIn.com.
How do they have it so you log into their server and can contact the
client machine
even behind a firewall?
In those applications, you have a central
The implementation should be delegated to a handling class which could
be replaced easily by the developper. It see a mechanism based on
metaclass just like ClientClass property use.
Or maybe an interface.
Technically interfaces are very good. But ICS is class based and
introducing
Is possible to use TWSocket object without events contest?
I want to use a familiar way for me.
I like to create a thread for each connection.
Not sure I understand your question!
Facts:
a) you cannot use TWSocket without using events.
b) you can use TWSocket in a thread. There are samples
I use ICS components in a my application. I have a problem with
TWSocket and ServerWSocketDataAvailable. Sometimes, when the
ServerWSocketDataAvailable event is called and in action, the same
event is called again, before the previous instance is terminated.
I use line mode, #13#10 as
I'm just about to change to HttpServer MIME handling again, to use a
look-up list
read from the Windows classes registry or a text file) when the server
starts,
to replace the current hard coded MIME list. It will be editable by the
application.
The implementation should be delegated to a
82 matches
Mail list logo