[twsocket] www.overbyte.be

2006-01-31 Thread Bjørnar Nielsen
Down again?
 
Regards Bjørnar
-- 
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] www.overbyte.be

2006-01-31 Thread Francois Piette
> Down again?

Works from here.
Note that the provider is moving, so there may be some interruption while they 
setup things, and
probably when they change their IPs (DNS propagation).
--
[EMAIL PROTECTED]
Author of ICS (Internet Component Suite, freeware)
Author of MidWare (Multi-tier framework, freeware)
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] Files Required for Build List

2006-01-31 Thread Francois Piette
> I'm putting together a Delphi applet using Francois's FTPCli component.
> 
> Which files do I have to include in the distribution build for the 
> FTPCli component and where should they be installed.
> 
> Apologies for the naivety of the question.

Unless you build your application with runtime packages, only your exe file is 
needed.
If you use run time packages, you need to deploy the packages you selected to 
use.

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


-- 
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] www.overbyte.be

2006-01-31 Thread Bjørnar Nielsen

> > Down again?
> 
> Works from here.
> Note that the provider is moving, so there may be some 
> interruption while they setup things, and probably when they 
> change their IPs (DNS propagation).

I understand. Now it works from here.

Regards Bjørnar

-- 
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] Problems with TWSocket.close and DLL

2006-01-31 Thread Humm, Markus
Hello,

I'm writing a application in D2006 and build a communication dll for it.
The communications dll encapsulates different communication methods (for USB, 
ethernet...).
Ethernet communication is done via ICS TWSocket, the version included on the 
partner cd.

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 seperate thread within the DLL is created 
for handling
of the windows messages (needed by TWSocket and other components as well).

This works so far until the point is reached where the DLL is freed.
The DLL is used statically in another DLL which has a thread for each 
connection too.
This 2nd dll is loaded dynamically. When it is freed via free library, its 
finalization
checks if there are any open connections thus threads) left. If yes, they all 
get freed
and by freeing them each connection in the first dll should get closed too.

With TWSocket this doesn't work, because socket.close seems to hang and the 1st 
DLL never 
reaches the statement after the close.

Pseudo code is like this:

- write a marker to the windows eventlog (debug output)
- call socket.close;
- sleep(25);
- write a marker to the windows eventlog (debug output)
- call socket.free;

The 2nd marker is never reached!!!
In my test app. it's as follows: a connection is opened, data is send and when 
closing the form,
freelibrary for the 2nd dll is called. It hangs the application for some time 
and a look in the
eventlog reveals that the 2nd marker never gets written. If you try to close 
the app. again after
halfe a minute itgets closed like nothing had hapened.

If one does the same thing (same test app.) but uses a RS232 connection instead 
of the UPD one 
via TWSocket it works well when you close the app.

What can this be? I think the bug was already in the dll back when I used D2005 
for development,
I don't think it's specific to the ICS version on the D2006 partner DVD.

Greetings

Markus Humm
-- 
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] Problems with TWSocket.close and DLL

2006-01-31 Thread Dod
Hello Markus,

Why  not .free the socket thru a message sent in .OnClose event ? This
is  a  better  way  than  doing  a  sleep(x)  that  tends to defeat
asynchronous ICS model, you' better thing in term of events.

Also  you could not free you TWSocket but re-use later as you maintain
a   TObjectList   of   already   create  TWSocket  so  just  add  some
FUsed:boolean; property to see if it is still used.

But may be François will answer better.

Regards.

-- 
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] Problems with TWSocket.close and DLL

2006-01-31 Thread Dod
Hello,

Think  that  ICS  is  fully  asynchronous  and  event  driven,  it's a
different  approach  comparing  to Indy or other Socket components and
also comparaing to RS232 programming where synchronous mode is usual.

With  ICS  (server or client mode) you can make or receive thousand of
connexions.  All  data  received  will  simply  trigger an event. If a
socket break, then you'll be also event triggered.

So  you  manage incoming data in the event, no need to sleep or create
one  thread  per  connexion  but  you could create a worker thread for
lengthly operations that would slow down event loops.

Also  when you send data you send them all and let ICS "really" finish
the  sending  and  trigger DataSent event so you could send "a bit" of
data and send more at each OnDataSent.

AG> However I haven't understood your DLL/thread design, and in which
AG> threads your sockets run. If you don't get a better answer give
AG> it another trial with a more detailed description of the thread
AG> design and how sockets are created/attached to threads.

-- 
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] Problems with TWSocket.close and DLL

2006-01-31 Thread Arno Garrels
Humm, Markus wrote:

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

Sounds like you re-invented TWSocketServer.

> When the first connection is opened a
> seperate thread within the DLL is created for handling of the windows
> messages (needed by TWSocket and other components as well).

I guess your listening socket runs in one thread and all client sockets
in a single second thread, do I understand that right?
 
> 
> This works so far until the point is reached where the DLL is freed.
> The DLL is used statically in another DLL which has a thread for each
> connection too.

Hm, "too" sounds like each client connection runs in it's own thread?

This 2nd dll is loaded dynamically. When it is freed via
> free library, its finalization checks if there are any open connections
> thus threads) left. If yes, they all get freed and by freeing them each
> connection in the first dll should get closed too. 
> With TWSocket this doesn't work, because socket.close seems to hang and
> the 1st DLL never reaches the statement after the close.
> 
> Pseudo code is like this:
> 
> - write a marker to the windows eventlog (debug output)
> - call socket.close;
> - sleep(25);
> - write a marker to the windows eventlog (debug output)
> - call socket.free;

