Public Member Functions | |
void | start (Socket socket=null) |
void | stop () |
virtual void | disconnect () |
void | sendData (ProtocolMessageCode code, byte[] data, byte[] helper_data=null) |
int | getQueuedMessageCount () |
bool | isConnected () |
string | getFullAddress (bool useIncomingPorts=false) |
void | setLegacy (bool legacy) |
bool | isLegacy () |
bool | attachEvent (NetworkEvents.Type type, byte[] address) |
bool | detachEvent (NetworkEvents.Type type, byte[] address) |
bool | isSubscribedToEvent (NetworkEvents.Type type, byte[] address) |
long | calculateTimeDifference () |
Public Attributes | |
string | fullAddress = "127.0.0.1:10000" |
string | address = "127.0.0.1" |
int | incomingPort = Config.serverPort |
long | timeDifference = 0 |
bool | timeSyncComplete = false |
bool | helloReceived = false |
ulong | blockHeight = 0 |
bool | fullyStopped = false |
IPEndPoint | remoteIP |
Socket | clientSocket |
RemoteEndpointState | state |
Presence | presence = null |
PresenceAddress | presenceAddress = null |
byte [] | serverWalletAddress = null |
byte [] | serverPubKey = null |
byte [] | challenge = null |
Protected Member Functions | |
void | prepareSocket (Socket socket) |
virtual void | recvLoop () |
void | sendTimeSyncMessages () |
void | sendLoop () |
void | parseLoop () |
void | parseDataInternal (byte[] data, RemoteEndpoint endpoint) |
void | sendDataInternal (ProtocolMessageCode code, byte[] data, byte[] checksum) |
void | readTimeSyncData () |
byte [] | readSocketData () |
Protected Attributes | |
long | lastDataReceivedTime = 0 |
long | lastDataSentTime = 0 |
Thread | recvThread = null |
Thread | sendThread = null |
Thread | parseThread = null |
bool | running = false |
List< TimeSyncData > | timeSyncs = new List<TimeSyncData>() |
bool | enableSendTimeSyncMessages = true |
Definition at line 20 of file NetworkRemoteEndpoint.cs.
bool DLT.RemoteEndpoint.attachEvent | ( | NetworkEvents.Type | type, |
byte [] | address | ||
) |
Definition at line 906 of file NetworkRemoteEndpoint.cs.
long DLT.RemoteEndpoint.calculateTimeDifference | ( | ) |
Definition at line 975 of file NetworkRemoteEndpoint.cs.
bool DLT.RemoteEndpoint.detachEvent | ( | NetworkEvents.Type | type, |
byte [] | address | ||
) |
Definition at line 929 of file NetworkRemoteEndpoint.cs.
|
virtual |
Reimplemented in DLT.NetworkClient.
Definition at line 315 of file NetworkRemoteEndpoint.cs.
string DLT.RemoteEndpoint.getFullAddress | ( | bool | useIncomingPorts = false | ) |
Definition at line 688 of file NetworkRemoteEndpoint.cs.
int DLT.RemoteEndpoint.getQueuedMessageCount | ( | ) |
Definition at line 656 of file NetworkRemoteEndpoint.cs.
bool DLT.RemoteEndpoint.isConnected | ( | ) |
Definition at line 670 of file NetworkRemoteEndpoint.cs.
bool DLT.RemoteEndpoint.isLegacy | ( | ) |
Definition at line 899 of file NetworkRemoteEndpoint.cs.
bool DLT.RemoteEndpoint.isSubscribedToEvent | ( | NetworkEvents.Type | type, |
byte [] | address | ||
) |
Definition at line 948 of file NetworkRemoteEndpoint.cs.
|
protected |
Definition at line 527 of file NetworkRemoteEndpoint.cs.
|
protected |
Definition at line 481 of file NetworkRemoteEndpoint.cs.
|
protected |
Definition at line 82 of file NetworkRemoteEndpoint.cs.
|
protected |
Definition at line 774 of file NetworkRemoteEndpoint.cs.
|
protected |
Definition at line 740 of file NetworkRemoteEndpoint.cs.
|
protectedvirtual |
Reimplemented in DLT.NetworkClient.
Definition at line 245 of file NetworkRemoteEndpoint.cs.
void DLT.RemoteEndpoint.sendData | ( | ProtocolMessageCode | code, |
byte [] | data, | ||
byte [] | helper_data = null |
||
) |
Definition at line 618 of file NetworkRemoteEndpoint.cs.
|
protected |
Definition at line 541 of file NetworkRemoteEndpoint.cs.
|
protected |
Definition at line 360 of file NetworkRemoteEndpoint.cs.
|
protected |
Definition at line 333 of file NetworkRemoteEndpoint.cs.
void DLT.RemoteEndpoint.setLegacy | ( | bool | legacy | ) |
Definition at line 893 of file NetworkRemoteEndpoint.cs.
void DLT.RemoteEndpoint.start | ( | Socket | socket = null | ) |
Definition at line 99 of file NetworkRemoteEndpoint.cs.
void DLT.RemoteEndpoint.stop | ( | ) |
Definition at line 188 of file NetworkRemoteEndpoint.cs.
string DLT.RemoteEndpoint.address = "127.0.0.1" |
Definition at line 23 of file NetworkRemoteEndpoint.cs.
ulong DLT.RemoteEndpoint.blockHeight = 0 |
Definition at line 30 of file NetworkRemoteEndpoint.cs.
byte [] DLT.RemoteEndpoint.challenge = null |
Definition at line 80 of file NetworkRemoteEndpoint.cs.
Socket DLT.RemoteEndpoint.clientSocket |
Definition at line 38 of file NetworkRemoteEndpoint.cs.
|
protected |
Definition at line 69 of file NetworkRemoteEndpoint.cs.
string DLT.RemoteEndpoint.fullAddress = "127.0.0.1:10000" |
Definition at line 22 of file NetworkRemoteEndpoint.cs.
bool DLT.RemoteEndpoint.fullyStopped = false |
Definition at line 35 of file NetworkRemoteEndpoint.cs.
bool DLT.RemoteEndpoint.helloReceived = false |
Definition at line 29 of file NetworkRemoteEndpoint.cs.
int DLT.RemoteEndpoint.incomingPort = Config.serverPort |
Definition at line 24 of file NetworkRemoteEndpoint.cs.
|
protected |
Definition at line 32 of file NetworkRemoteEndpoint.cs.
|
protected |
Definition at line 33 of file NetworkRemoteEndpoint.cs.
|
protected |
Definition at line 44 of file NetworkRemoteEndpoint.cs.
Presence DLT.RemoteEndpoint.presence = null |
Definition at line 46 of file NetworkRemoteEndpoint.cs.
PresenceAddress DLT.RemoteEndpoint.presenceAddress = null |
Definition at line 47 of file NetworkRemoteEndpoint.cs.
|
protected |
Definition at line 42 of file NetworkRemoteEndpoint.cs.
IPEndPoint DLT.RemoteEndpoint.remoteIP |
Definition at line 37 of file NetworkRemoteEndpoint.cs.
|
protected |
Definition at line 49 of file NetworkRemoteEndpoint.cs.
|
protected |
Definition at line 43 of file NetworkRemoteEndpoint.cs.
byte [] DLT.RemoteEndpoint.serverPubKey = null |
Definition at line 78 of file NetworkRemoteEndpoint.cs.
byte [] DLT.RemoteEndpoint.serverWalletAddress = null |
Definition at line 77 of file NetworkRemoteEndpoint.cs.
RemoteEndpointState DLT.RemoteEndpoint.state |
Definition at line 39 of file NetworkRemoteEndpoint.cs.
long DLT.RemoteEndpoint.timeDifference = 0 |
Definition at line 26 of file NetworkRemoteEndpoint.cs.
bool DLT.RemoteEndpoint.timeSyncComplete = false |
Definition at line 27 of file NetworkRemoteEndpoint.cs.
|
protected |
Definition at line 67 of file NetworkRemoteEndpoint.cs.