IGLib  1.7.2
The IGLib base library EXTENDED - with other lilbraries and applications.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
IG.Forms.TestTcpServer Class Reference
+ Collaboration diagram for IG.Forms.TestTcpServer:

Public Member Functions

 TestTcpServer ()
 Constructor with default IP address and port (local:8000). More...
 
 TestTcpServer (string IP, int port)
 
void StopRequest ()
 A gentle way to stop the server. More...
 
void StartServer ()
 
void Report (string str)
 
void ReportMarked (string str)
 
void ReportError (string str)
 
void ReportError (Exception e, string additionalmessage)
 
void ReportError (Exception e)
 

Public Attributes

int Port = 8000
 
string IPstr = "127.0.0.1"
 
int ID =0
 
string Name = ""
 
bool SingleClient = true
 
bool TooManyConnections = false
 
TestTcpMultiThreadedServer parent
 
Thread ServerThread =null
 Parent that launhed this server instance. More...
 

Properties

ConsoleForm ServerConsole [get, set]
 Returns the server's own console. More...
 

Private Member Functions

void SendData (string Data)
 
bool ConsoleReady ()
 
void CloseConsoleHandler (object sender, System.EventArgs e)
 

Private Attributes

bool StopRequested = false
 
int MaxReportLength = 60
 
string ReceivedMessage =null
 
string ReceivedData =null
 
bool Stop =false
 
int NumRequests = 0
 
TcpListener listener = null
 
NetworkStream stream = null
 
BinaryWriter SWriter = null
 
BinaryReader SReader = null
 
IG.Forms.ConsoleForm servercons = null
 
IG.Forms.ConsoleForm auxcons
 
int reccount = 0
 

Static Private Attributes

static int numinstances = 0
 
static int totcount = 0
 

Constructor & Destructor Documentation

IG.Forms.TestTcpServer.TestTcpServer ( )
inline

Constructor with default IP address and port (local:8000).

IG.Forms.TestTcpServer.TestTcpServer ( string  IP,
int  port 
)
inline

Member Function Documentation

void IG.Forms.TestTcpServer.StopRequest ( )
inline

A gentle way to stop the server.

void IG.Forms.TestTcpServer.SendData ( string  Data)
inlineprivate
bool IG.Forms.TestTcpServer.ConsoleReady ( )
inlineprivate
void IG.Forms.TestTcpServer.CloseConsoleHandler ( object  sender,
System.EventArgs  e 
)
inlineprivate
void IG.Forms.TestTcpServer.Report ( string  str)
inline
void IG.Forms.TestTcpServer.ReportMarked ( string  str)
inline
void IG.Forms.TestTcpServer.ReportError ( string  str)
inline
void IG.Forms.TestTcpServer.ReportError ( Exception  e,
string  additionalmessage 
)
inline
void IG.Forms.TestTcpServer.ReportError ( Exception  e)
inline

Member Data Documentation

int IG.Forms.TestTcpServer.Port = 8000
string IG.Forms.TestTcpServer.IPstr = "127.0.0.1"
int IG.Forms.TestTcpServer.ID =0
string IG.Forms.TestTcpServer.Name = ""
bool IG.Forms.TestTcpServer.SingleClient = true
bool IG.Forms.TestTcpServer.TooManyConnections = false
bool IG.Forms.TestTcpServer.StopRequested = false
private
Thread IG.Forms.TestTcpServer.ServerThread =null

Parent that launhed this server instance.

int IG.Forms.TestTcpServer.MaxReportLength = 60
private
int IG.Forms.TestTcpServer.numinstances = 0
staticprivate
string IG.Forms.TestTcpServer.ReceivedMessage =null
private
string IG.Forms.TestTcpServer.ReceivedData =null
private
bool IG.Forms.TestTcpServer.Stop =false
private
int IG.Forms.TestTcpServer.NumRequests = 0
private
TcpListener IG.Forms.TestTcpServer.listener = null
private
NetworkStream IG.Forms.TestTcpServer.stream = null
private
BinaryWriter IG.Forms.TestTcpServer.SWriter = null
private
BinaryReader IG.Forms.TestTcpServer.SReader = null
private
IG.Forms.ConsoleForm IG.Forms.TestTcpServer.servercons = null
private
IG.Forms.ConsoleForm IG.Forms.TestTcpServer.auxcons
private
int IG.Forms.TestTcpServer.reccount = 0
private
int IG.Forms.TestTcpServer.totcount = 0
staticprivate

Property Documentation

ConsoleForm IG.Forms.TestTcpServer.ServerConsole
getset

Returns the server's own console.


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