C# Class Erlang.NET.AbstractConnection

Inheritance: ThreadBase
Afficher le fichier Open project: takayuki/opensim-pcproject

Protected Properties

Свойство Type Description
connected bool
cookieOk bool
ctrlThreshold int
defaultLevel int
handshakeThreshold int
peer Erlang.NET.OtpPeer
random System.Random
self OtpLocalNode
sendCookie bool
sendThreshold int
socket BufferedTcpClient
traceLevel int

Méthodes publiques

Méthode Description
close ( ) : void
deliver ( Exception e ) : void
deliver ( Erlang.NET.OtpMsg msg ) : void
getFlags ( ) : int
getTraceLevel ( ) : int
isConnected ( ) : bool
run ( ) : void
setFlags ( int flags ) : void
setTraceLevel ( int level ) : int

Méthodes protégées

Méthode Description
AbstractConnection ( OtpLocalNode self, BufferedTcpClient s ) : System
AbstractConnection ( OtpLocalNode self, Erlang.NET.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 ( Erlang.NET.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

Méthode Description
AbstractConnection ( ) : System
cookieError ( OtpLocalNode local, Erlang.NET.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 méthode

protected AbstractConnection ( OtpLocalNode self, BufferedTcpClient s ) : System
self OtpLocalNode
s BufferedTcpClient
Résultat System

AbstractConnection() protected méthode

protected AbstractConnection ( OtpLocalNode self, Erlang.NET.OtpPeer other ) : System
self OtpLocalNode
other Erlang.NET.OtpPeer
Résultat System

close() public méthode

public close ( ) : void
Résultat void

deliver() public abstract méthode

public abstract deliver ( Exception e ) : void
e System.Exception
Résultat void

deliver() public abstract méthode

public abstract deliver ( Erlang.NET.OtpMsg msg ) : void
msg Erlang.NET.OtpMsg
Résultat void

doAccept() protected méthode

protected doAccept ( ) : void
Résultat void

doConnect() protected méthode

protected doConnect ( int port ) : void
port int
Résultat void

do_send() protected méthode

protected do_send ( OtpOutputStream header ) : void
header OtpOutputStream
Résultat void

do_send() protected méthode

protected do_send ( OtpOutputStream header, OtpOutputStream payload ) : void
header OtpOutputStream
payload OtpOutputStream
Résultat void

genChallenge() protected static méthode

protected static genChallenge ( ) : int
Résultat int

genDigest() protected méthode

protected genDigest ( int challenge, String cookie ) : byte[]
challenge int
cookie String
Résultat byte[]

getFlags() public méthode

public getFlags ( ) : int
Résultat int

getTraceLevel() public méthode

public getTraceLevel ( ) : int
Résultat int

headerType() protected méthode

protected headerType ( OtpErlangObject h ) : String
h OtpErlangObject
Résultat String

isConnected() public méthode

public isConnected ( ) : bool
Résultat bool

read2BytePackage() protected méthode

protected read2BytePackage ( ) : byte[]
Résultat byte[]

readSock() protected méthode

protected readSock ( BufferedTcpClient s, byte b ) : int
s BufferedTcpClient
b byte
Résultat int

recvChallenge() protected méthode

protected recvChallenge ( ) : int
Résultat int

recvChallengeAck() protected méthode

protected recvChallengeAck ( int our_challenge ) : void
our_challenge int
Résultat void

recvChallengeReply() protected méthode

protected recvChallengeReply ( int our_challenge ) : int
our_challenge int
Résultat int

recvName() protected méthode

protected recvName ( Erlang.NET.OtpPeer peer ) : void
peer Erlang.NET.OtpPeer
Résultat void

recvStatus() protected méthode

protected recvStatus ( ) : void
Résultat void

run() public méthode

public run ( ) : void
Résultat void

sendBuf() protected méthode

protected sendBuf ( OtpErlangPid from, OtpErlangPid dest, OtpOutputStream payload ) : void
from OtpErlangPid
dest OtpErlangPid
payload OtpOutputStream
Résultat void

sendBuf() protected méthode

protected sendBuf ( OtpErlangPid from, String dest, OtpOutputStream payload ) : void
from OtpErlangPid
dest String
payload OtpOutputStream
Résultat void

sendChallenge() protected méthode

protected sendChallenge ( int dist, int flags, int challenge ) : void
dist int
flags int
challenge int
Résultat void

sendChallengeAck() protected méthode

protected sendChallengeAck ( byte digest ) : void
digest byte
Résultat void

sendChallengeReply() protected méthode

protected sendChallengeReply ( int challenge, byte digest ) : void
challenge int
digest byte
Résultat void

sendExit() protected méthode

protected sendExit ( OtpErlangPid from, OtpErlangPid dest, OtpErlangObject reason ) : void
from OtpErlangPid
dest OtpErlangPid
reason OtpErlangObject
Résultat void

sendExit2() protected méthode

protected sendExit2 ( OtpErlangPid from, OtpErlangPid dest, OtpErlangObject reason ) : void
from OtpErlangPid
dest OtpErlangPid
reason OtpErlangObject
Résultat void

sendLink() protected méthode

protected sendLink ( OtpErlangPid from, OtpErlangPid dest ) : void
from OtpErlangPid
dest OtpErlangPid
Résultat void

sendName() protected méthode

protected sendName ( int dist, int flags ) : void
dist int
flags int
Résultat void

sendStatus() protected méthode

protected sendStatus ( String status ) : void
status String
Résultat void

sendUnlink() protected méthode

protected sendUnlink ( OtpErlangPid from, OtpErlangPid dest ) : void
from OtpErlangPid
dest OtpErlangPid
Résultat void

setFlags() public méthode

public setFlags ( int flags ) : void
flags int
Résultat void

setTraceLevel() public méthode

public setTraceLevel ( int level ) : int
level int
Résultat int

Property Details

connected protected_oe property

protected bool connected
Résultat bool

cookieOk protected_oe property

protected bool cookieOk
Résultat bool

ctrlThreshold protected_oe static_oe property

protected static int ctrlThreshold
Résultat int

defaultLevel protected_oe static_oe property

protected static int defaultLevel
Résultat int

handshakeThreshold protected_oe static_oe property

protected static int handshakeThreshold
Résultat int

peer protected_oe property

protected OtpPeer,Erlang.NET peer
Résultat Erlang.NET.OtpPeer

random protected_oe static_oe property

protected static Random,System random
Résultat System.Random

self protected_oe property

protected OtpLocalNode,Erlang.NET self
Résultat OtpLocalNode

sendCookie protected_oe property

protected bool sendCookie
Résultat bool

sendThreshold protected_oe static_oe property

protected static int sendThreshold
Résultat int

socket protected_oe property

protected BufferedTcpClient,Erlang.NET socket
Résultat BufferedTcpClient

traceLevel protected_oe property

protected int traceLevel
Résultat int