InternetShutdown sends Ctrl-C to other Applications.

A forum for general AmigaOS 4.x support questions that are not platform-specific
User avatar
tboeckel
AmigaOS Core Developer
AmigaOS Core Developer
Posts: 68
Joined: Mon Jun 20, 2011 9:56 am
Contact:

Re: InternetShutdown sends Ctrl-C to other Applications.

Post 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.
User avatar
thomasrapp
Posts: 318
Joined: Sun Jun 19, 2011 12:22 am

Re: InternetShutdown sends Ctrl-C to other Applications.

Post 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.
evil
Posts: 7
Joined: Sat Jun 18, 2011 1:54 pm

Re: InternetShutdown sends Ctrl-C to other Applications.

Post 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??
User avatar
thomasrapp
Posts: 318
Joined: Sun Jun 19, 2011 12:22 am

Re: InternetShutdown sends Ctrl-C to other Applications.

Post by thomasrapp »

Why do you want to netshutdown?
evil
Posts: 7
Joined: Sat Jun 18, 2011 1:54 pm

Re: InternetShutdown sends Ctrl-C to other Applications.

Post 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
User avatar
thomasrapp
Posts: 318
Joined: Sun Jun 19, 2011 12:22 am

Re: InternetShutdown sends Ctrl-C to other Applications.

Post 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.
User avatar
nbache
Beta Tester
Beta Tester
Posts: 1744
Joined: Mon Dec 20, 2010 7:25 pm
Location: Copenhagen, Denmark
Contact:

Re: InternetShutdown sends Ctrl-C to other Applications.

Post 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
User avatar
ssolie
Beta Tester
Beta Tester
Posts: 1010
Joined: Mon Dec 20, 2010 8:51 pm
Location: Canada
Contact:

Re: InternetShutdown sends Ctrl-C to other Applications.

Post 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.
ExecSG Team Lead
User avatar
djrikki
Posts: 138
Joined: Fri Jun 17, 2011 11:21 pm
Location: Grimsby, Lincolnshire, UK
Contact:

Re: InternetShutdown sends Ctrl-C to other Applications.

Post by djrikki »

@evil

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

Defaults to (True)
xenic
Posts: 1185
Joined: Sun Jun 19, 2011 1:06 am

Re: InternetShutdown sends Ctrl-C to other Applications.

Post 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.
AmigaOne X1000 with 2GB memory - OS4.1 FE
Post Reply