gosctp

package module
v0.0.0-...-dadfb9d Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2015 License: BSD-2-Clause Imports: 4 Imported by: 1

README

Go bindings for some usrsctp functions (work in progress).

This library is used by gortcdc, and it makes NO effort to provide a complete binding.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SctpData

type SctpData struct {
	Sid, Ppid int
	Data      []byte
}

type SctpTransport

type SctpTransport struct {
	Port int

	BufferChannel chan []byte
	DataChannel   chan *SctpData
	// contains filtered or unexported fields
}

func NewTransport

func NewTransport(port int) (*SctpTransport, error)

func (*SctpTransport) Accept

func (s *SctpTransport) Accept() error

func (*SctpTransport) Connect

func (s *SctpTransport) Connect(port int) error

func (*SctpTransport) Destroy

func (s *SctpTransport) Destroy()

func (*SctpTransport) Feed

func (s *SctpTransport) Feed(data []byte)

func (*SctpTransport) Send

func (s *SctpTransport) Send(data []byte, sid, ppid int) (int, error)

Jump to

Keyboard shortcuts

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