IGLib
1.7.2
The IGLib base library EXTENDED - with other lilbraries and applications.
|
Public Member Functions | |
static SafeFileHandle | CreateFile (String pipeName, uint dwDesiredAccess, uint dwShareMode, IntPtr lpSecurityAttributes, uint dwCreationDisposition, uint dwFlagsAndAttributes, IntPtr hTemplate) |
delegate void | MessageReceivedHandler (string message) |
void | Connect () |
Connects to the server More... | |
void | Read () |
Reads data from the server More... | |
void | SendMessage (string message) |
Sends a message to the server More... | |
Public Attributes | |
const uint | GENERIC_READ = (0x80000000) |
const uint | GENERIC_WRITE = (0x40000000) |
const uint | OPEN_EXISTING = 3 |
const uint | FILE_FLAG_OVERLAPPED = (0x40000000) |
const int | BUFFER_SIZE = 4096 |
Properties | |
bool | Connected [get] |
string | PipeName [get, set] |
Events | |
MessageReceivedHandler | MessageReceived |
Private Attributes | |
string | pipeName |
FileStream | stream |
SafeFileHandle | handle |
Thread | readThread |
bool | connected |
static SafeFileHandle PipeClient.Client.CreateFile | ( | String | pipeName, |
uint | dwDesiredAccess, | ||
uint | dwShareMode, | ||
IntPtr | lpSecurityAttributes, | ||
uint | dwCreationDisposition, | ||
uint | dwFlagsAndAttributes, | ||
IntPtr | hTemplate | ||
) |
Referenced by PipeClient.Client.Connect().
delegate void PipeClient.Client.MessageReceivedHandler | ( | string | message | ) |
Referenced by PipeClient.Form1.Form1(), and PipeClient.Form1.pipeClient_MessageReceived().
|
inline |
Connects to the server
References PipeClient.Client.CreateFile(), and PipeClient.Client.Read().
Referenced by PipeClient.Form1.btnStart_Click().
|
inline |
Reads data from the server
References PipeClient.Client.BUFFER_SIZE, and PipeClient.Client.MessageReceived.
Referenced by PipeClient.Client.Connect().
|
inline |
const uint PipeClient.Client.GENERIC_READ = (0x80000000) |
const uint PipeClient.Client.GENERIC_WRITE = (0x40000000) |
const uint PipeClient.Client.OPEN_EXISTING = 3 |
const uint PipeClient.Client.FILE_FLAG_OVERLAPPED = (0x40000000) |
const int PipeClient.Client.BUFFER_SIZE = 4096 |
Referenced by PipeClient.Client.Read().
|
private |
|
private |
|
private |
|
private |
|
private |
|
get |
Referenced by PipeClient.Form1.btnStart_Click().
|
getset |
Referenced by PipeClient.Form1.btnStart_Click().
MessageReceivedHandler PipeClient.Client.MessageReceived |
Referenced by PipeClient.Form1.Form1(), and PipeClient.Client.Read().