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
Program Class Reference
+ Inheritance diagram for Program:

Static Public Member Functions

static void AcceptCallback (IAsyncResult ar)
 Asynchronously accepts an incoming connection attempt and creates a new Socket to handle remote host communication. More...
 
static void ReceiveCallback (IAsyncResult ar)
 Asynchronously receive data from a connected Socket. More...
 
static void SendCallback (IAsyncResult ar)
 Sends data asynchronously to a connected Socket. More...
 

Static Private Member Functions

static void listenToSNMP ()
 
static void answerSNMP ()
 
static void Main (string[] args)
 
static void PInvokeNativePipeServer ()
 Named pipe server through P/Invoke-ing the native APIs More...
 
static void Main (string[] args)
 
static void Main (string[] args)
 
static void Main (string[] args)
 
static bool WriteMailslot (IntPtr hMailslot, String strMessage)
 Write a message to the specified mailslot More...
 
static void Main (string[] args)
 
static bool ReadMailslot (IntPtr hMailslot)
 Read the messages from a mailslot by using the mailslot handle in a call to the ReadFile function. More...
 
static void Main (string[] args)
 Main More...
 
static void PInvokeNativePipeClient ()
 
static void BCLSystemIOPipeClient ()
 
static void Main (string[] args)
 Main More...
 
static string GetResponse (NamedPipeClientStream pipeClient, string requestString)
 
static void BCLSystemIOPipeClient ()
 
static void Main (string[] args)
 
static void PInvokeNativePipeServer ()
 Named pipe server through P/Invoke-ing the native APIs More...
 
static void BCLSystemIOPipeServer ()
 Named pipe server through BCL System.IO.Pipes More...
 
static void Main (string[] args)
 
static void BCLSystemIOPipeServer (bool openNewServersSequentially)
 
static void BCLSystemIOPipeServer ()
 Named pipe server through BCL System.IO.Pipes More...
 
static void Main (string[] args)
 Main More...
 
static void PInvokeNativePipeClient ()
 
static void BCLSystemIOPipeClient ()
 
static void Main (string[] args)
 Main More...
 
static string GetResponse (NamedPipeClientStream pipeClient, string requestString)
 
static void BCLSystemIOPipeClient ()
 
static void Main (string[] args)
 
static void PInvokeNativePipeServer ()
 Named pipe server through P/Invoke-ing the native APIs More...
 
static void BCLSystemIOPipeServer ()
 Named pipe server through BCL System.IO.Pipes More...
 
static void Main (string[] args)
 
static void BCLSystemIOPipeServer (bool openNewServersSequentially)
 
static void BCLSystemIOPipeServer ()
 Named pipe server through BCL System.IO.Pipes More...
 
static void Main (string[] args)
 
static void RemotingClientByConfig ()
 Access the .NET Remoting server using configuration file. More...
 
static void RemotingClientByCode ()
 Access the .NET Remoting server using code. More...
 
static void Main (string[] args)
 
static void RemotingServerByConfig ()
 Create the .NET Remoting server using configuration file. More...
 
static void RemotingServerByCode ()
 Create the .NET Remoting server using code. More...
 
static void Main (string[] args)
 
static void Main (string[] args)
 

Private Attributes

const int BUFFER_SIZE = 4096
 
const uint BUFFER_SIZE = 256
 
const string STOP_REQUEST = "STOP"
 
const bool multiThreaded = true
 

Member Function Documentation

static void Program.Main ( string[]  args)
inlinestaticprivate
static void Program.PInvokeNativePipeServer ( )
inlinestaticprivate

Named pipe server through P/Invoke-ing the native APIs

References answerSNMP(), and listenToSNMP().

Referenced by Main().

static void Program.Main ( string[]  args)
inlinestaticprivate
static bool Program.WriteMailslot ( IntPtr  hMailslot,
String  strMessage 
)
inlinestaticprivate

Write a message to the specified mailslot

Parameters
hMailslotHandle to the mailslot
lpszMessageThe message to be written to the slot
Returns
If the function succeeds, the return value is true

References MailslotNative.WriteFile().

Referenced by Main().

static bool Program.ReadMailslot ( IntPtr  hMailslot)
inlinestaticprivate

Read the messages from a mailslot by using the mailslot handle in a call to the ReadFile function.

Parameters
hMailslotThe handle of the mailslot
Returns
If the function succeeds, the return value is true

