C# Class Dmap.Server

Afficher le fichier Open project: gburt/dmap-sharp Class Usage Examples

Méthodes publiques

Méthode Description
AddCredential ( NetworkCredential cred ) : void
RemoveCredential ( NetworkCredential cred ) : void
Server ( string name ) : System
Start ( ) : void
Stop ( ) : void

Méthodes protégées

Méthode 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

Méthode 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 méthode

public AddCredential ( NetworkCredential cred ) : void
cred System.Net.NetworkCredential
Résultat void

AddTxtRecords() protected méthode

protected AddTxtRecords ( ITxtRecord record ) : void
record ITxtRecord
Résultat void

HandleRequest() protected abstract méthode

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
Résultat bool

RegisterService() protected méthode

protected RegisterService ( ) : void
Résultat void

RemoveCredential() public méthode

public RemoveCredential ( NetworkCredential cred ) : void
cred System.Net.NetworkCredential
Résultat void

Server() public méthode

public Server ( string name ) : System
name string
Résultat System

Start() public méthode

public Start ( ) : void
Résultat void

Stop() public méthode

public Stop ( ) : void
Résultat void

UnregisterService() protected méthode

protected UnregisterService ( ) : void
Résultat void