Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/360tetsu360/zproxy
[WIP] A simple proxy for mcbe.
https://github.com/360tetsu360/zproxy
bedrock mcbe minecraft proxy zig
Last synced: about 2 months ago
JSON representation
[WIP] A simple proxy for mcbe.
- Host: GitHub
- URL: https://github.com/360tetsu360/zproxy
- Owner: 360tetsu360
- License: mit
- Created: 2022-08-21T03:21:13.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-08-23T02:49:30.000Z (over 2 years ago)
- Last Synced: 2024-07-30T21:08:55.381Z (5 months ago)
- Topics: bedrock, mcbe, minecraft, proxy, zig
- Language: Zig
- Homepage:
- Size: 26.4 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# ZPROXY
[WIP] A simple proxy for mcbe written in zig.# Usage
``` zig
const std = @import("std");
const network = @import("network");
const zproxy = @import("zproxy");fn handle_client() bool {
return false;
}fn handle_server() bool {
return false;
}pub fn main() !void {
try network.init();
defer network.deinit();const bind_address = .{
.address = .{ .ipv4 = network.Address.IPv4.loopback },
.port = 19130,
};const target_address = .{
.address = .{ .ipv4 = network.Address.IPv4.loopback },
.port = 19132,
};try zproxy.startup(bind_address, target_address, handle_client, handle_server);
}
```