mirror of
https://github.com/cmz0228/hysteria-dev.git
synced 2025-07-29 13:44:30 +00:00
Implemented UDP for both server & client
This commit is contained in:
@@ -43,3 +43,11 @@ type serverResponse struct {
|
||||
MessageLen uint16 `struc:"sizeof=Message"`
|
||||
Message string
|
||||
}
|
||||
|
||||
type udpMessage struct {
|
||||
SessionID uint32
|
||||
AddressLen uint16 `struc:"sizeof=Address"`
|
||||
Address string
|
||||
DataLen uint16 `struc:"sizeof=Data"`
|
||||
Data []byte
|
||||
}
|
||||
|
Reference in New Issue
Block a user