C# Class WhatsNetwork, whatsapp-desktop-client

显示文件 Open project: sambulosenda/whatsapp-desktop-client Class Usage Examples

Public Properties

Property Type Description
socket Socket

Public Methods

Method Description
Connect ( ) : void
Disconenct ( ) : void
ReadData ( ) : byte[]
SendData ( byte data ) : void
SendData ( string data ) : void
WhatsNetwork ( string whatsHost, int port, int timeout = 2000 ) : System

Private Methods

Method Description
Socket_read ( int length ) : byte[]
Socket_send ( byte data ) : void
Socket_send ( string data, int length, int flags ) : void

Method Details

Connect() public method

public Connect ( ) : void
return void

Disconenct() public method

public Disconenct ( ) : void
return void

ReadData() public method

public ReadData ( ) : byte[]
return byte[]

SendData() public method

public SendData ( byte data ) : void
data byte
return void

SendData() public method

public SendData ( string data ) : void
data string
return void

WhatsNetwork() public method

public WhatsNetwork ( string whatsHost, int port, int timeout = 2000 ) : System
whatsHost string
port int
timeout int
return System

Property Details

socket public_oe property

public Socket socket
return Socket