C# Class K2Informatics.Erlnet.AbstractConnection

Inheritance: ThreadBase
Datei anzeigen Open project: K2InformaticsGmbH/erlnet

Protected Properties

Property Type Description
connected bool
cookieOk bool
ctrlThreshold int
defaultLevel int
handshakeThreshold int
peer OtpPeer
random System.Random
self OtpLocalNode
sendCookie bool
sendThreshold int
socket BufferedTcpClient
traceLevel int

Public Methods

Method Description
close ( ) : void
deliver ( Exception e ) : void
deliver ( OtpMsg msg ) : void
getFlags ( ) : int
getTraceLevel ( ) : int
isConnected ( ) : bool
run ( ) : void
setFlags ( int flags ) : void
setTraceLevel ( int level ) : int

Protected Methods

Method Description
AbstractConnection ( OtpLocalNode self, BufferedTcpClient s ) : System
AbstractConnection ( OtpLocalNode self, OtpPeer other ) : System
doAccept ( ) : void
doConnect ( int port ) : void
do_send ( OtpOutputStream header ) : void
do_send ( OtpOutputStream header, OtpOutputStream payload ) : void
genChallenge ( ) : int
genDigest ( int challenge, String cookie ) : byte[]
headerType ( OtpErlangObject h ) : String
read2BytePackage ( ) : byte[]
readSock ( BufferedTcpClient s, byte b ) : int
recvChallenge ( ) : int
recvChallengeAck ( int our_challenge ) : void
recvChallengeReply ( int our_challenge ) : int
recvName ( OtpPeer peer ) : void
recvStatus ( ) : void
sendBuf ( OtpErlangPid from, OtpErlangPid dest, OtpOutputStream payload ) : void
sendBuf ( OtpErlangPid from, String dest, OtpOutputStream payload ) : void
sendChallenge ( int dist, int flags, int challenge ) : void
sendChallengeAck ( byte digest ) : void
sendChallengeReply ( int challenge, byte digest ) : void
sendExit ( OtpErlangPid from, OtpErlangPid dest, OtpErlangObject reason ) : void
sendExit2 ( OtpErlangPid from, OtpErlangPid dest, OtpErlangObject reason ) : void
sendLink ( OtpErlangPid from, OtpErlangPid dest ) : void
sendName ( int dist, int flags ) : void
sendStatus ( String status ) : void
sendUnlink ( OtpErlangPid from, OtpErlangPid dest ) : void

Private Methods

Method Description
AbstractConnection ( ) : System
cookieError ( OtpLocalNode local, OtpErlangAtom cookie ) : void
digests_equals ( byte a, byte b ) : bool
hex ( byte b ) : String
hex0 ( byte x ) : String
sendExit ( int tag, OtpErlangPid from, OtpErlangPid dest, OtpErlangObject reason ) : void

Method Details

AbstractConnection() protected method

protected AbstractConnection ( OtpLocalNode self, BufferedTcpClient s ) : System
self OtpLocalNode
s BufferedTcpClient
return System

AbstractConnection() protected method

protected AbstractConnection ( OtpLocalNode self, OtpPeer other ) : System
self OtpLocalNode
other OtpPeer
return System

close() public method

public close ( ) : void
return void

deliver() public abstract method

public abstract deliver ( Exception e ) : void
e System.Exception
return void

deliver() public abstract method

public abstract deliver ( OtpMsg msg ) : void
msg OtpMsg
return void

doAccept() protected method

protected doAccept ( ) : void
return void

doConnect() protected method

protected doConnect ( int port ) : void
port int
return void

do_send() protected method

protected do_send ( OtpOutputStream header ) : void
header OtpOutputStream
return void

do_send() protected method

protected do_send ( OtpOutputStream header, OtpOutputStream payload ) : void
header OtpOutputStream
payload OtpOutputStream
return void

genChallenge() protected static method

protected static genChallenge ( ) : int
return int

genDigest() protected method

protected genDigest ( int challenge, String cookie ) : byte[]
challenge int
cookie String
return byte[]

