Compare commits

..

3 Commits

Author SHA1 Message Date
0a4daa3dd8
Delete test2.mp3 2023-06-27 23:01:59 -04:00
950b7e3fa3
Delete test.mp3 2023-06-27 23:01:50 -04:00
a7189fab8b
Updated readme with threading plans 2022-11-05 10:11:17 -04:00
4 changed files with 5 additions and 3 deletions

View File

@ -27,7 +27,7 @@ A simple and powerful way to make servers and clients
- [ ] AUDP - advance udp. Ensures packets arrive and handles late packets.
- [ ] P2P - peer to peer (Server to set up initial connection)
- [ ] Relay - offput server load (locally)
- [ ] Threading - Simple threading ~~(UDP/AUDP Only)~~ Thanks to an updated multi library we can thread with ease
- [ ] Threading - Simple threading Should be simple using multi@15.3.0
- [ ] Priority handling
# Note

View File

@ -469,6 +469,9 @@ function net:newUDPClient(host,port,servercode,nonluaServer)
net.OnClientCreated:Fire(c)
return c
end
multi:newThread(function()
end)
--TCP Stuff
function net:newTCPClientObject(fd)
local c = {}
@ -821,7 +824,7 @@ function net:newTCPClient(host,port)
len = bin.new(dat):getBlock("n",self.numspace)
data, err = self.tcp:receive(len)
else
data, err = self.tcp:receive()
data,err = self.tcp:receive()
end
if err=="closed" then
self.OnClientDisconnected:Fire(self,err)

View File

@ -14,7 +14,6 @@ description = {
}
dependencies = {
"lua >= 5.1",
"luasocket",
"multi"
}
build = {

BIN
test.mp3

Binary file not shown.