C# Class SSC_Server.MainWindow

Afficher le fichier Open project: StoneMoe/SimpleSecureChat

Méthodes publiques

Свойство Type Description
clientDic Socket>.Dictionary

Méthodes publiques

Méthode Description
AcceptHandler ( ) : void
Broadcast ( byte msg, bool ForALL, Socket exceptClient = null ) : void
ClientHandler ( Socket client ) : void
ClientNicknameExisted ( string username ) : bool
Decrypt ( string toDecrypt, string key ) : string
ERRLog ( string text, bool firstline = false ) : void
Encrypt ( string toEncrypt, string key ) : string
MSGLog ( string text, bool firstline = false ) : void
MainWindow ( ) : System
RegClient ( string name, Socket s ) : void
SYSLog ( string text, bool firstline = false ) : void
UnRegClient ( string name ) : void
debugLog ( string text, bool firstline = false ) : void
kickAllClient ( ) : void
makeUI ( bool enable ) : void
outputAllClient ( ) : string
parseData ( string rawdata ) : string[]
parseMsg ( string cmd, string msg ) : byte[]
str2bytes ( string before ) : byte[]

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

Méthode Description
InitializeComponent ( ) : void

Required method for Designer support - do not modify the contents of this method with the code editor.

LogBox_TextChanged ( object sender, EventArgs e ) : void
MainWindow_Load ( object sender, EventArgs e ) : void
StartButton_Click ( object sender, EventArgs e ) : void

Method Details

AcceptHandler() public méthode

public AcceptHandler ( ) : void
Résultat void

Broadcast() public méthode

public Broadcast ( byte msg, bool ForALL, Socket exceptClient = null ) : void
msg byte
ForALL bool
exceptClient Socket
Résultat void

ClientHandler() public méthode

public ClientHandler ( Socket client ) : void
client Socket
Résultat void

ClientNicknameExisted() public méthode

public ClientNicknameExisted ( string username ) : bool
username string
Résultat bool

Decrypt() public méthode

public Decrypt ( string toDecrypt, string key ) : string
toDecrypt string
key string
Résultat string

Dispose() protected méthode

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
Résultat void

ERRLog() public méthode

public ERRLog ( string text, bool firstline = false ) : void
text string
firstline bool
Résultat void

Encrypt() public méthode

public Encrypt ( string toEncrypt, string key ) : string
toEncrypt string
key string
Résultat string

MSGLog() public méthode

public MSGLog ( string text, bool firstline = false ) : void
text string
firstline bool
Résultat void

MainWindow() public méthode

public MainWindow ( ) : System
Résultat System

RegClient() public méthode

public RegClient ( string name, Socket s ) : void
name string
s Socket
Résultat void

SYSLog() public méthode

public SYSLog ( string text, bool firstline = false ) : void
text string
firstline bool
Résultat void

UnRegClient() public méthode

public UnRegClient ( string name ) : void
name string
Résultat void

debugLog() public méthode

public debugLog ( string text, bool firstline = false ) : void
text string
firstline bool
Résultat void

kickAllClient() public méthode

public kickAllClient ( ) : void
Résultat void

makeUI() public méthode

public makeUI ( bool enable ) : void
enable bool
Résultat void

outputAllClient() public méthode

public outputAllClient ( ) : string
Résultat string

parseData() public méthode

public parseData ( string rawdata ) : string[]
rawdata string
Résultat string[]

parseMsg() public méthode

public parseMsg ( string cmd, string msg ) : byte[]
cmd string
msg string
Résultat byte[]

str2bytes() public méthode

public str2bytes ( string before ) : byte[]
before string
Résultat byte[]

Property Details

clientDic public_oe property

public Dictionary clientDic
Résultat Socket>.Dictionary