Page 2 of 2

Re: InternetShutdown sends Ctrl-C to other Applications.

Posted: Wed Dec 05, 2012 12:31 pm
by tboeckel
evil wrote:But IBrowse and YAM do not quit, when using netshutdown. And shutdown seems to work successful, even if yam or/and IBrowse are running.
I cannot tell for IBrowse, but YAM will open bsdsocket.library only if a network connection is to be established and will close it again when the connection is terminated. It does not keep it opened all the time.

Re: InternetShutdown sends Ctrl-C to other Applications.

Posted: Wed Dec 05, 2012 12:52 pm
by thomasrapp
I am quite sure that IBrowse closes the library after a connection, because it creates new processes for each connection and bsdsocket.library has to be opened by each process seperately.

Re: InternetShutdown sends Ctrl-C to other Applications.

Posted: Wed Dec 05, 2012 12:57 pm
by evil
So if hollywood programs should not quit after netshutdown, they have to close the bsd-socket.library each time after using it, right??

Re: InternetShutdown sends Ctrl-C to other Applications.

Posted: Wed Dec 05, 2012 1:45 pm
by thomasrapp
Why do you want to netshutdown?

Re: InternetShutdown sends Ctrl-C to other Applications.

Posted: Wed Dec 05, 2012 10:39 pm
by evil
I do not need it really, I am just coding a tool with hollywood, which displays some system-informations.
Also the online-state can be shown. And when I tested that, I found out, that the program quits, when I go offline...
Normally these days, most people have dsl and are 24/7 online. So it doesn`t really matter. But some are not...
Mostly im interested in it because of information-reasons...
So many thanks for the explanations!!

Best regards

Jörg

Re: InternetShutdown sends Ctrl-C to other Applications.

Posted: Thu Dec 06, 2012 11:24 am
by thomasrapp
Netshutdown does not only go offline. As I said before it completely removes the TCP/IP stack from the system.

I don't know if there is a command to go offline in Roadshow. In Miami you can go offline without shutting down TCP/IP.

Re: InternetShutdown sends Ctrl-C to other Applications.

Posted: Thu Dec 06, 2012 10:35 pm
by nbache
thomasrapp wrote:Netshutdown does not only go offline. As I said before it completely removes the TCP/IP stack from the system.

I don't know if there is a command to go offline in Roadshow. In Miami you can go offline without shutting down TCP/IP.
I guess C:RemoveNetInterface is the equivalent for RoadShow.

Best regards,

Niels

Re: InternetShutdown sends Ctrl-C to other Applications.

Posted: Thu Dec 06, 2012 10:46 pm
by ssolie
thomasrapp wrote:Netshutdown does not only go offline. As I said before it completely removes the TCP/IP stack from the system.

I don't know if there is a command to go offline in Roadshow. In Miami you can go offline without shutting down TCP/IP.
Any network interface can be taken offline using ConfigureNetInterface.

The underlying network driver must also support S2_OFFLINE (see http://wiki.amigaos.net/index.php/Revis ... S2_OFFLINE) of course.

Re: InternetShutdown sends Ctrl-C to other Applications.

Posted: Thu Dec 06, 2012 11:35 pm
by djrikki
@evil

Just add CtrlC(False) into your Hollywood application, any Break signals then received will be ignored.

Defaults to (True)

Re: InternetShutdown sends Ctrl-C to other Applications.

Posted: Fri Dec 07, 2012 12:06 am
by xenic
djrikki wrote:@evil

Just add CtrlC(False) into your Hollywood application, any Break signals then received will be ignored.

Defaults to (True)
Then Netshutdown won't be able to shut down the network and you won't be able to restart your network without rebooting. Programs that are using TCP/IP and don't respond to Ctrl C from RoadShow are misbehaving.