IGLib
1.7.2
The IGLib base library EXTENDED - with other lilbraries and applications.
|
Classes | |
class | Client |
Public Member Functions | |
static SafeFileHandle | CreateNamedPipe (String pipeName, uint dwOpenMode, uint dwPipeMode, uint nMaxInstances, uint nOutBufferSize, uint nInBufferSize, uint nDefaultTimeOut, IntPtr lpSecurityAttributes) |
static int | ConnectNamedPipe (SafeFileHandle hNamedPipe, IntPtr lpOverlapped) |
delegate void | MessageReceivedHandler (Client client, string message) |
Server () | |
void | Start () |
Starts the pipe server More... | |
void | SendMessage (string message) |
Sends a message to all connected clients More... | |
Public Attributes | |
const uint | DUPLEX = (0x00000003) |
const uint | FILE_FLAG_OVERLAPPED = (0x40000000) |
const int | BUFFER_SIZE = 4096 |
Properties | |
string | PipeName [get, set] |
bool | Running [get] |
Events | |
MessageReceivedHandler | MessageReceived |
Private Member Functions | |
void | ListenForClients () |
Listens for client connections More... | |
void | Read (object clientObj) |
Reads incoming data from connected clients More... | |
Private Attributes | |
string | pipeName |
Thread | listenThread |
bool | running |
List< Client > | clients |
|
inline |
static SafeFileHandle PipeServer.Server.CreateNamedPipe | ( | String | pipeName, |
uint | dwOpenMode, | ||
uint | dwPipeMode, | ||
uint | nMaxInstances, | ||
uint | nOutBufferSize, | ||
uint | nInBufferSize, | ||
uint | nDefaultTimeOut, | ||
IntPtr | lpSecurityAttributes | ||
) |
Referenced by PipeServer.Server.ListenForClients().
static int PipeServer.Server.ConnectNamedPipe | ( | SafeFileHandle | hNamedPipe, |
IntPtr | lpOverlapped | ||
) |
Referenced by PipeServer.Server.ListenForClients().
delegate void PipeServer.Server.MessageReceivedHandler | ( | Client | client, |
string | message | ||
) |
Referenced by PipeServer.Form1.Form1(), and PipeServer.Form1.pipeServer_MessageReceived().
|
inline |
Starts the pipe server
References PipeServer.Server.ListenForClients().
Referenced by PipeServer.Form1.btnStart_Click().
|
inlineprivate |
Listens for client connections
References client(), PipeServer.Server.ConnectNamedPipe(), PipeServer.Server.CreateNamedPipe(), PipeServer.Server.Client.handle, and PipeServer.Server.Read().
Referenced by PipeServer.Server.Start().
|
inlineprivate |
Reads incoming data from connected clients
clientObj |
References PipeServer.Server.BUFFER_SIZE, client(), PipeServer.Server.Client.handle, PipeServer.Server.MessageReceived, and PipeServer.Server.Client.stream.
Referenced by PipeServer.Server.ListenForClients().
|
inline |
Sends a message to all connected clients
message | the message to send |
References client(), and PipeServer.Server.Client.stream.
Referenced by PipeServer.Form1.btnSend_Click().
const uint PipeServer.Server.DUPLEX = (0x00000003) |
const uint PipeServer.Server.FILE_FLAG_OVERLAPPED = (0x40000000) |
const int PipeServer.Server.BUFFER_SIZE = 4096 |
Referenced by PipeServer.Server.Read().
|
private |
|
private |
|
private |
|
private |
|
getset |
Referenced by PipeServer.Form1.btnStart_Click().
|
get |
Referenced by PipeServer.Form1.btnStart_Click().
MessageReceivedHandler PipeServer.Server.MessageReceived |
Referenced by PipeServer.Form1.Form1(), and PipeServer.Server.Read().