clients

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: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GetGroupDataSessionClient

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

GetGroupDataSessionClient is a client in a session that is started for getting a specific group data from another group member

func NewGetGroupDataSessionClient

func NewGetGroupDataSessionClient(
	requestedGroupData comcommon.GroupData,
	groupAddr ethcommon.Address,
	groupMsgPayload []byte,
	contact *comcommon.Contact,
	sender ethcommon.Address,
	signer comcommon.Signer,
	onSessionClosed common.SessionClosedCallback,
	onSuccess common.OnGetGroupKeySuccessCallback,
) *GetGroupDataSessionClient

NewGetGroupDataSessionClient creates a new session client to retrieve a group's specific data

func (*GetGroupDataSessionClient) Abort

func (session *GetGroupDataSessionClient) Abort()

Abort aborts the session

func (*GetGroupDataSessionClient) Error

func (session *GetGroupDataSessionClient) Error() error

Error returns any errors that may occurred during the session

func (*GetGroupDataSessionClient) ID

func (session *GetGroupDataSessionClient) ID() uint32

ID returns the session id

func (*GetGroupDataSessionClient) IsAlive

func (session *GetGroupDataSessionClient) IsAlive() bool

IsAlive returns whether the session is active or not

func (*GetGroupDataSessionClient) NextState

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

NextState : Sessions are implemented as Finite State Machines. NextState moves the session's FSM's state

func (*GetGroupDataSessionClient) Run

func (session *GetGroupDataSessionClient) Run()

Run starts the session

func (*GetGroupDataSessionClient) State

func (session *GetGroupDataSessionClient) State() uint8

State returns the state of the session

Jump to

Keyboard shortcuts

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