mirror of
https://github.com/ziglang/zig.git
synced 2024-12-01 01:22:50 +00:00
50339f595a
Signed-off-by: Eric Joldasov <bratishkaerik@getgoogleoff.me>
22 lines
425 B
Zig
22 lines
425 B
Zig
pub const Protocols: struct {
|
|
list: *const fn (*Connection) void = undefined,
|
|
handShake: type = struct {
|
|
const stepStart: u8 = 0;
|
|
},
|
|
} = .{};
|
|
|
|
pub const Connection = struct {
|
|
streamBuffer: [0]u8 = undefined,
|
|
__lastReceivedPackets: [0]u8 = undefined,
|
|
|
|
handShakeState: u8 = Protocols.handShake.stepStart,
|
|
};
|
|
|
|
pub fn main() void {
|
|
var conn: Connection = undefined;
|
|
_ = conn;
|
|
}
|
|
|
|
// run
|
|
//
|