2023-04-24 00:09:12 +01:00
|
|
|
pub const Protocols: struct {
|
2023-06-15 08:14:16 +01:00
|
|
|
list: *const fn (*Connection) void = undefined,
|
|
|
|
handShake: type = struct {
|
|
|
|
const stepStart: u8 = 0;
|
|
|
|
},
|
2023-04-24 00:09:12 +01:00
|
|
|
} = .{};
|
|
|
|
|
|
|
|
pub const Connection = struct {
|
2023-06-15 08:14:16 +01:00
|
|
|
streamBuffer: [0]u8 = undefined,
|
|
|
|
__lastReceivedPackets: [0]u8 = undefined,
|
2023-04-24 00:09:12 +01:00
|
|
|
|
2023-06-15 08:14:16 +01:00
|
|
|
handShakeState: u8 = Protocols.handShake.stepStart,
|
2023-04-24 00:09:12 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
pub fn main() void {
|
2023-06-15 08:14:16 +01:00
|
|
|
var conn: Connection = undefined;
|
|
|
|
_ = conn;
|
2023-04-24 00:09:12 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
// run
|
|
|
|
//
|