[twsocket] TWSocketServer and TWSocket Port

2011-01-26 Thread daniel cc
Hello all, If I have server and client component at one side, server and client component at the other side Side A: TWSocketServer and TWSocket == Acts as client Side B: TWSocketServer and TWSocket == Acts as server Side A connects automatically to the site B because site A is acting as client

Re: [twsocket] TWSocketServer and TWSocket Port

2011-01-26 Thread Francois PIETTE
I would like to use the same port which the site A uses when it connects to the site B. Yes, you can have a same listening port at both sides. -- francois.pie...@overbyte.be http://www.overbyte.be -- To unsubscribe or change your settings for TWSocket mailing list please goto

Re: [twsocket] TWSocketServer and TWSocket Port

2011-01-26 Thread daniel cc
I would like to use the same port which the site A uses when it connects to the site B. Yes, you can have a same listening port at both sides. Thanks for the response. Yes, I know I can listen same ports but my question is, can I do that at Site A without opening any ports at the

Re: [twsocket] TWSocketServer and TWSocket Port

2011-01-26 Thread Francois PIETTE
I would like to use the same port which the site A uses when it connects to the site B. Yes, you can have a same listening port at both sides. Thanks for the response. Yes, I know I can listen same ports but my question is, can I do that at Site A without opening any ports at the

Re: [twsocket] TWSocketServer and TWSocket Port

2011-01-26 Thread daniel cc
The use only one socket and make all communications over that unique connection. No other choise in your situation. Thanks Francois, Please do correct me if I am wrong. Now, You are saying that it is not possible to have only server port opened, I need to open port 443 in both sites. Site

Re: [twsocket] TWSocketServer and TWSocket Port

2011-01-26 Thread Francois PIETTE
Please do correct me if I am wrong. Now, You are saying that it is not possible to have only server port opened, I need to open port 443 in both sites. Site A port 443 need to be open from PC and from the firewall. Site B port 443 need to be open from PC and from firewall. No, I didn't meant

Re: [twsocket] HttpCli, bandWidthLimit ?

2011-01-26 Thread Bruno Mannina
Dear Arno, Is it possible to have a date when you think that the bandwidth control will be available for POST method in HttpCli component ? I need this option, and my boss asks me if I can have a date when this option will be available. Many thanks for your help, Sincerely, Bruno Le

Re: [twsocket] HttpCli, bandWidthLimit ?

2011-01-26 Thread Arno Garrels
Bruno Mannina wrote: Dear Arno, Is it possible to have a date when you think that the bandwidth control will be available for POST method in HttpCli component ? Currently I cannot give you a date, I'm still rather busy. I do not need this feature in my own projects, so any work on that was

Re: [twsocket] TWSocketServer and TWSocket Port

2011-01-26 Thread RTT
(I am using SSL sockets in both sites) Why you insist in use SSL if the client and server applications are coded by you?!! Why use a standard that only exist because of the need to connect many different implementations of clients to many different implementations of servers? You will be

Re: [twsocket] TWSocketServer and TWSocket Port

2011-01-26 Thread Arno Garrels
RTT wrote: (I am using SSL sockets in both sites) Why you insist in use SSL if the client and server applications are coded by you?!! Why use a standard that only exist because of the need to connect many different implementations of clients to many different implementations of servers?

Re: [twsocket] TWSocketServer and TWSocket Port

2011-01-26 Thread daniel cc
(I am using SSL sockets in both sites) Why you insist in use SSL if the client and server applications are coded by you?!! Why use a standard that only exist because of the need to connect many different implementations of clients to many different implementations of servers? You will be much

Re: [twsocket] TWSocketServer and TWSocket Port

2011-01-26 Thread daniel cc
Thanks Arno, Your answer is just a music to my ears :) RTT wrote: (I am using SSL sockets in both sites) Why you insist in use SSL if the client and server applications are coded by you?!! Why use a standard that only exist because of the need to connect many different implementations of

Re: [twsocket] TWSocketServer and TWSocket Port