getFlags() public method

public getFlags ( ) : int
return int

getTraceLevel() public method

public getTraceLevel ( ) : int
return int

headerType() protected method

protected headerType ( OtpErlangObject h ) : String
h OtpErlangObject
return String

isConnected() public method

public isConnected ( ) : bool
return bool

read2BytePackage() protected method

protected read2BytePackage ( ) : byte[]
return byte[]

readSock() protected method

protected readSock ( BufferedTcpClient s, byte b ) : int
s BufferedTcpClient
b byte
return int

recvChallenge() protected method

protected recvChallenge ( ) : int
return int

recvChallengeAck() protected method

protected recvChallengeAck ( int our_challenge ) : void
our_challenge int
return void

recvChallengeReply() protected method

protected recvChallengeReply ( int our_challenge ) : int
our_challenge int
return int

recvName() protected method

protected recvName ( OtpPeer peer ) : void
peer OtpPeer
return void

recvStatus() protected method

protected recvStatus ( ) : void
return void

run() public method

public run ( ) : void
return void

sendBuf() protected method

protected sendBuf ( OtpErlangPid from, OtpErlangPid dest, OtpOutputStream payload ) : void
from OtpErlangPid
dest OtpErlangPid
payload OtpOutputStream
return void

sendBuf() protected method

protected sendBuf ( OtpErlangPid from, String dest, OtpOutputStream payload ) : void
from OtpErlangPid
dest String
payload OtpOutputStream
return void

sendChallenge() protected method

protected sendChallenge ( int dist, int flags, int challenge ) : void
dist int
flags int
challenge int
return void

sendChallengeAck() protected method

protected sendChallengeAck ( byte digest ) : void
digest byte
return void

sendChallengeReply() protected method

protected sendChallengeReply ( int challenge, byte digest ) : void
challenge int
digest byte
return void

sendExit() protected method

protected sendExit ( OtpErlangPid from, OtpErlangPid dest, OtpErlangObject reason ) : void
from OtpErlangPid
dest OtpErlangPid
reason OtpErlangObject
return void

sendExit2() protected method

protected sendExit2 ( OtpErlangPid from, OtpErlangPid dest, OtpErlangObject reason ) : void
from OtpErlangPid
dest OtpErlangPid
reason OtpErlangObject
return void

sendLink() protected method

protected sendLink ( OtpErlangPid from, OtpErlangPid dest ) : void
from OtpErlangPid
dest OtpErlangPid
return void

sendName() protected method

protected sendName ( int dist, int flags ) : void
dist int
flags int
return void

sendStatus() protected method

protected sendStatus ( String status ) : void
status String
return void

sendUnlink() protected method

protected sendUnlink ( OtpErlangPid from, OtpErlangPid dest ) : void
from OtpErlangPid
dest OtpErlangPid
return void

setFlags() public method

public setFlags ( int flags ) : void
flags int
return void

setTraceLevel() public method

public setTraceLevel ( int level ) : int
level int
return int

Property Details

connected protected_oe property

protected bool connected
return bool

cookieOk protected_oe property

protected bool cookieOk
return bool

ctrlThreshold protected_oe static_oe property

protected static int ctrlThreshold
return int

defaultLevel protected_oe static_oe property

protected static int defaultLevel
return int

handshakeThreshold protected_oe static_oe property

protected static int handshakeThreshold
return int

peer protected_oe property

protected OtpPeer,K2Informatics.Erlnet peer
return OtpPeer

random protected_oe static_oe property

protected static Random,System random
return System.Random

self protected_oe property

protected OtpLocalNode,K2Informatics.Erlnet self
return OtpLocalNode

sendCookie protected_oe property

protected bool sendCookie
return bool

sendThreshold protected_oe static_oe property

protected static int sendThreshold
return int

socket protected_oe property

protected BufferedTcpClient,K2Informatics.Erlnet socket
return BufferedTcpClient

traceLevel protected_oe property

protected int traceLevel
return int