C# 클래스 Libmpc.MpcConnection

Keeps the connection to the MPD server and handels the most basic structure of the MPD protocol. The high level commands are handeled in the Libmpc.Mpc class.
파일 보기 프로젝트 열기: sakya/wpfmpdclient 1 사용 예제들

공개 메소드들

메소드 설명
Connect ( ) : void

Connects to the MPD server who's IPEndPoint was set in the Server property.

Connect ( IPEndPoint server ) : void

Connects to a MPD server.

Disconnect ( ) : void

Disconnects from the current MPD server.

Exec ( string command ) : MpdResponse

Executes a simple command without arguments on the MPD server and returns the response.

Exec ( string command, string argument ) : MpdResponse

Executes a MPD command with arguments on the MPD server.

Idle ( Mpc subsystems ) : void

Puts the client in idle mode for the given subsystems

MpcConnection ( ) : System

Creates a new MpdConnection.

MpcConnection ( IPEndPoint server ) : System

Creates a new MpdConnection.

비공개 메소드들

메소드 설명
CheckConnected ( ) : void
ClearConnectionFields ( ) : void
WriteToken ( string token ) : void
readResponse ( ) : MpdResponse

메소드 상세

Connect() 공개 메소드

Connects to the MPD server who's IPEndPoint was set in the Server property.
If no IPEndPoint was set to the Server property.
public Connect ( ) : void
리턴 void

Connect() 공개 메소드

Connects to a MPD server.
public Connect ( IPEndPoint server ) : void
server System.Net.IPEndPoint The IPEndPoint of the server.
리턴 void

Disconnect() 공개 메소드

Disconnects from the current MPD server.
public Disconnect ( ) : void
리턴 void

Exec() 공개 메소드

Executes a simple command without arguments on the MPD server and returns the response.
If the command contains a space of a newline charakter.
public Exec ( string command ) : MpdResponse
command string The command to execute.
리턴 MpdResponse

Exec() 공개 메소드

Executes a MPD command with arguments on the MPD server.
If the command contains a space of a newline charakter.
public Exec ( string command, string argument ) : MpdResponse
command string The command to execute.
argument string The arguments of the command.
리턴 MpdResponse

Idle() 공개 메소드

Puts the client in idle mode for the given subsystems
public Idle ( Mpc subsystems ) : void
subsystems Mpc The subsystems to listen to.
리턴 void

MpcConnection() 공개 메소드

Creates a new MpdConnection.
public MpcConnection ( ) : System
리턴 System

MpcConnection() 공개 메소드

Creates a new MpdConnection.
public MpcConnection ( IPEndPoint server ) : System
server System.Net.IPEndPoint The IPEndPoint of the MPD server.
리턴 System