Network API - Printable Version +- Cuberite Forum (https://forum.cuberite.org) +-- Forum: Cuberite (https://forum.cuberite.org/forum-4.html) +--- Forum: Development (https://forum.cuberite.org/forum-13.html) +--- Thread: Network API (/thread-1700.html) |
RE: Network API - sphinxc0re - 02-20-2015 (02-20-2015, 08:37 AM)xoft Wrote: I've got UDP working quite nicely, I even wrote a simple plugin that broadcasts the server's existence on LAN (so that vanilla client sees the local servers automatically without the need to add them - http://wiki.vg/Lan_Worlds) You should implement this into core RE: Network API - NiLSPACE - 02-20-2015 I disagree. Keep it in a separate plugin. Vanilla servers aren't shown automatically either. RE: Network API - Raekye - 02-21-2015 (02-20-2015, 08:37 AM)xoft Wrote: I've got UDP working quite nicely, I even wrote a simple plugin that broadcasts the server's existence on LAN (so that vanilla client sees the local servers automatically without the need to add them - http://wiki.vg/Lan_Worlds) Wow, sounds and looks awesome. Sorry I said I'd try to help and ended up doing nothing xD >.< But I'll see what I can do about a query plugin, school just really picked up suddenly Edit: Got this working https://github.com/Raekye/MCServer-Query/blob/master/Query.lua , as per http://wiki.vg/Query RE: Network API - NiLSPACE - 02-28-2015 Small question about the Network API. Can I also leave the Port parameter empty and put it in the host? For example: "cNetwork:Connect('ftp://myhost.org:21', nil, Callbacks)" RE: Network API - xoft - 02-28-2015 No, that won't work, the Host param is already too overloaded and the parser would be needlessly complicated. Also, the "ftp://" prefix shouldn't go there either. RE: Network API - NiLSPACE - 02-28-2015 Ah okay. I was investigating if we could maybe connect to an mysql server through the network API instead of a library, and the only clue I found was this RE: Network API - xoft - 02-28-2015 That would be possible, but impractical - the network API is async, but you want the SQL database to by synchronous. Not to mention that the entire communication protocol would need to be ported. Too much work. Using an ODBC connector seems like a much better way to do this. RE: Network API - NiLSPACE - 05-11-2015 Is it maybe possible that the network connection doesn't release the memory properly? I noticed for a while that RAM doesn't go down when nobody is online, and it sometimes even goes up. When it goes up I pretty much always had the Core's webchat tab open, and since that tab keeps connecting to the server every X seconds (and thus creating a new connection), I thought it could be possible that the network could be the problem. I notice this on both Linux (gallery server) and Windows (local). RE: Network API - NiLSPACE - 10-01-2015 Anyone know how I can connect to a https website? I tried this: a_Link:StartTLSClient("", "", "") local ConnectionString = "GET /mc-server/WorldEdit/master/Info.lua HTTP/1.1\r\nHost: raw.githubusercontent.com\r\nConnection: keep-alive\r\n\r\n" a_Link:Send(ConnectionString) But I don't get any data in return when I do that. RE: Network API - xoft - 10-01-2015 Isn't "Content-length" required when using keep-alive connections? Or try using a non-keep-alive connection, possibly even HTTP/1.0, just to see if you get any data at all. |