Re: [twsocket] FTP client and windows service problem

2005-04-26 Thread Francois Piette
Maybe you have a file permission problem. Your service is logged under system 
account or another
account. Check that it has the required permissions.

 Also a side problem I'm having is: do you know of a simple way to parse the
 results from the DIR command into a simple list of filenames, sizes,

There is source code available at http://www.smatters.com/ics/. Rather old but 
still working.
--
[EMAIL PROTECTED]
http://www.overbyte.be


- Original Message - 
From: Nikolay Simeonov [EMAIL PROTECTED]
To: twsocket@elists.org
Sent: Tuesday, April 26, 2005 1:44 AM
Subject: [twsocket] FTP client and windows service problem


 Hello Francois,

 I'm writing a service and when I try to get the directory FTP1.Dir returns
 false. How can I pinpoint the problem and is there a way to figure out why
 it's returning false?

 I'm using it in non-multithread mode. What's more curious about the code is
 the fact it works when I use the same unit from a normal windows program.
 And from the service it's crashing. Do you have any ideas what could
 possibly cause the error?

 Also a side problem I'm having is: do you know of a simple way to parse the
 results from the DIR command into a simple list of filenames, sizes,
 attributes (directory or a file) and timestamp? All I'm getting is a text
 file and currently I hardcoded the parsing, and that isn't listed anywhere
 as best practice, but all I wanted is to get it working quickly and clean it
 up later.

 Thanks in advance for any help and ideas,
 Nikolay Simeonov

 -- 
 To unsubscribe or change your settings for TWSocket mailing list
 please goto http://www.elists.org/mailman/listinfo/twsocket
 Visit our website at http://www.overbyte.be



-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] FTP client and windows service problem

2005-04-26 Thread Arno Garrels
Nikolay Simeonov wrote:
 Hello Francois,
 
 I'm writing a service and when I try to get the directory FTP1.Dir returns
 false. How can I pinpoint the problem and is there a way to figure out why
 it's returning false?

There is i.e. property StatusCode and there are events also.
You may assign OnDisplay and write to a log file as well.
Or use async methods and handle your program flow from within 
the OnRequestDone-handler.

 
 I'm using it in non-multithread mode. What's more curious about the code
 is the fact it works when I use the same unit from a normal windows
 program. And from the service it's crashing.
 Do you have any ideas what
 could possibly cause the error?

Without some more information, it's hard to say anything. 
 
 Also a side problem I'm having is: do you know of a simple way to parse
 the results from the DIR command into a simple list of filenames, sizes,
 attributes (directory or a file) and timestamp? All I'm getting is a text
 file and currently I hardcoded the parsing, and that isn't listed anywhere
 as best practice, but all I wanted is to get it working quickly and clean
 it up later.

I've downloaded a unit named ftpcommon.pas somewhere that helps parsing a lot,
but I can't find the link at the moment:(

Arno Garrels 
 


--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] VOIP

2005-04-26 Thread Arno Garrels
I've just found something interisting here:

http://www.ictrnid.org.uk/downloads/SIP/SIP-0.3.zip

The stack uses Indy 9.0.14 :( why not ICS?


RNID SIP STACK
==

This library of code consists of three main parts:
* a SIP stack (RFC 3261),
* an RTP stack (RFC 3550), and
* SDP (RFC 2327) parsing and utilities.

The code currently implements most of SIP, RTP. The stack can make and receive
calls from/to X-Lite, linphonec. It also connects correctly with ser, the Sip
Express Router.

Arno Garrels

--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


RE: [twsocket] FTP client and windows service problem

2005-04-26 Thread Nikolay Simeonov
Hi Arno,

I did use any possible way that occurred to my mind to figure out what the
problem is without any success. And as I said - it's working just fine when
I am testing it from a standart windows application, but when I start the
service it's crashing. What I was getting from the DIR command is that it
couldn't save the file. I also tried generating a random file name for the
directory listing and it didn't help either. Is there another way to capture
the directory listing without saving it to a file? 

 I've downloaded a unit named ftpcommon.pas somewhere that helps parsing a
lot, but I can't find the link at the moment:(

If you can send me a copy ot this unit I would be eternally thankful to you
:) Send it to my first name@my last name.net   (not .com)

