C# Class Otp.AbstractConnection

Show file Open project: saleyn/otp.net Class Usage Examples

Public Properties

Property Type Description
traceLevel OtpTrace.Type

Protected Properties

Property Type Description
auth_cookie string
connected bool
cookieOk bool
passThrough byte
peer OtpPeer
random System.Random
self OtpLocalNode
sendCookie bool
socket System.Net.Sockets.TcpClient
thread System.Threading.Thread

Public Methods

Method Description
Start ( ) : void
close ( ) : void
deliver ( OtpMsg msg ) : void
deliver ( System e ) : void
isConnected ( ) : bool
sendRPC ( Erlang from, System mod, System fun, Erlang args ) : void
sendRPCcast ( Erlang from, string mod, string fun, Erlang args ) : void

Protected Methods

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

Private Methods

Method Description
AbstractConnection ( ) : System
AbstractConnection ( OtpLocalNode self, OtpPeer peer, System s, string cookie ) : System
cookieError ( OtpLocalNode local, Erlang cookie ) : void
decodeIO ( Erlang msg ) : string
decodeRPC ( Erlang msg ) : Otp.Erlang.Object
digests_equals ( byte a, byte b ) : bool
encodeRPC ( Erlang from, Erlang mod, Erlang fun, Erlang args, Erlang gleader ) : Otp.Erlang.Tuple
encodeRPC ( Erlang from, string mod, string fun, Erlang args, Erlang gleader ) : Otp.Erlang.Tuple
encodeRPCcast ( Erlang from, Erlang mod, Erlang fun, Erlang args, Erlang gleader ) : Otp.Erlang.Tuple
encodeRPCcast ( Erlang from, string mod, string fun, Erlang args, Erlang gleader ) : Otp.Erlang.Tuple
hex ( byte b ) : System.String
hex0 ( byte x ) : System.String
sendExit ( int tag, Erlang from, Erlang dest, System reason ) : void

Method Details

AbstractConnection() protected method

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

AbstractConnection() protected method

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

AbstractConnection() protected method

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

Start() public method

public Start ( ) : void
return void

close() public method

public close ( ) : void
return void

deliver() public abstract method

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

deliver() public abstract method

public abstract deliver ( System e ) : void
e System
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() static protected method

static protected genChallenge ( ) : int
return int

genDigest() protected method

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

headerType() protected method

protected headerType ( Erlang h ) : System.String
h Erlang
return System.String

isConnected() public method

public isConnected ( ) : bool
return bool

read2BytePackage() protected method

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

readSock() protected method

protected readSock ( System s, byte b, int sz, bool readingPayload ) : int
s System
b byte
sz int
readingPayload bool
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

sendBuf() protected method

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

sendBuf() protected method

protected sendBuf ( Erlang from, System dest, OtpOutputStream payload ) : void
from Erlang
dest System
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 ( Erlang from, Erlang dest, System reason ) : void
from Erlang
dest Erlang
reason System
return void

sendExit2() protected method

protected sendExit2 ( Erlang from, Erlang dest, System reason ) : void
from Erlang
dest Erlang
reason System
return void

sendLink() protected method

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

sendName() protected method

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

sendRPC() public method

public sendRPC ( Erlang from, System mod, System fun, Erlang args ) : void
from Erlang
mod System
fun System
args Erlang
return void

sendRPCcast() public method

public sendRPCcast ( Erlang from, string mod, string fun, Erlang args ) : void
from Erlang
mod string
fun string
args Erlang
return void

sendStatus() protected method

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

sendUnlink() protected method

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

Property Details

auth_cookie protected property

protected string auth_cookie
return string

connected protected property

protected bool connected
return bool

cookieOk protected property

protected bool cookieOk
return bool

passThrough protected static property

protected static byte passThrough
return byte

peer protected property

protected OtpPeer,Otp peer
return OtpPeer

random protected static property

protected static Random,System random
return System.Random

self protected property

protected OtpLocalNode,Otp self
return OtpLocalNode

sendCookie protected property

protected bool sendCookie
return bool

socket protected property

protected System.Net.Sockets.TcpClient socket
return System.Net.Sockets.TcpClient

thread protected property

protected Thread,System.Threading thread
return System.Threading.Thread

traceLevel public static property

public static OtpTrace.Type traceLevel
return OtpTrace.Type