References MailslotNative.GetMailslotInfo(), MailslotNative.MAILSLOT_NO_MESSAGE, and MailslotNative.ReadFile().

Referenced by Main().

static void Program.Main ( string[]  args)
inlinestaticprivate

Main

References BCLSystemIOPipeClient().

static void Program.BCLSystemIOPipeClient ( )
inlinestaticprivate

References BUFFER_SIZE.

Referenced by Main().

static void Program.Main ( string[]  args)
inlinestaticprivate

Main

References BCLSystemIOPipeClient().

static string Program.GetResponse ( NamedPipeClientStream  pipeClient,
string  requestString 
)
inlinestaticprivate

References BUFFER_SIZE.

Referenced by BCLSystemIOPipeClient().

static void Program.BCLSystemIOPipeClient ( )
inlinestaticprivate

References BUFFER_SIZE, and GetResponse().

static void Program.Main ( string[]  args)
inlinestaticprivate
static void Program.BCLSystemIOPipeServer ( )
inlinestaticprivate

Named pipe server through BCL System.IO.Pipes

References BUFFER_SIZE.

Referenced by BCLSystemIOPipeServer(), and Main().

static void Program.Main ( string[]  args)
inlinestaticprivate
static void Program.BCLSystemIOPipeServer ( bool  openNewServersSequentially)
inlinestaticprivate
static void Program.BCLSystemIOPipeServer ( )
inlinestaticprivate

Named pipe server through BCL System.IO.Pipes

References BUFFER_SIZE.

static void Program.Main ( string[]  args)
inlinestaticprivate

Main

References BCLSystemIOPipeClient().

static void Program.BCLSystemIOPipeClient ( )
inlinestaticprivate

References BUFFER_SIZE.

static void Program.Main ( string[]  args)
inlinestaticprivate

Main

References BCLSystemIOPipeClient().

static string Program.GetResponse ( NamedPipeClientStream  pipeClient,
string  requestString 
)
inlinestaticprivate

References BUFFER_SIZE.

static void Program.BCLSystemIOPipeClient ( )
inlinestaticprivate

References BUFFER_SIZE, and GetResponse().

static void Program.Main ( string[]  args)
inlinestaticprivate
static void Program.BCLSystemIOPipeServer ( )
inlinestaticprivate

Named pipe server through BCL System.IO.Pipes

References BUFFER_SIZE.

static void Program.Main ( string[]  args)
inlinestaticprivate
static void Program.BCLSystemIOPipeServer ( bool  openNewServersSequentially)
inlinestaticprivate
static void Program.BCLSystemIOPipeServer ( )
inlinestaticprivate

Named pipe server through BCL System.IO.Pipes

References BUFFER_SIZE.

static void Program.Main ( string[]  args)
inlinestaticprivate
static void Program.RemotingClientByConfig ( )
inlinestaticprivate

Access the .NET Remoting server using configuration file.

static void Program.RemotingClientByCode ( )
inlinestaticprivate

Access the .NET Remoting server using code.

Referenced by Main().

static void Program.Main ( string[]  args)
inlinestaticprivate
static void Program.RemotingServerByConfig ( )
inlinestaticprivate

Create the .NET Remoting server using configuration file.

Referenced by Main().

static void Program.RemotingServerByCode ( )
inlinestaticprivate

Create the .NET Remoting server using code.

static void Program.Main ( string[]  args)
inlinestaticprivate
static void Program.Main ( string[]  args)
inlinestaticprivate

References AcceptCallback().

static void Program.AcceptCallback ( IAsyncResult  ar)
inlinestatic

Asynchronously accepts an incoming connection attempt and creates a new Socket to handle remote host communication.

Parameters
arthe status of an asynchronous operation

References ReceiveCallback().

Referenced by Main().

static void Program.ReceiveCallback ( IAsyncResult  ar)
inlinestatic

Asynchronously receive data from a connected Socket.

Parameters
arthe status of an asynchronous operation

References SendCallback().

Referenced by AcceptCallback().

static void Program.SendCallback ( IAsyncResult  ar)
inlinestatic

Sends data asynchronously to a connected Socket.

Parameters
arThe status of an asynchronous operation

Referenced by ReceiveCallback().

Member Data Documentation

const uint Program.BUFFER_SIZE = 256
private
const string Program.STOP_REQUEST = "STOP"
private
const bool Program.multiThreaded = true
private

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