Best Regards,
Nikolay Simeonov


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Arno Garrels
Sent: Tuesday, April 26, 2005 10:14 AM
To: ICS support mailing
Subject: Re: [twsocket] FTP client and windows service problem

Nikolay Simeonov wrote:
 Hello Francois,
 
 I'm writing a service and when I try to get the directory FTP1.Dir 
 returns false. How can I pinpoint the problem and is there a way to 
 figure out why it's returning false?

There is i.e. property StatusCode and there are events also.
You may assign OnDisplay and write to a log file as well.
Or use async methods and handle your program flow from within the
OnRequestDone-handler.

 
 I'm using it in non-multithread mode. What's more curious about the 
 code is the fact it works when I use the same unit from a normal 
 windows program. And from the service it's crashing.
 Do you have any ideas what
 could possibly cause the error?

Without some more information, it's hard to say anything. 
 
 Also a side problem I'm having is: do you know of a simple way to 
 parse the results from the DIR command into a simple list of 
 filenames, sizes, attributes (directory or a file) and timestamp? All 
 I'm getting is a text file and currently I hardcoded the parsing, and 
 that isn't listed anywhere as best practice, but all I wanted is to 
 get it working quickly and clean it up later.

I've downloaded a unit named ftpcommon.pas somewhere that helps parsing a
lot, but I can't find the link at the moment:(

Arno Garrels 
 


--
To unsubscribe or change your settings for TWSocket mailing list please goto
http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] FTP client and windows service problem

2005-04-26 Thread Arno Garrels
Nikolay Simeonov wrote:
 Hi Arno,
 
 I did use any possible way that occurred to my mind to figure out what the
 problem is without any success. And as I said - it's working just fine
 when I am testing it from a standart windows application, but when I
 start the service it's crashing. What I was getting from the DIR command
 is that it couldn't save the file. I also tried generating a random file
 name for the directory listing and it didn't help either. Is there
 another way to capture the directory listing without saving it to a file?

As Francois wrote before this sounds like a permission problem.
Check NTFS rights. If your service runs as the LocalSystem the user is System.
 
 I've downloaded a unit named ftpcommon.pas somewhere that helps parsing a
 lot, but I can't find the link at the moment:(
 
 If you can send me a copy ot this unit I would be eternally thankful to
 you :) Send it to my first name@my last name.net   (not .com)

The link is in Francois' message as well.

Arno Garrels

--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


RE: [twsocket] FTP client and windows service problem

2005-04-26 Thread Nikolay Simeonov
It definitely has the permissions because I ran it as an administrator. I
tried as local system as well - both have full access granted for this
folder (as a matter of fact - for every folder on my development machine).

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Arno Garrels
Sent: Tuesday, April 26, 2005 1:11 PM
To: ICS support mailing
Subject: Re: [twsocket] FTP client and windows service problem

Nikolay Simeonov wrote:
 Hi Arno,
 
 I did use any possible way that occurred to my mind to figure out what 
 the problem is without any success. And as I said - it's working just 
 fine when I am testing it from a standart windows application, but 
 when I start the service it's crashing. What I was getting from the 
 DIR command is that it couldn't save the file. I also tried generating 
 a random file name for the directory listing and it didn't help 
 either. Is there another way to capture the directory listing without
saving it to a file?

As Francois wrote before this sounds like a permission problem.
Check NTFS rights. If your service runs as the LocalSystem the user is
System.
 
 I've downloaded a unit named ftpcommon.pas somewhere that helps 
 parsing a
 lot, but I can't find the link at the moment:(
 
 If you can send me a copy ot this unit I would be eternally thankful to
 you :) Send it to my first name@my last name.net   (not .com)

The link is in Francois' message as well.

Arno Garrels

--
To unsubscribe or change your settings for TWSocket mailing list please goto
http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


RE: [twsocket] FTP client and windows service problem

2005-04-26 Thread Nikolay Simeonov
It was saving the data in the service's folder and I'm 100% sure it had the
proper permissions to do that. The file was created but with a size of 0.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Angus Robertson - Magenta Systems Ltd
Sent: Tuesday, April 26, 2005 1:49 PM
To: twsocket@elists.org
Subject: RE: [twsocket] FTP client and windows service problem

 It definitely has the permissions because I ran it as an 
 administrator. I tried as local system as well - both have full access 
 granted for this folder (as a matter of fact - for every folder on my 
 development machine).

