Re: [twsocket] OT: 3Proxy malware?

2011-02-14 Thread Fastream Technologies
Dear Arno,

On Sun, Feb 13, 2011 at 7:10 PM, Arno Garrels  wrote:

> Fastream Technologies wrote:
> > Dear Arno,
> >
> > Why don't you add our ICS-based IQ Proxy Server 5.0.0C1 to your test
> > againsts:
> > http://www.iqproxyserver.com
>
> Thanks for the hint, but as I understand it is a reverse proxy, I currently
> want to test the other direction with CONNECT requests (tunnel) including
> NTLM and Basic authentication.
>
>
>

In 2010, we added the forward proxy module with CONNECT support as well as
NTLM/Basic/Digest/forms authentication!

Best Regards,

SZ
--
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


[twsocket] TWSocketServer & TWSocketClient send receive files

2011-02-14 Thread daniel cc
Hello,
Can someone please guide me to a correct demo/sample of how to send & receive 
files?

thanks in advance
--
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] TWSocketServer & TWSocketClient send receive files

2011-02-14 Thread Francois PIETTE
Can someone please guide me to a correct demo/sample of how to send & 
receive files?


Do you have any preference about the protocol to use ?
What are your requirement ? "Send and receive" file is a little bit short to 
describe your needs.


--
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 http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] TWSocketServer & TWSocketClient send receive files

2011-02-14 Thread daniel cc

Hi Francois,
Many thanks for the response.
I am doing very good with the components sdo far :)

I need to send single file from the server and receive single file from the 
client (1 file at the time such as: .txt, .exe).
I will be sending and receiving only single files and the size will be 
maximum  of 100MB

Is it possible to do it over the socket with for example file stream?
if not what are your suggestions?

I hope this was clear.

Best regards

-Original Message- 
From: Francois PIETTE

Sent: Monday, February 14, 2011 12:38 PM
To: ICS support mailing
Subject: Re: [twsocket] TWSocketServer & TWSocketClient send receive files

Can someone please guide me to a correct demo/sample of how to send & 
receive files?


Do you have any preference about the protocol to use ?
What are your requirement ? "Send and receive" file is a little bit short to
describe your needs.

--
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 http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be 


--
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] TWSocketServer & TWSocketClient send receive files

2011-02-14 Thread Francois PIETTE

I hope this was clear.


Not enough. see below.

I need to send single file from the server and receive single file from 
the client (1 file at the time such as: .txt, .exe).


What about file metadata such as filename and timestamp ?
What about permissions to access the file at sender side and to write the 
file at receiver side ?


I will be sending and receiving only single files and the size will be 
maximum  of 100MB


Doesn't matter. The only special case wiuld be very small files.


Is it possible to do it over the socket with for example file stream?
if not what are your suggestions?


FTP, HTTTP, SMTP/POP3, NNTP are all capable of transmit file and they are 
standard protocols based on TCP sockets.
You may also design your own protocol based on your own requirements which 
are...


Basically, using HTTP client and server components is the easiest way of 
transfering files without the hassle of designing your own protocol.


--
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 http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


[twsocket] Correct termination logic

2011-02-14 Thread David Lewis

Hi,

I am developing an application that uses both a 
TWSocketServer/TTcpSrvClient for TCP comms and a THttpCli to retrieve 
periodic images over HTTP. I'm doing this in C++ in BDS2006.


All components are created (new) in code, so not present on the forms, 
and then deleted in class destructors.


Now, before I added the THttpCli, everything was fine. Startup, normal 
comms operation, and shutdown went without a hitch and no exceptions 
fire. Even Codeguard was happy.


However, now I've added the THttpCli component,  I can't find a way to 
shutdown the application without exceptions & lockups.


In normal operation, the component works. It will retrieve images (every 
30 seconds [TTimer] from a video server) if the network is up, 
OnSocketError fires if the connection is down.


