about summary refs log tree commit diff
path: root/src/main.zig
diff options
context:
space:
mode:
authormakefunstuff <[email protected]>2024-06-30 19:07:46 +0200
committermakefunstuff <[email protected]>2024-06-30 19:07:46 +0200
commit058a77eabd6d47e3180360b28b8775a7c19eb064 (patch)
treefc0a6d287daaadfd69ef507ee3d8d2dcaca681a8 /src/main.zig
parentb6821c1ae54bcb953ef2a7420f6dc89bdc811545 (diff)
downloadtinkerbunk-058a77eabd6d47e3180360b28b8775a7c19eb064.tar.gz
naive socket server
Diffstat (limited to '')
-rw-r--r--src/main.zig5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main.zig b/src/main.zig
index b46023e..e5e4099 100644
--- a/src/main.zig
+++ b/src/main.zig
@@ -1,5 +1,6 @@
 const std = @import("std");
 const ls = @import("ls.zig");
+const socket_server = @import("socket-server.zig");
 
 pub fn main() !void {
     var gpa = std.heap.GeneralPurposeAllocator(.{}){};
@@ -18,6 +19,10 @@ pub fn main() !void {
         return;
     }
 
+    if (args.len == 2 and std.mem.eql(u8, args[1], "tcp-foo")) {
+        try socket_server.start_server();
+    }
+
     std.debug.print("Unknown command. Use 'help' for usage information.\n", .{});
     print_help();
 }