Applications running in the service window do not get the same rights as
logged-on users, in particular mapped network drives are not available, you
have to use full UNC paths.  

Angus

--
To unsubscribe or change your settings for TWSocket mailing list please goto
http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


RE: [twsocket] FTP client and windows service problem

2005-04-26 Thread Nikolay Simeonov
But in this case FTPclient1.Dir would return true and in my case it's
returning false. However no exception is thrown and I'm lost how to figure
out WHY I'm getting false there and what the problem could be.

Everything is working just fine as Windows Application - it's getting the
folder listing, downloading the files etc., but when I use the same unit in
a Service I'm getting false when I call the DIR function. If the windows
program was crashing I would easier debug it but in the service I cannot go
step by step through the component's sources.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Arno Garrels
Sent: Tuesday, April 26, 2005 2:17 PM
To: ICS support mailing
Subject: Re: [twsocket] FTP client and windows service problem

Nikolay Simeonov wrote:
 It was saving the data in the service's folder and I'm 100% sure it 
 had the proper permissions to do that. The file was created but with a 
 size of 0.

That's normal when you list an empty directory.

Arno Garrels



--
To unsubscribe or change your settings for TWSocket mailing list please goto
http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] FTP client and windows service problem

2005-04-26 Thread Francois Piette
It's easy to do a quick test using a TFileStream to write something in the 
service's folder to
confirm it's a permission problem or not.
--
[EMAIL PROTECTED]
http://www.overbyte.be


- Original Message - 
From: Nikolay Simeonov [EMAIL PROTECTED]
To: 'ICS support mailing' twsocket@elists.org
Sent: Tuesday, April 26, 2005 12:58 PM
Subject: RE: [twsocket] FTP client and windows service problem


 It was saving the data in the service's folder and I'm 100% sure it had the
 proper permissions to do that. The file was created but with a size of 0.

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
 Behalf Of Angus Robertson - Magenta Systems Ltd
 Sent: Tuesday, April 26, 2005 1:49 PM
 To: twsocket@elists.org
 Subject: RE: [twsocket] FTP client and windows service problem

  It definitely has the permissions because I ran it as an
  administrator. I tried as local system as well - both have full access
  granted for this folder (as a matter of fact - for every folder on my
  development machine).

 Applications running in the service window do not get the same rights as
 logged-on users, in particular mapped network drives are not available, you
 have to use full UNC paths.

 Angus

 --
 To unsubscribe or change your settings for TWSocket mailing list please goto
 http://www.elists.org/mailman/listinfo/twsocket
 Visit our website at http://www.overbyte.be


 -- 
 To unsubscribe or change your settings for TWSocket mailing list
 please goto http://www.elists.org/mailman/listinfo/twsocket
 Visit our website at http://www.overbyte.be



-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] FTP client and windows service problem

2005-04-26 Thread Dan
Can you list to a MemoryStream just to rule out permissions problems.
Dan
- Original Message - 
From: Nikolay Simeonov [EMAIL PROTECTED]
To: 'ICS support mailing' twsocket@elists.org
Sent: Tuesday, April 26, 2005 11:58 AM
Subject: RE: [twsocket] FTP client and windows service problem


It was saving the data in the service's folder and I'm 100% sure it had 
the
proper permissions to do that. The file was created but with a size of 0.


--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


[twsocket] installation of ICS with BCB6.0

2005-04-26 Thread Alain Lecomte
Perhaps a well known problem :
I try to install ICS with BCB6.0

- Building of IcsBcb60.bpk is ok (no error)
- Just after, i get a window stating that the following modification is 
mandatory : Add bcbie (Bcbie has the explicit unit Shdocvw_ocx)= It 
seems that the only choice i have is to push ok.
- Then, i install IcsBcb60.bpl just produced above, and i get the message 
Cannot load IcsBcb60.bpl because it has the unit Shdocvw_ocx which is already 
in bcbie60.
- If i uninstall bcbie60.bpl, i can then install IcsBcb60.bpl but it does not 
work properly.

Any solution ?
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] FTP client and windows service problem

2005-04-26 Thread Arno Garrels
Nikolay Simeonov wrote:
 But in this case FTPclient1.Dir would return true and in my case it's
 returning false. 

