Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 0a4daa3dd8 | |||
| 950b7e3fa3 | |||
| a7189fab8b |
@ -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
|
||||
|
||||
@ -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)
|
||||
|
||||
@ -14,7 +14,6 @@ description = {
|
||||
}
|
||||
dependencies = {
|
||||
"lua >= 5.1",
|
||||
"luasocket",
|
||||
"multi"
|
||||
}
|
||||
build = {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user