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

Magik6k

Members
  • Content Count

    32
  • Joined

  • Last visited

  • Days Won

    16

Everything posted by Magik6k

  1. THIS IS SO COOL I really do wonder how well it would work with Plan9k as it has (IMO) better threading support, proper virtual component support and component/event sandboxing/namespaces (so a program can/can't see selected components, events can be filtered/translated(like mouse clicks)). Would you mind if I try to port this api there? Oh, and why won't you put this on OpenPrograms/OPPM?
  2. OETF #10 - OHCP - simple DHCP/BOOTP like protocol for host auto configuration. 1. Protocol This is specification for a binary data frame(a Lua string), sent over OETF #7 protocol with protocol number 0xCF. BYTE 0 | BYTE 1 | DATA | BROADCAST --------------------|--------------------------|----------------------------|----------- 0x00 - ADDR REQUEST | NOT SET | NOT SET | ALLOWED 0x01 - CLIENT RESP | 0x00 IPv4 address assign | IPv4+subnet byte (4b + 1b) | NO 0x01 - CLIENT RESP | 0x02 IPv4 gate
  3. This is a repost, as the old post was removed for some reason.. Requirements OpenOS Lua 5.2 CPU T3 hard drive Internet Card Installation 1. Install MPT wget http://mpt.magik6k.net/api/file/mpt/usr/bin/mpt.lua /tmp/mpt.lua /tmp/mpt -S mpt rm /tmp/mpt.lua 2. Install craftos mpt -S cc-installer craftos install 3. Enjoy craftos Issues If something doesn't work/show up(like a peripheral), post about it here.
  4. 1. Purpose OETF #9 - OC Host Discovery Protocol is a host discovery protocol for local OC networks specified by OETF #7. 2.Protocol This is specification for a binary data frame(a Lua string), sent over OETF #7 protocol with protocol number 0x0C. All frames are allowed to be sent as a broadcast or as a direct message. Prefix byte | Action | Payload ------------|-------------------------------------|----------- 0x01 | Peer IPv4 Advertisement | 4 byte IPv4 0x02 | IPv4 Discovery request | Optional 4
  5. Port 1 is just a default that can be changed. Ports in this network stack are used as VLANs, If in your infrastructure something else is using that port, you are free to change it, and it's not that hard(that is, implementations shouldn't make it hard).
  6. Magik6k

    Goto

    I see no need for goto there: local function timer() local seconds = 0 while true do if reactor.getActive() then seconds = seconds + 1 end center(2, "Time Running: "..math.floor(seconds / 60)..":"..(seconds % 60)) sleep(1) end end
  7. Use ``` for line in io.lines("/home/file.txt") do --line is a string end ```
  8. Also, it would be fancy if one could use big battery as power buffer, as internal 10MRF is way too small for 1MRF/t+ reactor.
  9. You can use braille Unicode characters to give the bars more resolution as with OC font they are exactly 1/4 vert and 1/2 horiz of a full character block(the characters are "⣀", "⣤", "⣶", "⣿", "⡇")
  10. The following document is still a DRAFT and a subject to change, though protocol and assigned numbers should not change. 1. Purpose ON2 - OCNet L2 protocol - is a very simple standard is aimed at advanced network stacks. It provides protocol tagging and optional vlan separation for devices that support it. 2. Protocol ON2 utilizes the fact that OpenComputers network message can have multiple parameters. When a message(data frame) is sent using ON2 layer, the implementation sets first data parameter to protocol number and passes the data via second data argument. Por
  11. If you're that worried about people you lot on your server there is the whitelist option in internet section of the settings.json, where you explicitly say what's allowed.
  12. I was away from OC for pretty long now, and I haven't got time to play with it/fix existing errors. There is new version of mpt waiting in PR(https://github.com/MightyPirates/OpenComputers/pull/2094) which fixes mentioned bug. ssh and other network related programs are huge mess as of now because I'm in progress of rewriting network stack to real ipv4/v6(I have ipv4, udp, basic icmp, RIPv2 protocols implemented as of now, and ~30% of TCP implementation). Most network programs still need to be adjusted for this API(It's not hard, just needs to be done). I consider moving big chunk of Plan9k to
  13. You probably just want to use io.stderr:write() for that
  14. This seems doable in Plan9k with its multi-threading, you basically do `local pid = os.spawn(threadFunc)` and then optionally `require("pipes").joinThread(pid)` to wait for spawned thread(s).
  15. Super nice, but: * Scroll in license in installer is crashing * You should really consider using some package manager like OPPM/MPT for that * I have a strong feeling that this was ported from CC, structure of the files sort of doesn't fit OpenOS, have a look at this http://www.thebuzzmedia.com/wp-content/uploads/2007/09/linux_file_structure.jpg * With package manager packages wouldn't create mess in root directory * you REALLY, REALLY should use something like /home/[user]/Desktop/SomeApp.app, or at least /root/Desktop/some.app for app launchers, having all things inside the root (/) dir
  16. Magik6k

    Decimal to hex

    The color value is just a integer, the way you obtain it is r*256*256 + g * 256 + b
  17. About the network floppy - it works over wireless networks, but is in a way broken when you move between different access points(i.e. physical nodes aren't auto-discovered for now). Also the network has dedicated API - use `man network`. Sending data to custom bound addresses via bare components won't work.
  18. Magik6k

    DNS System

    Nah, at least for now consider this project dead and use the network floppy which gives way more flexibility and is easier to setup/use
  19. Closing connections was broken. The channel is basicly identifier of tcp connection.
  20. Hello, sorry for reponsing that late, but I'm not really into the forums, I'm reachable via IRC more. anyways, looking at code of server A I see the function incoming(origin, port, data) it should be function incoming(_, origin, port, data) This seems to be 99% of the problem
  21. tony1485, Thats what all this is meant for. The only thing I use github for here is secure authentication(secure even without using https). Repository are there to group packages, one repository can be used by more than one person. Packages are like file archieves, they also can say what other packages they'd like to be present in system(i.e. dependencies). You can develop your programs directly in the IDE, and after saving file instantly update it and test in OC computer
  22. @EchoSeven Server is already released at https://github.com/magik6k/MPT2
  23. @EchoSeven it was dead for a while, now I released testing version of MPTv2, see top post
  24. Magik6k

    DNS System

    DOMAIN NAME SYSTEM Yep. This one works much like real one - but it's a little simpler. Basic system setup/configuration/howto/whatever The most important part of every global DNS system are root-server. In real life there are 13 of these, but for Minecraft one server should be enough(ofc. you can have more root-servers). To be able to use DNS system the client must know at least one root server. Now let's say we want few domains in our system: example.org. sub.example.org. populardomain.org. Now we create example network of 3 servers, with addresses addr1, addr2, addr3 The
×
×
  • Create New...

Important Information

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