Documentation ¶
Index ¶
- func NewConn(baseConn net.Conn, output chan base.SipMessage) *connection
- type Listener
- type Manager
- type Tcp
- func (t *Tcp) GetConn(addr string) *connection
- func (t *Tcp) Init()
- func (tcp *Tcp) IsStreamed() bool
- func (tcp *Tcp) Listen(address string) error
- func (tcp *Tcp) LocalAddress(addr string) (net.Addr, error)
- func (t *Tcp) Notify(addr string, conn *connection)
- func (tcp *Tcp) Send(addr string, msg base.SipMessage) error
- func (tcp *Tcp) Stop()
- type Udp
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Listener ¶
type Listener chan base.SipMessage
type Manager ¶
type Manager interface { Listen(address string) error Send(addr string, message base.SipMessage) error Stop() GetChannel() Listener LocalAddress(addr string) (net.Addr, error) }
func NewManager ¶
type Tcp ¶
type Tcp struct {
// contains filtered or unexported fields
}
func (*Tcp) GetConn ¶
func (t *Tcp) GetConn(addr string) *connection
Return an existing open socket for the given address, or nil if no such socket exists.
func (*Tcp) IsStreamed ¶
type Udp ¶
type Udp struct {
// contains filtered or unexported fields
}
func (*Udp) IsStreamed ¶
func (*Udp) LocalAddress ¶
TODO: fix later
Click to show internal directories.
Click to hide internal directories.