Re: [twsocket] TWSocket Digest, Vol 154, Issue 8

2006-02-01 Thread Markus Humm
> > Hello Markus, > >> This is done because each thread does more things than just sending >> receiving. > > The message was meant because many people think they need a thread per > communication TWSocket channel. So I assume you have your own reason to > have a thread. > > What you can do is C

Re: [twsocket] Problems with TWSocket.close and DLL

2006-02-01 Thread Humm, Markus
> >> Humm, Markus wrote: > >>> The dll using that communication dll has one thread per socket > >>> (max. at most 10). Freing the socket is requested by this dll > >>> when it's execute method terminates. > >> > >> And the socket has been _created in method execute as well? > >> How do you achieve

Re: [twsocket] RasDial disconnect event

2006-02-01 Thread Arno Garrels
Wilfried Mestdagh wrote: > Hello Francois, > > I need to make a datacall server with Ras dial up. So I take your > RadDial as example. Works fine, only thing is that RASCS_Disconnected is > never fired. It does not fire in your example eather. > I'm testing it in winXP pro SP2. > > Maybe it does

Re: [twsocket] Clarification on asynchronus and threads

2006-02-01 Thread Arno Garrels
Markus Humm wrote: > Hello, > > given a program which uses several sockets for several connections > simultaniously. The responses from these connections (assume a 100 BMit > LAN and about 10 connections) occur assynchronically, all sockets have > been created by the main program. > > What if one

Re: [twsocket] Clarification on asynchronus and threads

2006-02-01 Thread Dan
- Original Message - From: "Markus Humm" <[EMAIL PROTECTED]> To: Sent: Wednesday, February 01, 2006 6:41 PM Subject: [twsocket] Clarification on asynchronus and threads > Hello, > > given a program which uses several sockets for several connections > simultaniously. The responses from t

[twsocket] Clarification on asynchronus and threads

2006-02-01 Thread Markus Humm
Hello, given a program which uses several sockets for several connections simultaniously. The responses from these connections (assume a 100 BMit LAN and about 10 connections) occur assynchronically, all sockets have been created by the main program. What if one of these sockets has lengthy thing

[twsocket] Problems with TWSocket.close and DLL

2006-02-01 Thread Humm, Markus
> > > And the socket has been _created in method execute as well? > > > How do you achieve that client sockets run in the client thread > > > if not using ThreadAttach/ThreadDetach? > > Hm, no it is created before execute. And no thread attach/detach is used. > > It works so far until the point wh

Re: [twsocket] Image transfer with TFtpClient

2006-02-01 Thread DZ-Jay
Fabio Defferrari wrote: > Hi, Arno > > Many thanks, it worked out fine. Since smaller images were sent perfectly, I > didn't think the problem was with Binary mode (and also because I thought > that > just setting Binary property to True would work...) The problem was, I would guess, that the

Re: [twsocket] Image transfer with TFtpClient

2006-02-01 Thread Fabio Defferrari
Hi, Arno Many thanks, it worked out fine. Since smaller images were sent perfectly, I didn't think the problem was with Binary mode (and also because I thought that just setting Binary property to True would work...) Thanks again, Fábio > Fabio Defferrari wrote: > > No, I'm setting Binary pr

Re: [twsocket] Image transfer with TFtpClient

2006-02-01 Thread Francois Piette
> > Did you run TypeSet() for changing into the binary mode? > No, I'm setting Binary property do True before connecting and sending the > file. You must call TypeSet to send the binary transfer type command to the server ! -- [EMAIL PROTECTED] Author of ICS (Internet Component Suite, freeware)

Re: [twsocket] RasDial disconnect event

2006-02-01 Thread Pande Hartana
On 2/1/2006 9:06:04 AM, in the email about Re: [twsocket] RasDial disconnect event, Wilfried Mestdagh <[EMAIL PROTECTED]> wrote: > Hello Francois, > > > Sorry, no idea. Too long since I played with RAS API ! > > No problem. If I find something I let you know. Found something else > strange also.

Re: [twsocket] Image transfer with TFtpClient

2006-02-01 Thread Arno Garrels
Fabio Defferrari wrote: > No, I'm setting Binary property do True before connecting and sending the > file. You must set it explizitly when connected to the server. i.e. FtpClient1.TypeBinaryAsync; Arno > Fábio > > >> Did you run TypeSet() for changing into the binary mode? >> >> Regards, >

Re: [twsocket] Problems with TWSocket.close and DLL

2006-02-01 Thread Wilfried Mestdagh
Hello Markus, > This is done because each thread does more things than just sending > receiving. The message was meant because many people think they need a thread per communication TWSocket channel. So I assume you have your own reason to have a thread. What you can do is Create and destroy TWS

