github.com/pion/dtls/v2@v2.2.12/pkg/protocol/handshake/message_server_hello_done.go (about)

     1  // SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>
     2  // SPDX-License-Identifier: MIT
     3  
     4  package handshake
     5  
     6  // MessageServerHelloDone is final non-encrypted message from server
     7  // this communicates server has sent all its handshake messages and next
     8  // should be MessageFinished
     9  type MessageServerHelloDone struct{}
    10  
    11  // Type returns the Handshake Type
    12  func (m MessageServerHelloDone) Type() Type {
    13  	return TypeServerHelloDone
    14  }
    15  
    16  // Marshal encodes the Handshake
    17  func (m *MessageServerHelloDone) Marshal() ([]byte, error) {
    18  	return []byte{}, nil
    19  }
    20  
    21  // Unmarshal populates the message from encoded data
    22  func (m *MessageServerHelloDone) Unmarshal([]byte) error {
    23  	return nil
    24  }