コード例 #1
0
ファイル: SIPMessage.go プロジェクト: hinike/gosips
/**
 *
 * Constructor: Initializes lists and list headers.
 * All the headers for which there can be multiple occurances in
 * a message are  derived from the SIPHeaderListClass. All singleton
 * headers are derived from SIPHeader class.
 *
 */
func NewSIPMessage() *SIPMessage {
	this := &SIPMessage{}
	this.unrecognizedHeaders = list.New()
	this.headers = list.New()
	this.nameTable = make(map[string]header.Header)
	this.AttachHeader2(header.NewContentLengthFromInt(0), false)
	return this
}
コード例 #2
0
ファイル: SIPMessage.go プロジェクト: hinike/gosips
func (this *SIPMessage) super() {
	this.unrecognizedHeaders = list.New()
	this.headers = list.New()
	this.nameTable = make(map[string]header.Header)
	this.AttachHeader2(header.NewContentLengthFromInt(0), false)
}