CSharp_ClassLib.Net.TCPServer Class Reference

TCP server class. More...

List of all members.

Public Member Functions

delegate void AcceptHandler (System.Object sender, System.Net.Sockets.Socket socket)
 Accept-Event-Handler-Struct.
delegate void DisconnectHandler (System.Object sender, System.Net.Sockets.Socket socket)
 Disconnect-Event-Handler-Struct.
delegate void ErrorHandler (System.Object sender, System.Exception e)
 Error-Event-Handler-Struct.
delegate void ReceiveHandler (System.Object sender, System.Net.Sockets.Socket socket, System.Byte[] buffer)
 Receive-Event-Handler-Struct.
 TCPServer ()
 Inits all necessary stuff.
void Start ()
 Starts the server.
void Stop ()
 Stops the server.

Public Attributes

event AcceptHandler OnAccept
 Accept-Event-Handler.
event DisconnectHandler OnDisconnect
 Disconnect-Event-Handler.
event ErrorHandler OnError
 Error-Event-Handler.
event ReceiveHandler OnReceive
 Receive-Event-Handler.

Properties

System.Int32 BufferSize
 Retirns or sets the buffer size.
System.Int32 MaxConnections
 Retirns or sets the maximum connections.
System.UInt16 Port
 Retirns or sets the server port.
System.Net.Sockets.Socket[] Connections
 Returns all socket connections.


Detailed Description

TCP server class.

Author:
generalpd
Date:
2005-04-30

Bug:
none

Todo:
none
Remarks:
Last changed by:
Author
generalpd
in revision
Revision
1.2
on
Date
2005/06/02 05:51:50
Note:
Log
clsTCPServer.cs,v
Revision 1.2 2005/06/02 05:51:50 generalpd

Revision 1.1 2005/05/13 05:37:31 generalpd

Definition at line 56 of file clsTCPServer.cs.


Property Documentation

System UInt32 CSharp_ClassLib::Net.TCPServer::BufferSize [get, set]
 

Retirns or sets the buffer size.

Parameters:
value The new buffer size
Returns:
value The current buffer size

Definition at line 117 of file clsTCPServer.cs.

System Net Sockets Socket CSharp_ClassLib::Net.TCPServer::Connections [get]
 

Returns all socket connections.

Returns:
Array of all socket connections

Definition at line 176 of file clsTCPServer.cs.

System Int32 CSharp_ClassLib::Net.TCPServer::MaxConnections [get, set]
 

Retirns or sets the maximum connections.

Parameters:
value The new maximum connection count
Returns:
value The maximum connection count

Definition at line 132 of file clsTCPServer.cs.

System UInt16 CSharp_ClassLib::Net.TCPServer::Port [get, set]
 

Retirns or sets the server port.

Parameters:
value The new server port
Returns:
value The current server port

Definition at line 164 of file clsTCPServer.cs.


The documentation for this class was generated from the following file:
Generated on Thu Jun 2 08:41:50 2005 for C# ClassLib by  doxygen 1.4.1