mirror of
https://github.com/ziglang/zig.git
synced 2024-11-26 15:12:31 +00:00
22 lines
426 B
Zig
22 lines
426 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
|
|
//
|