Ixian SDK
IXICore.GenericAPIServer Class Reference

Public Member Functions

void start (List< string > listen_URLs, Dictionary< string, string > authorized_users=null, List< string > allowed_IPs=null)
 
void stop ()
 
void sendResponse (HttpListenerResponse responseObject, JsonResponse response)
 
void sendResponse (HttpListenerResponse responseObject, byte[] buffer)
 

Protected Member Functions

virtual void onUpdate (HttpListenerContext context)
 
virtual bool processGenericRequest (HttpListenerContext context, string methodName, Dictionary< string, object > parameters)
 
virtual bool processRequest (HttpListenerContext context, string methodName, Dictionary< string, object > parameters)
 
bool isAuthorized (HttpListenerContext context)
 
void apiLoop ()
 
void sendError (HttpListenerContext context, string errorString)
 
void sendResponse (HttpListenerResponse responseObject, string responseString)
 
void onResources (HttpListenerContext context)
 
void sendWallet (HttpListenerContext context)
 

Protected Attributes

HttpListener listener
 
Thread apiControllerThread
 
bool continueRunning
 
List< string > listenURLs
 
List< string > allowedIPs
 
ThreadLiveCheck TLC
 
Dictionary< string, string > authorizedUsers
 

Detailed Description

Definition at line 77 of file GenericAPIServer.cs.

Member Function Documentation

◆ apiLoop()

void IXICore.GenericAPIServer.apiLoop ( )
protected

Definition at line 411 of file GenericAPIServer.cs.

◆ isAuthorized()

bool IXICore.GenericAPIServer.isAuthorized ( HttpListenerContext  context)
protected

Definition at line 380 of file GenericAPIServer.cs.

◆ onResources()

void IXICore.GenericAPIServer.onResources ( HttpListenerContext  context)
protected

Definition at line 540 of file GenericAPIServer.cs.

◆ onUpdate()

virtual void IXICore.GenericAPIServer.onUpdate ( HttpListenerContext  context)
protectedvirtual

Definition at line 120 of file GenericAPIServer.cs.

◆ processGenericRequest()

virtual bool IXICore.GenericAPIServer.processGenericRequest ( HttpListenerContext  context,
string  methodName,
Dictionary< string, object >  parameters 
)
protectedvirtual

Definition at line 202 of file GenericAPIServer.cs.

◆ processRequest()

virtual bool IXICore.GenericAPIServer.processRequest ( HttpListenerContext  context,
string  methodName,
Dictionary< string, object >  parameters 
)
protectedvirtual

Definition at line 375 of file GenericAPIServer.cs.

◆ sendError()

void IXICore.GenericAPIServer.sendError ( HttpListenerContext  context,
string  errorString 
)
protected

Definition at line 475 of file GenericAPIServer.cs.

◆ sendResponse() [1/3]

void IXICore.GenericAPIServer.sendResponse ( HttpListenerResponse  responseObject,
string  responseString 
)
protected

Definition at line 480 of file GenericAPIServer.cs.

◆ sendResponse() [2/3]

void IXICore.GenericAPIServer.sendResponse ( HttpListenerResponse  responseObject,
JsonResponse  response 
)

Definition at line 500 of file GenericAPIServer.cs.

◆ sendResponse() [3/3]

void IXICore.GenericAPIServer.sendResponse ( HttpListenerResponse  responseObject,
byte []  buffer 
)

Definition at line 522 of file GenericAPIServer.cs.

◆ sendWallet()

void IXICore.GenericAPIServer.sendWallet ( HttpListenerContext  context)
protected

Definition at line 581 of file GenericAPIServer.cs.

◆ start()

void IXICore.GenericAPIServer.start ( List< string >  listen_URLs,
Dictionary< string, string >  authorized_users = null,
List< string >  allowed_IPs = null 
)

Definition at line 89 of file GenericAPIServer.cs.

◆ stop()

void IXICore.GenericAPIServer.stop ( )

Definition at line 105 of file GenericAPIServer.cs.

Member Data Documentation

◆ allowedIPs

List<string> IXICore.GenericAPIServer.allowedIPs
protected

Definition at line 83 of file GenericAPIServer.cs.

◆ apiControllerThread

Thread IXICore.GenericAPIServer.apiControllerThread
protected

Definition at line 80 of file GenericAPIServer.cs.

◆ authorizedUsers

Dictionary<string, string> IXICore.GenericAPIServer.authorizedUsers
protected

Definition at line 86 of file GenericAPIServer.cs.

◆ continueRunning

bool IXICore.GenericAPIServer.continueRunning
protected

Definition at line 81 of file GenericAPIServer.cs.

◆ listener

HttpListener IXICore.GenericAPIServer.listener
protected

Definition at line 79 of file GenericAPIServer.cs.

◆ listenURLs

List<string> IXICore.GenericAPIServer.listenURLs
protected

Definition at line 82 of file GenericAPIServer.cs.

◆ TLC

ThreadLiveCheck IXICore.GenericAPIServer.TLC
protected

Definition at line 84 of file GenericAPIServer.cs.


The documentation for this class was generated from the following file: