C# 클래스 ShootManiaXMLRPC.XmlRpc.XmlRpcClient

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

공개 메소드들

메소드 설명
AsyncRequest ( string inMethodName, object inParams, GbxCallCallbackHandler callbackHandler ) : int

Sends a Request and does not wait for a response of the server. The response will be written into a buffer or you can set a callback method that will be executed.

Connect ( ) : int

Creates a connection to the server.

Disconnect ( ) : void

Closes the socket connection.

Dispose ( ) : void

Frees all resources and disconnects from the rpc server.

EnableCallbacks ( bool inState ) : bool

(Dis)activates callbacks from the server.

GetResponse ( int inHandle ) : GbxCall

Gets an asynchron response from the list.

Request ( string inMethodName, object inParams ) : GbxCall

Sends a request to the server and blocks until a response has been received.

XmlRpcClient ( string inAddress, int inPort ) : System

Initializes the client with port and ip address. Use Connect method to set up a connection.

비공개 메소드들

메소드 설명
Handshake ( ) : bool

Reads the header of the protocol and checks if for compability.

OnDataArrive ( IAsyncResult iar ) : void
OnDisconnectCallback ( ) : void
OnGbxCallback ( GbxCallbackEventArgs e ) : void
SocketConnect ( string inAddress, int inPort ) : bool

Establishes a socket connection.

메소드 상세

AsyncRequest() 공개 메소드

Sends a Request and does not wait for a response of the server. The response will be written into a buffer or you can set a callback method that will be executed.
public AsyncRequest ( string inMethodName, object inParams, GbxCallCallbackHandler callbackHandler ) : int
inMethodName string The method to call.
inParams object Parameters describing your request.
callbackHandler GbxCallCallbackHandler An optional delegate which is callen when the response is available otherwise set it to null.
리턴 int

Connect() 공개 메소드

Creates a connection to the server.
public Connect ( ) : int
리턴 int

Disconnect() 공개 메소드

Closes the socket connection.
public Disconnect ( ) : void
리턴 void

Dispose() 공개 메소드

Frees all resources and disconnects from the rpc server.
public Dispose ( ) : void
리턴 void

EnableCallbacks() 공개 메소드

(Dis)activates callbacks from the server.
public EnableCallbacks ( bool inState ) : bool
inState bool Whether to receive callbacks from the server.
리턴 bool

GetResponse() 공개 메소드

Gets an asynchron response from the list.
public GetResponse ( int inHandle ) : GbxCall
inHandle int The handle which was returned from AsyncRequest.
리턴 GbxCall

Request() 공개 메소드

Sends a request to the server and blocks until a response has been received.
public Request ( string inMethodName, object inParams ) : GbxCall
inMethodName string The method to call.
inParams object Parameters describing your request.
리턴 GbxCall

XmlRpcClient() 공개 메소드

Initializes the client with port and ip address. Use Connect method to set up a connection.
public XmlRpcClient ( string inAddress, int inPort ) : System
inAddress string IP address to initialize with.
inPort int Port to initialize the client with.
리턴 System