C# Class Chimney.MPD.ChimneyMPDServer

Inheritance: ChimneyMPDBase
Show file Open project: opengd/Chimney

Public Properties

Property Type Description
ResponsConfigDictionary ResponseConfig>.Dictionary

Public Methods

Method Description
AppendResponse ( string response, int id ) : bool
AppendResponse ( string response, int id, int position ) : bool
ErrorResponse ( string response, int id, int position ) : bool
EventResponse ( string response, int id, int position ) : bool
Start ( string port, string allow = "localhost", string password = "" ) : Task

Private Methods

Method Description
GetIpList ( HostName>.Tuple seip ) : List
GetMyIP ( ) : HostName
GetStartEndIP ( ) : HostName>.Tuple
ParseResponse ( StreamSocket streamSocket, string response, int responseId ) : bool
ReadResponse ( StreamSocket streamSocket, int responseId ) : System.Threading.Tasks.Task
SendResponse ( int id, bool emptyresponse = false ) : Task
SendResponse ( string response, StreamSocket socket ) : Task
SplitCommandArgs ( string command ) : List>.Tuple
streamSocketListner_ConnectionReceived ( StreamSocketListener sender, StreamSocketListenerConnectionReceivedEventArgs args ) : void

Method Details

AppendResponse() public method

public AppendResponse ( string response, int id ) : bool
response string
id int
return bool

AppendResponse() public method

public AppendResponse ( string response, int id, int position ) : bool
response string
id int
position int
return bool

ErrorResponse() public method

public ErrorResponse ( string response, int id, int position ) : bool
response string
id int
position int
return bool

EventResponse() public method

public EventResponse ( string response, int id, int position ) : bool
response string
id int
position int
return bool

Start() public method

public Start ( string port, string allow = "localhost", string password = "" ) : Task
port string
allow string
password string
return Task

Property Details

ResponsConfigDictionary public property

public Dictionary ResponsConfigDictionary
return ResponseConfig>.Dictionary