But, when I try to terminate the program, I can't get a clean shutdown. 
Depending on what I've tried, I get exceptions or lockups/hangs.


Deleting the component the moment the class destructor is called fails, 
as the component could be in the middle of an operation (I am in a high 
latency environment). Calling Abort() at this time seems to just hang 
(the operational routine I have ever returns from the component).


What is the 'correct' way to cleanly shutdown the THttpCli component, 
whilst it could be in use?


Thanks,

Dave



--
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] TWSocketServer & TWSocketClient send receive files

2011-02-14 Thread daniel cc

Thanks Francois,
I probably need to get into this abit more.
I have some more details..

What about file metadata such as filename and timestamp ?
What about permissions to access the file at sender side and to write the
file at receiver side ?

--> I actualy think I could handle it on the both sides very easyly because,
Upload from client to the server (log files only which are .txt) with an 
automated process such as client will send the log file when it is asked by 
the server like,
server sends command: getlogfile and client answers by sending the log file 
into a prefixed directory placed in the server with a prefixed name.
Server sends an update file which is prefixed name such as "setup.exe" and 
client will save it into a prefixed directory placed in the client with a 
prefixed name.
Everything will be done hidden at the background with no user attantion 
required.


FTP, HTTTP, SMTP/POP3, NNTP are all capable of transmit file and they are
standard protocols based on TCP sockets.
You may also design your own protocol based on your own requirements which
are...
--> I actualy have the protocol which is just the command based and 
everything works real good and smooth but sending and receiving files is 
once more something which I don't know if possible to do in the same way.
Like: Server sends command: Get me the log file and client answers by 
sending the file, or server sends the setup.exe file and client responds by 
installing it.



--
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 http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be 


--
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] OT: 3Proxy malware?

2011-02-14 Thread Anton S.
Arno,

"18/02/2009 3[APA3A]tiny proxy 0.6
New features since 0.5 are marked with !.

 Features:
  1. General
+ HTTP/1.1 Proxy with keep-alive client and server support,
  transparent proxy support."

http://3proxy.ru/0.6.1/Release.notes.txt

and this software is unlikely a trojan. I used it for long time, speaked with 
developer. And it also opensource. Maybe AV's detect its net communication 
parts.

-- 
Anton
--
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] TWSocketServer & TWSocketClient send receive files

2011-02-14 Thread Francois PIETTE

FTP, HTTTP, SMTP/POP3, NNTP are all capable of transmit file and they are
standard protocols based on TCP sockets.
You may also design your own protocol based on your own requirements which
are...
--> I actualy have the protocol which is just the command based and 
everything works real good and smooth but sending and receiving files is 
once more something which I don't know if possible to do in the same way.


You can easily add file transfer to your protocol. For example, you 
implement a command "file" taking as argument the file size, filename and 
timestamp (UTC). Then the sender read the file block by block and send 
exactly the number of byte, then the command is finished. At receiver side, 
whe the file command is received, the receiver parse file size, timestamp 
and file namne, then switch linemode to off and wait the receive exatcly 
filesize bytes, save it in the given file (or stream) and then switch back 
linemode to on and send some OK message to the sender. Basically this is 
more or less how http 1.1 is working.


--
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 http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] Correct termination logic

2011-02-14 Thread Francois PIETTE
What is the 'correct' way to cleanly shutdown the THttpCli component, 
whilst it could be in use?


Set all events to nil and call abort.

--
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 http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] TWSocketServer & TWSocketClient send receive files

2011-02-14 Thread daniel cc

Thank you :)
Just what wanted to hear.

With best regards

-Original Message- 
From: Francois PIETTE

Sent: Monday, February 14, 2011 2:19 PM
To: ICS support mailing
Subject: Re: [twsocket] TWSocketServer & TWSocketClient send receive files


