mirror of
https://git.tonybark.com/tonytins/legendsonline.git
synced 2025-06-25 05:34:43 -04:00
Minecraft-based player meshes
This commit is contained in:
parent
99c122a138
commit
9774f6de7f
15 changed files with 432 additions and 20 deletions
|
@ -5,9 +5,12 @@ pub fn main() !void {
|
|||
const address = net.Address.resolveIp("0.0.0.0", 1337) catch {
|
||||
@panic("Failed to bind to address.");
|
||||
};
|
||||
|
||||
var server = address.listen(net.Address.ListenOptions{}) catch unreachable;
|
||||
|
||||
std.debug.print("Listening to clients.\n", .{});
|
||||
defer server.deinit();
|
||||
|
||||
while (true) {
|
||||
const conn = server.accept() catch {
|
||||
std.debug.print("Connection attempt failed.", .{});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue