C# Class Dmap.Server

显示文件 Open project: gburt/dmap-sharp Class Usage Examples

Public Methods

Method Description
AddCredential ( NetworkCredential cred ) : void
RemoveCredential ( NetworkCredential cred ) : void
Server ( string name ) : System
Start ( ) : void
Stop ( ) : void

Protected Methods

Method Description
AddTxtRecords ( ITxtRecord record ) : void
HandleRequest ( Socket client, string username, string path, NameValueCollection query, int range, int delta, int clientRev ) : bool
RegisterService ( ) : void
UnregisterService ( ) : void

Private Methods

Method Description
ExpireSessions ( ) : void
GetServerInfoNode ( ) : ContentNode
OnHandleRequest ( Socket client, string username, string path, NameValueCollection query, int range ) : bool
OnRegisterServiceResponse ( object o, Mono.Zeroconf.RegisterServiceEventArgs args ) : void
OnUserLogin ( User user ) : void
OnUserLogout ( User user ) : void

Method Details

AddCredential() public method

public AddCredential ( NetworkCredential cred ) : void
cred System.Net.NetworkCredential
return void

AddTxtRecords() protected method

protected AddTxtRecords ( ITxtRecord record ) : void
record ITxtRecord
return void

HandleRequest() protected abstract method

protected abstract HandleRequest ( Socket client, string username, string path, NameValueCollection query, int range, int delta, int clientRev ) : bool
client Socket
username string
path string
query System.Collections.Specialized.NameValueCollection
range int
delta int
clientRev int
return bool

RegisterService() protected method

protected RegisterService ( ) : void
return void

RemoveCredential() public method

public RemoveCredential ( NetworkCredential cred ) : void
cred System.Net.NetworkCredential
return void

Server() public method

public Server ( string name ) : System
name string
return System

Start() public method

public Start ( ) : void
return void

Stop() public method

public Stop ( ) : void
return void

UnregisterService() protected method

protected UnregisterService ( ) : void
return void