FTP, HTTTP, SMTP/POP3, NNTP are all capable of transmit file and they are
standard protocols based on TCP sockets.
You may also design your own protocol based on your own requirements which
are...
--> I actualy have the protocol which is just the command based and 
everything works real good and smooth but sending and receiving files is 
once more something which I don't know if possible to do in the same way.


You can easily add file transfer to your protocol. For example, you
implement a command "file" taking as argument the file size, filename and
timestamp (UTC). Then the sender read the file block by block and send
exactly the number of byte, then the command is finished. At receiver side,
whe the file command is received, the receiver parse file size, timestamp
and file namne, then switch linemode to off and wait the receive exatcly
filesize bytes, save it in the given file (or stream) and then switch back
linemode to on and send some OK message to the sender. Basically this is
more or less how http 1.1 is working.

--
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 http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be 


--
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] TWSocketServer & TWSocketClient send receive files

2011-02-14 Thread Francois PIETTE

Just what wanted to hear.


My pleasure :-)

You alos have the option to send the file in line mode and then you must 
encode each block for example using base64 (See OverbyteIcsMimeUtils). This 
is how SMTP/POP3/NNTP is handling files. This will takes more space but will 
offer pure line oriented protocol which you may prefer... or not. It's a 
matter of taste.


--
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: "daniel cc" 

To: "ICS support mailing" 
Sent: Monday, February 14, 2011 2:19 PM
Subject: Re: [twsocket] TWSocketServer & TWSocketClient send receive files



Thank you :)
Just what wanted to hear.

With best regards

-Original Message- 
From: Francois PIETTE

Sent: Monday, February 14, 2011 2:19 PM
To: ICS support mailing
Subject: Re: [twsocket] TWSocketServer & TWSocketClient send receive files


FTP, HTTTP, SMTP/POP3, NNTP are all capable of transmit file and they are
standard protocols based on TCP sockets.
You may also design your own protocol based on your own requirements 
which

are...
--> I actualy have the protocol which is just the command based and 
everything works real good and smooth but sending and receiving files is 
once more something which I don't know if possible to do in the same way.


You can easily add file transfer to your protocol. For example, you
implement a command "file" taking as argument the file size, filename and
timestamp (UTC). Then the sender read the file block by block and send
exactly the number of byte, then the command is finished. At receiver 
side,

whe the file command is received, the receiver parse file size, timestamp
and file namne, then switch linemode to off and wait the receive exatcly
filesize bytes, save it in the given file (or stream) and then switch back
linemode to on and send some OK message to the sender. Basically this is
more or less how http 1.1 is working.

--
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 http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be
--
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 


--
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] OT: 3Proxy malware?

2011-02-14 Thread Arno Garrels
Anton S. wrote:
> Arno,
> 
> "18/02/2009 3[APA3A]tiny proxy 0.6
> New features since 0.5 are marked with !.
> 
> Features:
>  1. General
> + HTTP/1.1 Proxy with keep-alive client and server support,
>  transparent proxy support."

Is there some switch to turn that on?
I just tried briefly yesterday and it returned HTTP/1.0
responses to my HTTP/1.1 request.

-- 
Arno Garrels

> 
> http://3proxy.ru/0.6.1/Release.notes.txt
> 
> and this software is unlikely a trojan. I used it for long time,
> speaked with developer. And it also opensource. Maybe AV's detect its
> net communication parts.  
> 
> --
> Anton
--
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


[twsocket] Send and Shutdown oddity

2011-02-14 Thread Markus Humm
Hello,

what does the event OnSentData _exactly_ signal?
Does it really signal that WinSock has completed sending the data?
Because in my investigations about my problem yesterday I could see that
this event always fires on my sending side and reports the correct
number of bytes I have sent. But in most cases nothing is received on
the receiver side.

Unfortunatelly the documentation is weak about details, as there are
many Wiki accounts now but only few ever edited something in the wiki.
Why do they request an account and then don't use it? I'd like to
encourage those who already have a wiki account but never wrote anything
in it to start helping to document ICS!

Greetings

Markus
--
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