NetStack: how to deactivate/activate this.
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    Jambalah
    Posts: 820 from 2008/3/30
    From: Roma, Italy
    Is it possible deactivate NetStack? And if so, how?
    Then can you perform the inverse procedure?
    I searched in the forums but I found nothing (hoping I didn't miss something.... :-) )
    Thanks in advance.
    Pegasos II 1 ghz
    Powermac G4 Quicksilver with Sonnet Encore 1.8 ghz
    Powermac G4 MDD single 1.25 ghz, silenced for ears health...
    Powermac G5 dual 2.7 ghz I'll be back...
    Powermac G5 dual 2.0 ghz
    Powerbook G4 1.67 ghz 17
  • »04.06.09 - 15:44
    Profile
  • MorphOS Developer
    itix
    Posts: 1520 from 2003/2/24
    From: Finland
    Send CTRL-C to NetStack. This can be done from Scout for example. You can restart stack by executing S:Network-Startup.
    1 + 1 = 3 with very large values of 1
  • »04.06.09 - 16:22
    Profile
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    Jambalah
    Posts: 820 from 2008/3/30
    From: Roma, Italy
    Thanks very much!
    Useful help ;-)
    Pegasos II 1 ghz
    Powermac G4 Quicksilver with Sonnet Encore 1.8 ghz
    Powermac G4 MDD single 1.25 ghz, silenced for ears health...
    Powermac G5 dual 2.7 ghz I'll be back...
    Powermac G5 dual 2.0 ghz
    Powerbook G4 1.67 ghz 17
  • »04.06.09 - 18:33
    Profile
  • Paladin of the Pegasos
    Paladin of the Pegasos
    jcmarcos
    Posts: 1178 from 2003/3/13
    From: Pinto, Madrid ...
    Quote:

    itix wrote:

    Send CTRL-C to NetStack.


    Is that the same thing one can do with the "break" shell command?
  • »05.06.09 - 07:47
    Profile
  • MorphOS Developer
    Piru
    Posts: 587 from 2003/2/24
    From: finland, the l...
    Quote:

    Is that the same thing one can do with the "break" shell command?

    Yes. Break can be used to send the CTRL-C signal to owner of a named message port, too. This is especially handy with the NetStack/AmiTCP as it can be used to terminate it easily:

    Code:

    Break PORT AMITCP ; terminates both AmiTPC/IP and Netstack

    or

    Break PORT NETSTACK ; only terminates Netstack


    All this in combination with WaitForPort can be used to create nice scripts for swapping between different TCP/IP stacks for example. WaitForPort DISAPPEAR/S option can be used to wait the port to go away (useful if you need to know when it is safe to launch the new TCP stack).
  • »05.06.09 - 18:56
    Profile
  • Paladin of the Pegasos
    Paladin of the Pegasos
    jcmarcos
    Posts: 1178 from 2003/3/13
    From: Pinto, Madrid ...
    @Piru:

    What a nice operating system (sorry, couldn't resist). Well, actually, its applications, that are well designed, and actually listen and attend to "break" commands.
    I didn't lnow about the "port" option, I guess I stopped learning about AmigaDOS back in 2.x age...
    About "waitforport", is it related to ARexx ports only? Because, when you explained "break", you were reffering to generic message ports, right?
    Finally, will we have a native MorphOS ARexx interpreter anytime soon? I guess there's nothing bad in reusing the original ARexx library, aside from the fact that it must be "stolen" (ahem) from Commodore's original siystem. But I also understand that it's not an urgent or specially interesting development, not to mention its difficulty.
    In my case, I have to admit, I had to download an unlicensed AmigaOS from the net, just to extract that file alone. I don't have a real Amiga any longer, in order to read my original AmigaOS disks.
  • »08.06.09 - 08:08
    Profile
  • MorphOS Developer
    CISC
    Posts: 619 from 2005/8/27
    From: the land with ...
    Quote:

    About "waitforport", is it related to ARexx ports only? Because, when you explained "break", you were reffering to generic message ports, right?


    WaitForPort works for any named port.

    Quote:

    Finally, will we have a native MorphOS ARexx interpreter anytime soon?


    Sadly this is not very likely as I have next-to-no time for MorphOS development these days (way too much C# development at work). I might allocate some time for MorphOS development during the summer vacation, but this is best spent concentrating on other urgent matters aside from ARexx... :(


    - CISC
  • »08.06.09 - 08:19
    Profile