As Dod already said, using sleep with TWsocket is mostly not
suggested, since messages need to be processed. If you _must wait nevertheless, 
MsgWaitForMultipleObjects() may be an alternative.
However I haven't understood your DLL/thread design, and in which
threads your sockets run. If you don't get a better answer give
it another trial with a more detailed description of the thread
design and how sockets are created/attached to threads.

Arno
-- 
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] C++Builder 2006 and ICS

2006-01-31 Thread Albert Wiersch

I downloaded the latest ICS BETA and installed it in BDS 2006, but I cannot
access the components in the C++Builder personality. They seem to be in the
Delphi personality only. I need them in the C++Builder personality. Can
anyone help with getting the latest BETA installed in BDS 2006 so the
components are available in the C++Builder personality?

By the way, it seems I also have this problem with some other components. I
need them in the C++Builder personality but they're only available in the
Delphi personality.

Thank you.

--
Albert Wiersch
AI Internet Solutions
[EMAIL PROTECTED]
http://www.htmlvalidator.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


[twsocket] TWSocket and Close problem

2006-01-31 Thread Markus Humm
Hello,

(now writing from my other account)

just to clarify some things:
- I want the socket to be closed and freed at this point, because the
  DLL who provided communication via sockets for the other levels is
  unloaded and opening or closing communication channels is done rather
  seldom in my app. (at start and at end of it)

- the sleep was put there by me to give the socket some time if still
  data is pending or similar, but I will remove it now.

- there is still another thread active in this very same dll who only
  powws Windows messages (until WM_Quit or terminated)

- the dll just seems to hang at this close call.

- I might have reinvented TWSocketServer, but since I must be able to
  remember connection data for other types of connections (like USB or
  RS232) I need a unified sheme for this. So a TObjectList where another
  Object is stoored for each connection is used, and it is a UDP one the
  socket property of that other object is set up properly.

Greetings

Markus
-- 
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] C++Builder 2006 and ICS

2006-01-31 Thread Arno Garrels
Albert Wiersch wrote:
> I downloaded the latest ICS BETA and installed it in BDS 2006, but I
> cannot access the components in the C++Builder personality. 

I made a separate package for BCB. If I change personality I need to
install appropriate package (uninstalling the other one first).
But I'm realy no BCB specialist, I had a first look at BCB last weekend.

Arno

> They seem to
> be in the Delphi personality only. I need them in the C++Builder
> personality. Can anyone help with getting the latest BETA installed in
> BDS 2006 so the components are available in the C++Builder personality?
> 
> By the way, it seems I also have this problem with some other components.
> I need them in the C++Builder personality but they're only available in
> the Delphi personality.
> 
> Thank you.
> 
> --
> Albert Wiersch
> AI Internet Solutions
> [EMAIL PROTECTED]
> http://www.htmlvalidator.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] C++Builder 2006 and ICS

2006-01-31 Thread Albert Wiersch

It is unfortunate if a new package is necessary. Why can't the Delphi and
C++Builder personalities share the same components in BDS 2006? I was hoping
this would be a huge plus for BDS 2006, but if separate installs and
packages are needed, then that really puts a damper on it.

Where can I get a package for C++Builder 2006 or can someone guide me in
creating my own?

--
Albert Wiersch
AI Internet Solutions
[EMAIL PROTECTED]
http://www.htmlvalidator.com/



> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of Arno Garrels
> Sent: Tuesday, January 31, 2006 2:11 PM
> To: ICS support mailing
> Subject: Re: [twsocket] C++Builder 2006 and ICS
> 
> 
> Albert Wiersch wrote:
> > I downloaded the latest ICS BETA and installed it in BDS 2006, but I
> > cannot access the components in the C++Builder personality. 
> 
> I made a separate package for BCB. If I change personality I need to
> install appropriate package (uninstalling the other one first).
> But I'm realy no BCB specialist, I had a first look at BCB 
> last weekend.
> 
> Arno

-- 
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] C++Builder 2006 and ICS

2006-01-31 Thread Albert Wiersch

I found a solution!

1. Uninstall the ICS package from BDS 2006.
2. Exit BDS and run the Delphi Win32 personality.
3. Load the ICS BDS 2006 package.
4. Goto the Project Options->Linker and select "Generate all C++Builder
files". Click OK.
5. Compile and install the package.
6. If you exit and load the C++Builder personality now, the components
should now be in the Tool Palette.

--
Albert Wiersch
AI Internet Solutions
[EMAIL PROTECTED]
http://www.htmlvalidator.com/



> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of Albert Wiersch
> Sent: Tuesday, January 31, 2006 1:38 PM
> To: 'ICS support mailing'
> Subject: [twsocket] C++Builder 2006 and ICS
> 
> 
> 
> I downloaded the latest ICS BETA and installed it in BDS 
> 2006, but I cannot
> access the components in the C++Builder personality. They 
> seem to be in the
> Delphi personality only. I need them in the C++Builder 
> personality. Can
> anyone help with getting the latest BETA installed in BDS 2006 so the
> components are available in the C++Builder personality?
> 
> By the way, it seems I also have this problem with some other 
> components. I
> need them in the C++Builder personality but they're only 
> available in the
> Delphi personality.
> 
> Thank you.
> 
> --
> Albert Wiersch
> AI Internet Solutions
> [EMAIL PROTECTED]
> http://www.htmlvalidator.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