Jump to content
  • Sky
  • Blueberry
  • Slate
  • Blackcurrant
  • Watermelon
  • Strawberry
  • Orange
  • Banana
  • Apple
  • Emerald
  • Chocolate
  • Charcoal

Nerodon

Members
  • Content Count

    2
  • Joined

  • Last visited

Posts posted by Nerodon

  1. Thank you, this indeed clears up a lot.

    So I basically just need to fall in love with registering events as this seems to be the only way to run things in the background.

     

    That's pretty much exactly what I was looking for, everything I was looking to do pretty much works under callbacks from modem_messages so far but I can see many other ways to use events with different signals, such as timers etc.

     

    Thanks

  2. Hello everyone.

     

    I'm pretty new to OC but really enjoying it so far.

    I've been writing simple robot automation programs and they work out well for me I have trouble grasping some of the more OS related features such as signals/events and the way I can implement services/daemons.

     

    I am implementing a simple network protocol in which servers acting as routers and other computers send packets back and forth to build ARP-like address tables, my end goal being a simplified IP system that routes packets efficiently through a large network using conventional format IPv4 addresses and DNS servers.

     

    Essentially, here is my challenge:

    I want to have my computer listen and answer modem signals while not disrupting/stopping an active program or the shell. So I have a few questions to ask.

     

    1) What is the best way to do this?

     

    2) Information is very hard to just come by, I have read a lot about listening to events and then using callback functions, but how does that work outside of an actual program? 

     

    3)I read in the API documentation about events, that "Driver Mode" was a way to possibly run listeners alongside the shell but no further information is available about this. What does driver mode refer to?

     

    4) What is the RC API, and how/what does it actually do? It is pretty weakly documented and it almost looks like it is what I need if we are talking about Daemons running along side other programs or the shell.

     

    Essentially, a background process. I do understand that, technically, without true parallel processing, the callbacks will need to finish before the computer will be usable again (I think) but my callbacks are intended to be very short quick message replies or quick file writes.

     

    I appreciate any help! Thanks!

     

     

     

     

     

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.