C# Class com.clover.remotepay.transport.WebSocketCloverTransport

Inheritance: CloverTransport
显示文件 Open project: clover/remote-pay-windows

Private Properties

Property Type Description
connect void
reconnect void
websocket_Closed void
websocket_Error void
websocket_MessageReceived void
websocket_Opened void

Public Methods

Method Description
Dispose ( ) : void
WebSocketCloverTransport ( string hostname, Int32 port ) : System

disconnect ( ) : void
isConnected ( ) : bool
sendMessage ( string message ) : int

Protected Methods

Method Description
getMaxDataTransferSize ( ) : int
onDeviceDisconnected ( ) : void

Private Methods

Method Description
connect ( string hostname, int port ) : void
reconnect ( object sender, DoWorkEventArgs e ) : void
websocket_Closed ( object sender, EventArgs e ) : void
websocket_Error ( object sender, SuperSocket e ) : void
websocket_MessageReceived ( object sender, WebSocket4Net.MessageReceivedEventArgs e ) : void
websocket_Opened ( object sender, EventArgs e ) : void

Method Details

Dispose() public method

public Dispose ( ) : void
return void

WebSocketCloverTransport() public method

public WebSocketCloverTransport ( string hostname, Int32 port ) : System
hostname string The hostname or IP of the Clover device to which you are connecting
port System.Int32 The port of the Clover device to which you are connecting
return System

disconnect() public method

public disconnect ( ) : void
return void

getMaxDataTransferSize() protected static method

protected static getMaxDataTransferSize ( ) : int
return int

isConnected() public method

public isConnected ( ) : bool
return bool

onDeviceDisconnected() protected method

protected onDeviceDisconnected ( ) : void
return void

sendMessage() public method

public sendMessage ( string message ) : int
message string
return int