Skip to content
This repository has been archived by the owner on Aug 6, 2024. It is now read-only.

Commit

Permalink
Fix programms?
Browse files Browse the repository at this point in the history
  • Loading branch information
ajh123 committed Aug 21, 2022
1 parent 16f00b5 commit 413b27a
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
6 changes: 5 additions & 1 deletion ifconfig.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
IPvCC = require "/IPvCC"
local myPath = shell.dir()
shell.setDir("/")
IPvCC = require "IPvCC"
shell.setDir(myPath)

IPvCC.checkInterfaces()
for id, interface in pairs(IPvCC.interfaces) do
print(id, "Link encap:", interface.layer.type, interface.infoString)
Expand Down
6 changes: 5 additions & 1 deletion testRecv.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
IPvCC = require "/IPvCC"
local myPath = shell.dir()
shell.setDir("/")
IPvCC = require "IPvCC"
shell.setDir(myPath)

IPvCC.checkInterfaces()

IPvCC.interfaces["back"]:open(10)
Expand Down
6 changes: 5 additions & 1 deletion testSend.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
IPvCC = require "/IPvCC"
local myPath = shell.dir()
shell.setDir("/")
IPvCC = require "IPvCC"
shell.setDir(myPath)

IPvCC.checkInterfaces()
local mesage = IPvCC.types.Packet:new(10, 80, 0, {msg="Hello"})
IPvCC.interfaces["back"].layer:transmit(mesage)

0 comments on commit 413b27a

Please sign in to comment.