networking

package
v0.1.4-alpha Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2022 License: AGPL-3.0 Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConnectionManager

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

func NewConnectionManager

func NewConnectionManager(manager *handlers.ClientManager) *ConnectionManager

func (*ConnectionManager) Connect

func (m *ConnectionManager) Connect(signaler string, community string, f func(msg webrtc.DataChannelMessage))

func (*ConnectionManager) Write

func (m *ConnectionManager) Write(p []byte) (int, error)

func (*ConnectionManager) WriteUnicast

func (m *ConnectionManager) WriteUnicast(p []byte, mac string) error

type FileSystemError

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

func (*FileSystemError) Error

func (e *FileSystemError) Error() string

type NoConnectionEstablished

type NoConnectionEstablished struct{}

func (*NoConnectionEstablished) Error

func (m *NoConnectionEstablished) Error() string

type RemoteFile

type RemoteFile struct {
	ReadCh  chan api.ReadOpResponse
	WriteCh chan api.WriteOpResponse
	SeekCh  chan api.SeekOpResponse
	CloseCh chan api.CloseOpResponse
	OpenCh  chan api.OpenOpResponse
	// contains filtered or unexported fields
}

func NewRemoteFile

func NewRemoteFile(cm ConnectionManager) *RemoteFile

func (*RemoteFile) Close

func (f *RemoteFile) Close() error

func (*RemoteFile) Fd

func (f *RemoteFile) Fd() uintptr

func (*RemoteFile) Open

func (f *RemoteFile) Open(create bool) error

func (*RemoteFile) Read

func (f *RemoteFile) Read(n []byte) (int, error)

func (*RemoteFile) Seek

func (f *RemoteFile) Seek(offset int64, whence int) (int64, error)

func (*RemoteFile) Write

func (f *RemoteFile) Write(n []byte) (int, error)

Jump to

Keyboard shortcuts

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