Check the StatusCode, on listing an empty directory it may be either 450 or 550.

450 Requested file action not taken. File unavailable (e.g., file busy).
550 Requested action not taken. File unavailable (e.g., file not found, no 
access).


 However no exception is thrown and I'm lost how to figure
 out WHY I'm getting false there and what the problem could be.
 
 Everything is working just fine as Windows Application - it's getting the
 folder listing, downloading the files etc., but when I use the same unit
 in a Service I'm getting false when I call the DIR function.

So you are not listing an empty directory here.

 If the
 windows program was crashing I would easier debug it but in the service I
 cannot go step by step through the component's sources.

Arno Garrels 


--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] FTP client and windows service problem

2005-04-26 Thread Dan
- Original Message - 
From: Nikolay Simeonov [EMAIL PROTECTED]
To: 'ICS support mailing' twsocket@elists.org
Sent: Tuesday, April 26, 2005 12:24 PM
Subject: RE: [twsocket] FTP client and windows service problem


But in this case FTPclient1.Dir would return true and in my case it's
returning false. However no exception is thrown and I'm lost how to figure
out WHY I'm getting false there and what the problem could be.
Everything is working just fine as Windows Application - it's getting the
folder listing, downloading the files etc., but when I use the same unit 
in
a Service I'm getting false when I call the DIR function. If the windows
program was crashing I would easier debug it but in the service I cannot 
go
step by step through the component's sources.

You can use Attach to Process in the Delphi IDE.
Dan 

--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


[twsocket] [HELP] FtpServer : Long Process HOWTO

2005-04-26 Thread Guillaume MAISON
Hi everyone,

here's my problem :

still in my video server, i'm using the FtpServer component
to download a set of images, taken from a camera, through one
simple RETR call.

On the OnGetProcessing event, i retrieve from a DB (the connection
has already been made) all the images needed
(range of images provided in the filename which is formatted)
and push them into the Client.Datastream.

for the algorithm, i have no problem.

but what happens if several ftp client asks at the same time
for a big amount of images (average : 1 image = 21Ko) let's say 1200 images ?

Is Each OnGetProcessingEvent fired one after anoher ?
which would then result in a queueing of each request...

thanks for your help !

Best regards,

Guillaume MAISON
-
Guillaume MAISON - [EMAIL PROTECTED]
83, Cours Victor Hugo
47000 AGEN
Tél : 05 53 87 91 48 - Fax : 05 53 68 73 50
e-mail : [EMAIL PROTECTED] - Web : http://nauteus.com


--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] [HELP] FtpServer : Long Process HOWTO

2005-04-26 Thread Francois PIETTE
FTP server component will send the files simultaneously to all client at
their own speed. It is serialized only when in the event handler, not for
sending files.

--
[EMAIL PROTECTED]
http://www.overbyte.be


- Original Message - 
From: Guillaume MAISON [EMAIL PROTECTED]
To: iCS support mailing twsocket@elists.org
Sent: Tuesday, April 26, 2005 5:10 PM
Subject: [twsocket] [HELP] FtpServer : Long Process HOWTO


 Hi everyone,

 here's my problem :

 still in my video server, i'm using the FtpServer component
 to download a set of images, taken from a camera, through one
 simple RETR call.

 On the OnGetProcessing event, i retrieve from a DB (the connection
 has already been made) all the images needed
 (range of images provided in the filename which is formatted)
 and push them into the Client.Datastream.

 for the algorithm, i have no problem.

 but what happens if several ftp client asks at the same time
 for a big amount of images (average : 1 image = 21Ko) let's say 1200
images ?

 Is Each OnGetProcessingEvent fired one after anoher ?
 which would then result in a queueing of each request...

 thanks for your help !

 Best regards,

 Guillaume MAISON
 -
 Guillaume MAISON - [EMAIL PROTECTED]
 83, Cours Victor Hugo
 47000 AGEN
 Tél : 05 53 87 91 48 - Fax : 05 53 68 73 50
 e-mail : [EMAIL PROTECTED] - Web : http://nauteus.com


 -- 
 To unsubscribe or change your settings for TWSocket mailing list
 please goto http://www.elists.org/mailman/listinfo/twsocket
 Visit our website at http://www.overbyte.be



--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be