C# 클래스 SSC_Server.MainWindow

파일 보기 프로젝트 열기: StoneMoe/SimpleSecureChat

공개 프로퍼티들

프로퍼티 타입 설명
clientDic Socket>.Dictionary

공개 메소드들

메소드 설명
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[]

보호된 메소드들

메소드 설명
Dispose ( bool disposing ) : void

Clean up any resources being used.

비공개 메소드들

메소드 설명
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

메소드 상세

AcceptHandler() 공개 메소드

public AcceptHandler ( ) : void
리턴 void

Broadcast() 공개 메소드

public Broadcast ( byte msg, bool ForALL, Socket exceptClient = null ) : void
msg byte
ForALL bool
exceptClient Socket
리턴 void

ClientHandler() 공개 메소드

public ClientHandler ( Socket client ) : void
client Socket
리턴 void

ClientNicknameExisted() 공개 메소드

public ClientNicknameExisted ( string username ) : bool
username string
리턴 bool

Decrypt() 공개 메소드

public Decrypt ( string toDecrypt, string key ) : string
toDecrypt string
key string
리턴 string

Dispose() 보호된 메소드

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

ERRLog() 공개 메소드

public ERRLog ( string text, bool firstline = false ) : void
text string
firstline bool
리턴 void

Encrypt() 공개 메소드

public Encrypt ( string toEncrypt, string key ) : string
toEncrypt string
key string
리턴 string

MSGLog() 공개 메소드

public MSGLog ( string text, bool firstline = false ) : void
text string
firstline bool
리턴 void

MainWindow() 공개 메소드

public MainWindow ( ) : System
리턴 System

RegClient() 공개 메소드

public RegClient ( string name, Socket s ) : void
name string
s Socket
리턴 void

SYSLog() 공개 메소드

public SYSLog ( string text, bool firstline = false ) : void
text string
firstline bool
리턴 void

UnRegClient() 공개 메소드

public UnRegClient ( string name ) : void
name string
리턴 void

debugLog() 공개 메소드

public debugLog ( string text, bool firstline = false ) : void
text string
firstline bool
리턴 void

kickAllClient() 공개 메소드

public kickAllClient ( ) : void
리턴 void

makeUI() 공개 메소드

public makeUI ( bool enable ) : void
enable bool
리턴 void

outputAllClient() 공개 메소드

public outputAllClient ( ) : string
리턴 string

parseData() 공개 메소드

public parseData ( string rawdata ) : string[]
rawdata string
리턴 string[]

parseMsg() 공개 메소드

public parseMsg ( string cmd, string msg ) : byte[]
cmd string
msg string
리턴 byte[]

str2bytes() 공개 메소드

public str2bytes ( string before ) : byte[]
before string
리턴 byte[]

프로퍼티 상세

clientDic 공개적으로 프로퍼티

public Dictionary clientDic
리턴 Socket>.Dictionary