C# 클래스 UlteriusServer.WebServer.HttpServer

파일 보기 프로젝트 열기: Ulterius/server 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
DefaultPath string
GlobalPort int

공개 메소드들

메소드 설명
HttpServer ( string path ) : System

Construct server with suitable port.

HttpServer ( string path, int port ) : System

Construct server with given port.

SaveFile ( string fileKey, byte data ) : bool
Setup ( ) : void
Stop ( ) : void

Stop server and dispose all functions.

비공개 메소드들

메소드 설명
HandleUpload ( HttpListenerContext context ) : void
Initialize ( string path, int port ) : void
Listen ( ) : void
Process ( HttpListenerContext context ) : void

메소드 상세

HttpServer() 공개 메소드

Construct server with suitable port.
public HttpServer ( string path ) : System
path string Directory path to serve.
리턴 System

HttpServer() 공개 메소드

Construct server with given port.
public HttpServer ( string path, int port ) : System
path string Directory path to serve.
port int Port of the server.
리턴 System

SaveFile() 공개 메소드

public SaveFile ( string fileKey, byte data ) : bool
fileKey string
data byte
리턴 bool

Setup() 공개 정적인 메소드

public static Setup ( ) : void
리턴 void

Stop() 공개 메소드

Stop server and dispose all functions.
public Stop ( ) : void
리턴 void

프로퍼티 상세

DefaultPath 공개적으로 정적으로 프로퍼티

public static string DefaultPath
리턴 string

GlobalPort 공개적으로 정적으로 프로퍼티

public static int GlobalPort
리턴 int