sippy_sdp

package
v0.0.0-...-1058202 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 12, 2018 License: BSD-2-Clause Imports: 8 Imported by: 0

Documentation

Overview

Copyright (c) 2015 Andrii Pylypenko. All rights reserved.

All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Copyright (c) 2003-2005 Maxim Sobolev. All rights reserved. Copyright (c) 2006-2015 Sippy Software, Inc. All rights reserved. Copyright (c) 2015 Andrii Pylypenko. All rights reserved.

All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Copyright (c) 2006-2015 Sippy Software, Inc. All rights reserved. Copyright (c) 2015 Andrii Pylypenko. All rights reserved.

All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Copyright (c) 2003-2005 Maxim Sobolev. All rights reserved. Copyright (c) 2006-2015 Sippy Software, Inc. All rights reserved. Copyright (c) 2015 Andrii Pylypenko. All rights reserved.

All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Copyright (c) 2003-2005 Maxim Sobolev. All rights reserved. Copyright (c) 2006-2015 Sippy Software, Inc. All rights reserved. Copyright (c) 2015 Andrii Pylypenko. All rights reserved.

All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Copyright (c) 2003-2005 Maxim Sobolev. All rights reserved. Copyright (c) 2006-2015 Sippy Software, Inc. All rights reserved. Copyright (c) 2015 Andrii Pylypenko. All rights reserved.

All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SdpConnecton

type SdpConnecton struct {
	// contains filtered or unexported fields
}

func ParseSdpConnecton

func ParseSdpConnecton(body string) *SdpConnecton

func (*SdpConnecton) GetAType

func (self *SdpConnecton) GetAType() string

func (*SdpConnecton) GetAddr

func (self *SdpConnecton) GetAddr() string

func (*SdpConnecton) GetCopy

func (self *SdpConnecton) GetCopy() *SdpConnecton

func (*SdpConnecton) LocalStr

func (self *SdpConnecton) LocalStr(hostport *sippy_net.HostPort) string

func (*SdpConnecton) SetAType

func (self *SdpConnecton) SetAType(atype string)

func (*SdpConnecton) SetAddr

func (self *SdpConnecton) SetAddr(addr string)

func (*SdpConnecton) String

func (self *SdpConnecton) String() string

type SdpGeneric

type SdpGeneric struct {
	// contains filtered or unexported fields
}

func ParseSdpGeneric

func ParseSdpGeneric(body string) *SdpGeneric

func (*SdpGeneric) GetCopy

func (self *SdpGeneric) GetCopy() *SdpGeneric

func (*SdpGeneric) LocalStr

func (self *SdpGeneric) LocalStr(hostport *sippy_net.HostPort) string

func (*SdpGeneric) String

func (self *SdpGeneric) String() string

type SdpHeader

type SdpHeader interface {
	String() string
	LocalStr(hostport *sippy_net.HostPort) string
}

type SdpMedia

type SdpMedia struct {
	// contains filtered or unexported fields
}

func ParseSdpMedia

func ParseSdpMedia(body string) *SdpMedia

func (*SdpMedia) GetCopy

func (self *SdpMedia) GetCopy() *SdpMedia

func (*SdpMedia) GetFormats

func (self *SdpMedia) GetFormats() []string

func (*SdpMedia) GetPort

func (self *SdpMedia) GetPort() string

func (*SdpMedia) GetTransport

func (self *SdpMedia) GetTransport() string

func (*SdpMedia) HasFormat

func (self *SdpMedia) HasFormat(format string) bool

func (*SdpMedia) LocalStr

func (self *SdpMedia) LocalStr(hostport *sippy_net.HostPort) string

func (*SdpMedia) SetFormats

func (self *SdpMedia) SetFormats(formats []string)

WARNING! Use this function only if know what you do! Otherwise consider using the sdpMediaDescription.SetFormats() instead.

func (*SdpMedia) SetPort

func (self *SdpMedia) SetPort(port string)

func (*SdpMedia) String

func (self *SdpMedia) String() string

type SdpMediaDescription

type SdpMediaDescription struct {
	// contains filtered or unexported fields
}

func NewSdpMediaDescription

func NewSdpMediaDescription() *SdpMediaDescription

func (*SdpMediaDescription) AddHeader

func (self *SdpMediaDescription) AddHeader(name, header string)

func (*SdpMediaDescription) GetAHeaders

func (self *SdpMediaDescription) GetAHeaders() []string

func (*SdpMediaDescription) GetCHeader

func (self *SdpMediaDescription) GetCHeader() *SdpConnecton

func (*SdpMediaDescription) GetCopy

func (self *SdpMediaDescription) GetCopy() *SdpMediaDescription

func (*SdpMediaDescription) GetMHeader

func (self *SdpMediaDescription) GetMHeader() *SdpMedia

func (*SdpMediaDescription) IsOnHold

func (self *SdpMediaDescription) IsOnHold() bool

func (*SdpMediaDescription) LocalStr

func (self *SdpMediaDescription) LocalStr(hostport *sippy_net.HostPort, noC bool) string

func (*SdpMediaDescription) NeedsUpdate

func (self *SdpMediaDescription) NeedsUpdate() bool

func (*SdpMediaDescription) RemoveAHeader

func (self *SdpMediaDescription) RemoveAHeader(hdr string)

func (*SdpMediaDescription) SanityCheck

func (self *SdpMediaDescription) SanityCheck() error

func (*SdpMediaDescription) SetAHeaders

func (self *SdpMediaDescription) SetAHeaders(a_headers []string)

func (*SdpMediaDescription) SetCHeader

func (self *SdpMediaDescription) SetCHeader(c_header *SdpConnecton)

func (*SdpMediaDescription) SetCHeaderAddr

func (self *SdpMediaDescription) SetCHeaderAddr(addr string)

func (*SdpMediaDescription) SetFormats

func (self *SdpMediaDescription) SetFormats(formats []string)

func (*SdpMediaDescription) SetNeedsUpdate

func (self *SdpMediaDescription) SetNeedsUpdate(needs_update bool)

func (*SdpMediaDescription) String

func (self *SdpMediaDescription) String() string

type SdpOrigin

type SdpOrigin struct {
	// contains filtered or unexported fields
}

func NewSdpOrigin

func NewSdpOrigin(address string) (*SdpOrigin, error)

func ParseSdpOrigin

func ParseSdpOrigin(body string) (*SdpOrigin, error)

func (*SdpOrigin) GetCopy

func (self *SdpOrigin) GetCopy() *SdpOrigin

func (*SdpOrigin) GetSessionId

func (self *SdpOrigin) GetSessionId() string

func (*SdpOrigin) GetVersion

func (self *SdpOrigin) GetVersion() int64

func (*SdpOrigin) IncVersion

func (self *SdpOrigin) IncVersion()

func (*SdpOrigin) LocalStr

func (self *SdpOrigin) LocalStr(hostport *sippy_net.HostPort) string

func (*SdpOrigin) String

func (self *SdpOrigin) String() string

type Sdp_header_and_name

type Sdp_header_and_name struct {
	Name   string
	Header SdpHeader
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL