servers

package
v0.0.0-...-52bbd4c Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2019 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GetGroupKeySessionServer

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

GetGroupKeySessionServer is a server session that will send the requested group data to the sender if he can authenticate itself and has access to the given data

func NewGetGroupDataSessionServer

func NewGetGroupDataSessionServer(
	msg *comcommon.Message,
	contact *comcommon.Contact,
	sender ethcommon.Address,
	signer comcommon.Signer,
	callback common.CtxCallback,
	onSessionClosed common.SessionClosedCallback,
) (*GetGroupKeySessionServer, error)

NewGetGroupDataSessionServer creates a new session server that will send the requested group data to the sender

func (*GetGroupKeySessionServer) Abort

func (session *GetGroupKeySessionServer) Abort()

Abort aborts the session

func (*GetGroupKeySessionServer) Error

func (session *GetGroupKeySessionServer) Error() error

Error returns any errors that may have occurred during the session

func (*GetGroupKeySessionServer) ID

func (session *GetGroupKeySessionServer) ID() uint32

ID returns the session id

func (*GetGroupKeySessionServer) IsAlive

func (session *GetGroupKeySessionServer) IsAlive() bool

IsAlive returns if the session is active or not

func (*GetGroupKeySessionServer) NextState

func (session *GetGroupKeySessionServer) NextState(contact *comcommon.Contact, data []byte)

NextState moves the FSM's state. For more information see ISession

func (*GetGroupKeySessionServer) Run

func (session *GetGroupKeySessionServer) Run()

Run starts the session

func (*GetGroupKeySessionServer) State

func (session *GetGroupKeySessionServer) State() uint8

State returns the session's current state

Jump to

Keyboard shortcuts

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