Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 6d99893bda | |||
| 111ca2ae06 | |||
| 44e17d2e75 | |||
| dbe70c7d26 | |||
| c3d1a0e4b5 |
@ -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 Should be simple using multi@15.3.0
|
||||
- [ ] Threading - Simple threading ~~(UDP/AUDP Only)~~ Thanks to an updated multi library we can thread with ease
|
||||
- [ ] Priority handling
|
||||
|
||||
# Note
|
||||
|
||||
@ -469,9 +469,6 @@ 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 = {}
|
||||
@ -824,7 +821,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)
|
||||
|
||||
@ -14,6 +14,7 @@ description = {
|
||||
}
|
||||
dependencies = {
|
||||
"lua >= 5.1",
|
||||
"luasocket",
|
||||
"multi"
|
||||
}
|
||||
build = {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user