C# Class Server_Application_Console.ChatServer

Inheritance: TCPServer
Show file Open project: HeroOfTheWinds/CS-350-410-431-Group-Project Class Usage Examples

Public Properties

Property Type Description
IDLock object
connectExpected System.Threading.ManualResetEventSlim
connected System.Threading.ManualResetEventSlim

Protected Properties

Property Type Description
listener System.Net.Sockets.TcpListener
listenerStarted bool

Public Methods

Method Description
ChatServer ( uint serverID ) : System
getCurrentID ( ) : uint
setCurrentID ( uint ID ) : void
setExpectedClient ( uint clientID ) : void
startServer ( ) : Task
stopServer ( ) : void

Private Methods

Method Description
transmitter ( Object client ) : void

Method Details

ChatServer() public method

public ChatServer ( uint serverID ) : System
serverID uint
return System

getCurrentID() public static method

public static getCurrentID ( ) : uint
return uint

setCurrentID() public static method

public static setCurrentID ( uint ID ) : void
ID uint
return void

setExpectedClient() public static method

public static setExpectedClient ( uint clientID ) : void
clientID uint
return void

startServer() public method

public startServer ( ) : Task
return Task

stopServer() public method

public stopServer ( ) : void
return void

Property Details

IDLock public static property

public static object IDLock
return object

connectExpected public static property

public static ManualResetEventSlim,System.Threading connectExpected
return System.Threading.ManualResetEventSlim

connected public static property

public static ManualResetEventSlim,System.Threading connected
return System.Threading.ManualResetEventSlim

listener protected static property

protected static TcpListener,System.Net.Sockets listener
return System.Net.Sockets.TcpListener

listenerStarted protected static property

protected static bool listenerStarted
return bool