Changed names to reflect package

This commit is contained in:
Ryan Ward 2021-07-10 15:30:39 -04:00
parent 4a5b9433f5
commit a7ce660e3b
10 changed files with 20 additions and 20 deletions

View File

@ -1,5 +1,5 @@
package.path = "./?/init.lua;./?.lua;"..package.path
local net = require("net.tcp")
local net = require("lnet.tcp")
local multi, thread = require("multi"):init()
local client = net:newCastedClient("Test")--net:newTCPClient("localhost",12345)

View File

@ -1,6 +1,6 @@
local multi, thread = require("multi"):init()
local socket = require("socket")
local net = require("net")
local net = require("lnet")
local server = {}
local bCaster = 0
server.__index = server

View File

@ -7,7 +7,7 @@
-----------------------------------------------------------------------------
-- Declare module and import dependencies
-------------------------------------------------------------------------------
local net = require("net")
local net = require("lnet")
local multi, thread = require("multi"):init()
local socket = require("socket")
local url = require("socket.url")

View File

@ -9,7 +9,7 @@
local socket = require("socket")
local ssl = require("ssl")
local ltn12 = require("ltn12")
local http = require("net.http") -- Only real change that was needed to get things working
local http = require("lnet.http") -- Only real change that was needed to get things working
local url = require("socket.url")
local try = socket.try

View File

@ -1,4 +1,4 @@
local net = require("net")
local net = require("lnet")
local clientbase = require("net.core.clientbase")
local serverbase = require("net.core.serverbase")
local multi, thread = require("multi"):init()

View File

@ -1,4 +1,4 @@
local net = require("net")
local net = require("lnet")
local clientbase = require("net.core.clientbase")
local serverbase = require("net.core.serverbase")
local multi, thread = require("multi"):init()

View File

@ -1,15 +1,15 @@
package = "lnet"
package = "llnet"
version = "5.0-0"
source = {
url = "git://github.com/rayaman/net.git",
tag = "net-v5",
url = "git://github.com/rayaman/lnet.git",
tag = "lnet-v5",
}
description = {
summary = "Lua networking library that wraps around lua-socket to make networking easy.",
summary = "Lua lnetworking library that wraps around lua-socket to make lnetworking easy.",
detailed = [[
This library uses the multi library. The new multitasking library and this one are now co-Dependant if using the networkManager integration for network parallelism. This has an event driven approach for networking which allows one to easily work async with the data.
This library uses the multi library. The new multitasking library and this one are now co-Dependant if using the lnetworkManager integration for lnetwork parallelism. This has an event driven approach for lnetworking which allows one to easily work async with the data.
]],
homepage = "https://github.com/rayaman/net",
homepage = "https://github.com/rayaman/lnet",
license = "MIT"
}
dependencies = {
@ -20,12 +20,12 @@ dependencies = {
build = {
type = "builtin",
modules = {
["net.init"] = "net/init.lua",
["net.tcp.init"] = "net/tcp/init.lua",
["net.udp.init"] = "net/udp/init.lua",
["net.core.clientbase"] = "net/core/clientbase.lua",
["net.core.serverbase"] = "net/core/serverbase.lua",
["net.http"] = "net/http.lua",
["net.https"] = "net/https.lua"
["lnet.init"] = "lnet/init.lua",
["lnet.tcp.init"] = "lnet/tcp/init.lua",
["lnet.udp.init"] = "lnet/udp/init.lua",
["lnet.core.clientbase"] = "lnet/core/clientbase.lua",
["lnet.core.serverbase"] = "lnet/core/serverbase.lua",
["lnet.http"] = "lnet/http.lua",
["lnet.https"] = "lnet/https.lua"
}
}

View File

@ -1,5 +1,5 @@
package.path = "./?/init.lua;./?.lua;"..package.path
local net = require("net.tcp")
local net = require("lnet.tcp")
local multi, thread = require("multi"):init()
local server = net:newTCPServer(12345)
server:broadcast("Test")