예제 #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)
}