2011-01-26 Thread RTT
SSL/TLS aktually uses common, powerful and strong encryption algorithms. However secure peer to peer communication is much more than just that. SSL security includes, for instance, peer verification and protects against Man in the Middle attacks. Man in the Middle attacks don't work if the

Re: [twsocket] TWSocketServer and TWSocket Port

2011-01-26 Thread Arno Garrels
RTT wrote: SSL/TLS aktually uses common, powerful and strong encryption algorithms. However secure peer to peer communication is much more than just that. SSL security includes, for instance, peer verification and protects against Man in the Middle attacks. Man in the Middle attacks don't

[twsocket] HttpAppServer, how to alter client.path

2011-01-26 Thread Busai Péter
Hi, I'm trying to create nested virtual document names like for example: /Admin/Serverinfo I created an URLHandler for that HttpAppSrv.AddGetHandler('/Admin/ServerInfo', TUrlHandlerAdmin); Images for web page are contained in {docroot}/images directory In the template document I use relative path

Re: [twsocket] HttpAppServer, how to alter client.path

2011-01-26 Thread Busai Péter
I found AddGetAllowedPath in demo project. Is that something to to do with this? What is it doing? Not much comment about it in the source. Peter Hi, I'm trying to create nested virtual document names like for example: /Admin/Serverinfo I created an URLHandler for that

[twsocket] sending jpg through httpserver

2011-01-26 Thread Edwin @ Clanhay
I am trying to send a jpg from delphi's tjpgImage to a client with the tHTTPServer component. Would like to keep it in a memory stream and not save to disk, but AnswerStream is not what it sounds like. Searched the archives but found little that was close to what I wanted. Still using ICS 5.

Re: [twsocket] HttpAppServer, how to alter client.path

2011-01-26 Thread Busai Péter
Ok, it is working now. Just some missing slashes in path caused trouble. Peter I found AddGetAllowedPath in demo project. Is that something to to do with this? What is it doing? Not much comment about it in the source. Peter -- To unsubscribe or change your settings for TWSocket mailing

Re: [twsocket] sending jpg through httpserver

2011-01-26 Thread Busai Péter
Hi Edwin, AnswerStream is just perfect for that. Here is how I send png. It is stored in FpngStream, which is also a TMemoryStream. I dont want it to be destroyed after sent. That is why I create an other memory stream and copy then content. ClientCnx.DocStream := TMemoryStream.Create;

Re: [twsocket] TWSocketServer and TWSocket Port

2011-01-26 Thread RTT
Man in the Middle attacks don't work if the man in the middle don't know how to handle the encrypted data/protocol he is intercepting. True, and how do you manage that is not happening? Can't be happening because the man in the middle can't generate valid data, or alter intercepted data

[twsocket] Another unicode issue

2011-01-26 Thread Busai Péter
In HttpAppServer, URLHandler Call Client.AnswerPage(Flags,'','','template.html',nil,['SOMEKEY','A']); The value of SOMEKEY must be one character long. Result rendered in html page: Unsupported TVarRec.VType = vtWideChar Steps to reproduce in demo: Modify TUrlHandlerHomePageHtml to pass just

Re: [twsocket] TWSocketServer and TWSocket Port

2011-01-26 Thread daniel cc
RTT, First, I am not building a bank system where I would need extremely high security. It is a very simple monitoring system. SSL is okay for this as far as I am concerned. You may be right or may not. For me the mosty important here is to learn one thing at a time. If I listen you, I have to

Re: [twsocket] HttpCli, bandWidthLimit ?

2011-01-26 Thread Anton S.
Arno, in FtpCli unit there's quite large piece of code {$IFDEF UseBandwidthControl} FBandwidthCount := 0; // Reset byte counter if ftpBandwidthControl in FOptions then begin if not Assigned(FBandwidthTimer) then FBandwidthTimer :=

Re: [twsocket] TWSocketServer and TWSocket Port

2011-01-26 Thread Anton S.
RTT: Why you insist in use SSL if the client and server applications are coded by you?!! Why use a standard that only exist because of the need to connect many different implementations of clients to many different implementations of servers? It's easy to implement encryption but you'll have