Re: [twsocket] Image transfer with TFtpClient

2006-02-01 Thread Fabio Defferrari
No, I'm setting Binary property do True before connecting and sending the file. Fábio > Did you run TypeSet() for changing into the binary mode? > > Regards, > > SZ > > - Original Message - > From: "Fabio Defferrari" <[EMAIL PROTECTED]> > To: "ICS support mailing" > Sent: Wednesday,

Re: [twsocket] RasDial disconnect event

2006-02-01 Thread Wilfried Mestdagh
Hello Francois, > Sorry, no idea. Too long since I played with RAS API ! No problem. If I find something I let you know. Found something else strange also. Also it is with original demo program. - dial connection with PPP Deamon - connect socket client with tcp server listening on other side - (

Re: [twsocket] Image transfer with TFtpClient

2006-02-01 Thread Fastream Technologies
Did you run TypeSet() for changing into the binary mode? Regards, SZ - Original Message - From: "Fabio Defferrari" <[EMAIL PROTECTED]> To: "ICS support mailing" Sent: Wednesday, February 01, 2006 3:52 PM Subject: Re: [twsocket] Image transfer with TFtpClient Hi, François Same proble

Re: [twsocket] Image transfer with TFtpClient

2006-02-01 Thread Fabio Defferrari
Hi, François Same problem. I just recompiled the project using the latest ICS beta and tried sending the file again. Do you want the files so you can check it out? Regards, Fábio > Please try with latest ICS beta available from my website. This beta > version contains all the fixes since last

Re: [twsocket] Problems with TWSocket.close and DLL

2006-02-01 Thread Francois Piette
> > And the socket has been _created in method execute as well? > > How do you achieve that client sockets run in the client thread > > if not using ThreadAttach/ThreadDetach? > Hm, no it is created before execute. And no thread attach/detach is used. > It works so far until the point when I try t

Re: [twsocket] Problems with TWSocket.close and DLL

2006-02-01 Thread Arno Garrels
Humm, Markus wrote: >> -Ursprüngliche Nachricht- >> Von: Arno Garrels [mailto:[EMAIL PROTECTED] >> Gesendet: Mittwoch, 1. Februar 2006 12:10 >> An: ICS support mailing >> Betreff: Re: [twsocket] Problems with TWSocket.close and DLL >> >> >> Humm, Markus wrote: >>> The dll using that commu

Re: [twsocket] Problems with TWSocket.close and DLL

2006-02-01 Thread Humm, Markus
> -Ursprüngliche Nachricht- > Von: Arno Garrels [mailto:[EMAIL PROTECTED] > Gesendet: Mittwoch, 1. Februar 2006 12:10 > An: ICS support mailing > Betreff: Re: [twsocket] Problems with TWSocket.close and DLL > > > Humm, Markus wrote: > > The dll using that communication dll has one threa

Re: [twsocket] Problems with TWSocket.close and DLL

2006-02-01 Thread Humm, Markus
> -Ursprungliche Nachricht- > Von: Dod [mailto:[EMAIL PROTECTED] > Gesendet: Mittwoch, 1. Februar 2006 12:02 > An: ICS support mailing > Betreff: Re: [twsocket] Problems with TWSocket.close and DLL > > > Hello Markus, > > Why do you use one thread per socket ? TSWocket is event driven

Re: [twsocket] Image transfer with TFtpClient

2006-02-01 Thread Francois Piette
Please try with latest ICS beta available from my website. This beta version contains all the fixes since last release. -- Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html -- [EMAIL PROTECTED] Author of ICS (Internet Component Suite, freeware) Author of MidWare (Multi-tier

Re: [twsocket] Problems with TWSocket.close and DLL

2006-02-01 Thread Francois Piette
> TWSocket.close; > TWSocket.Free; > > is okay to terminate and release it? A gracefull close is nomally done by calling Shutdown. Then when OnSessionClosed event is fired, you can call Release to terminate the closing and free the component. OnSessionClosed event is fired when the remote socket

Re: [twsocket] Problems with TWSocket.close and DLL

2006-02-01 Thread Arno Garrels
Humm, Markus wrote: > The dll using that communication dll has one thread per socket > (max. at most 10). Freing the socket is requested by this dll > when it's execute method terminates. And the socket has been _created in method execute as well? How do you achieve that client sockets run in the

Re: [twsocket] Problems with TWSocket.close and DLL

2006-02-01 Thread Dod
Hello Markus, Why do you use one thread per socket ? TSWocket is event driven so you can connect to 500 servers if you want within same thread. For polling messages, if you .mulithread:=true then the TWSocket will create its own message queue. HM> Hello, HM> to the socket hanging on close. HM>

Re: [twsocket] Problems with TWSocket.close and DLL

2006-02-01 Thread Humm, Markus
Hello, to the socket hanging on close. There are different threads involved. The communication dll has one thread which only polls messages. That one shouldn't be the problem. The dll using that communication dll has one thread per socket (max. at most 10). Freing the socket is requested by this

[twsocket] Image transfer with TFtpClient

2006-02-01 Thread Fabio Defferrari
Hello, I'm using TFtpClient to put JPG image files on a FTP server. The problem is that with images smaller than 160/170 Kb, it works fine, but larger images are not sent correctly. The file itself seems not to be corrupted, but the image (a picture, in this case) is not sent completely. I al

Re: [twsocket] RasDial disconnect event

2006-02-01 Thread Francois Piette
Sorry, no idea. Too long since I played with RAS API ! -- Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html -- [EMAIL PROTECTED] Author of ICS (Internet Component Suite, freeware) Author of MidWare (Multi-tier framework, freeware) http://www.overbyte.be - Original Messa

[twsocket] RasDial disconnect event

2006-02-01 Thread Wilfried Mestdagh
Hello Francois, I need to make a datacall server with Ras dial up. So I take your RadDial as example. Works fine, only thing is that RASCS_Disconnected is never fired. It does not fire in your example eather. I'm testing it in winXP pro SP2. Maybe it does not matter becuase it seems RasHangupA i

Re: [twsocket] listening on a multihomed computer

2006-02-01 Thread Primož Gabrijelčič
No worries, I decoded it in first attempt :) Primoz > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Fastream > Technologies > Sent: Wednesday, February 01, 2006 10:11 AM > To: ICS support mailing > Subject: Re: [twsocket] listening on a multihome

Re: [twsocket] listening on a multihomed computer

2006-02-01 Thread Fastream Technologies
Sorry, it should be "either one OR all adapters". - Original Message - From: "Primoz Gabrijelcic" <[EMAIL PROTECTED]> To: "'ICS support mailing'" Sent: Wednesday, February 01, 2006 10:31 AM Subject: Re: [twsocket] listening on a multihomed computer > Thanks. > > Primoz > >> -Ori

Re: [twsocket] listening on a multihomed computer

2006-02-01 Thread Primož Gabrijelčič
Thanks. Primoz > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Fastream > Technologies > Sent: Wednesday, February 01, 2006 9:27 AM > To: ICS support mailing > Subject: Re: [twsocket] listening on a multihomed computer > > Hi, > > You can liste

Re: [twsocket] C++Builder 2006 and ICS

2006-02-01 Thread Arno Garrels
Albert Wiersch wrote: > I found a solution! Wow, that works even when you launch BDS with both personalities. Life can be so easy :) BTW: To get rid of the resampled BMP's in the tool palette you need a new set of dcr-files. Download: http://www.duodata.de/misc/IcsBdsDcr.zip They will be inclu

Re: [twsocket] listening on a multihomed computer

2006-02-01 Thread Fastream Technologies
Hi, You can listen on either one of all adapters (0.0.0.0). This is Winsock design. Regards, SZ - Original Message - From: "Primoz Gabrijelcic" <[EMAIL PROTECTED]> To: Sent: Wednesday, February 01, 2006 10:17 AM Subject: [twsocket] listening on a multihomed computer > Hello everybo

[twsocket] listening on a multihomed computer

2006-02-01 Thread Primož Gabrijelčič
Hello everybody, I have a following situation. Customer has a multihomed computer (let's say with three public IP addresses) and wants my ICS-based server to bind to only _two_ of those addresses. Is there a way to do that in ICS? If not, is this a limitation of ICS or WinSock? The closest I have

Re: [twsocket] C++Builder 2006 and ICS

2006-02-01 Thread Arno Garrels
Whow, that works even when you launch BDS with both personalities. Life can be so easy :) BTW: To get rid of the resampled BMP's in the tool palette you need a new set of dcr-files. Download: http://www.duodata.de/misc/IcsBdsDcr.zip They will be included in next ICS release. Also there seems t

Re: [twsocket] Problems with TWSocket.close and DLL

2006-02-01 Thread Francois Piette
> The DLL has a data module which has one single TWSocket for all incomming data > and for each outgoing connection a TWSocket is created dynamically. The > instance of this > socket is stored in a TObjectList together with other relevant information. > When the first connection is opened a sepera