tipc

package module
v0.0.0-...-7cf813e Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2021 License: MIT Imports: 9 Imported by: 0

README

tipc

sudo modprobe tipc
tipc node set addr 1.1.2
tipc bearer enable media eth device lo

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Addr

type Addr struct {
	unix.Sockaddr
}

func (*Addr) Network

func (a *Addr) Network() string

func (*Addr) String

func (a *Addr) String() string

type Conn

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

func DialSequentialPacket

func DialSequentialPacket(s *unix.SockaddrTIPC) (*Conn, error)

func DialStream

func DialStream(s *unix.SockaddrTIPC) (*Conn, error)

func ListenDatagram

func ListenDatagram(s *unix.SockaddrTIPC) (*Conn, error)

func ListenReliableDatagram

func ListenReliableDatagram(s *unix.SockaddrTIPC) (*Conn, error)

func ReliableDatagram

func ReliableDatagram() (*Conn, error)

func SocketPair

func SocketPair() (c1, c2 *Conn, err error)

SocketPair returns two AF_TIPC connections connected to each other through the local node. They are created as SOCK_SEQPACKET sockets.

func (*Conn) Close

func (tc *Conn) Close() (err error)

func (*Conn) LocalAddr

func (tc *Conn) LocalAddr() net.Addr

func (*Conn) Read

func (tc *Conn) Read(b []byte) (n int, err error)

func (*Conn) ReadFrom

func (tc *Conn) ReadFrom(p []byte) (n int, addr net.Addr, err error)

func (*Conn) RemoteAddr

func (tc *Conn) RemoteAddr() net.Addr

func (*Conn) SetDeadline

func (tc *Conn) SetDeadline(t time.Time) error

func (*Conn) SetReadDeadline

func (tc *Conn) SetReadDeadline(t time.Time) error

func (*Conn) SetWriteDeadline

func (tc *Conn) SetWriteDeadline(t time.Time) error

func (*Conn) String

func (c *Conn) String() string

func (*Conn) Write

func (tc *Conn) Write(b []byte) (n int, err error)

func (*Conn) WriteTo

func (tc *Conn) WriteTo(p []byte, addr net.Addr) (n int, err error)

type Listener

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

func Listen

func Listen(scope int, s *unix.TIPCServiceRange) (*Listener, error)

func (*Listener) Accept

func (l *Listener) Accept() (net.Conn, error)

func (*Listener) Addr

func (l *Listener) Addr() net.Addr

func (*Listener) Close

func (l *Listener) Close() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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