[PD1] crypto changes and TLS almost done
This commit is contained in:
parent
2c4f1fd2fc
commit
5ae7358a0d
13 changed files with 138 additions and 87 deletions
|
@ -103,9 +103,9 @@ type ServerMessagePacket struct {
|
|||
Timestamp time.Time
|
||||
}
|
||||
|
||||
func NewMessagePacket(fromUID, toUID string, content []byte, timestamp time.Time) Packet {
|
||||
func NewServerMessagePacket(fromUID, toUID string, content []byte, timestamp time.Time) Packet {
|
||||
return Packet{
|
||||
Flag: Msg,
|
||||
Flag: ServerMsgPkt,
|
||||
Body: ServerMessagePacket{
|
||||
FromUID: fromUID,
|
||||
ToUID: toUID,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue