C# Class ntrclient.Prog.CS.NtrClient

ファイルを表示 Open project: imthe666st/NTRClient Class Usage Examples

Public Properties

Property Type Description
Host string
NetStream System.Net.Sockets.NetworkStream
PacketRecvThread Thread
Port int
Progress int
Tcp System.Net.Sockets.TcpClient

Public Methods

Method Description
ConnectToServer ( ) : void
Disconnect ( bool waitPacketThread = true ) : void
Log ( string msg ) : void
SendEmptyPacket ( uint cmd, uint arg0, uint arg1, uint arg2, uint arg3, uint arg4 ) : void
SendHeartbeatPacket ( ) : void
SendHelloPacket ( ) : void
SendPacket ( uint type, uint cmd, uint args, uint dataLen ) : void
SendReadMemPacket ( uint addr, uint size, uint pid, string fileName ) : void
SendReloadPacket ( ) : void
SendRemoteplayPacket ( uint priorityMode, uint priorityFactor = 5, uint quality = 90, uint qosValue = 100 ) : void
SendSaveFilePacket ( string fileName, byte fileData ) : void
SendWriteMemPacket ( uint addr, uint pid, byte buf ) : void
SetServer ( string serverHost, int serverPort ) : void

Private Methods

Method Description
ByteToHex ( IEnumerable datBuf, int type ) : string
HandlePacket ( uint cmd, uint seq, byte dataBuf ) : void
HandleReadMem ( uint seq, byte dataBuf ) : void
PacketRecvThreadStart ( ) : void
ReadNetworkStream ( Stream stream, byte buf, int length ) : int

Method Details

ConnectToServer() public method

public ConnectToServer ( ) : void
return void

Disconnect() public method

public Disconnect ( bool waitPacketThread = true ) : void
waitPacketThread bool
return void

Log() public method

public Log ( string msg ) : void
msg string
return void

SendEmptyPacket() public method

public SendEmptyPacket ( uint cmd, uint arg0, uint arg1, uint arg2, uint arg3, uint arg4 ) : void
cmd uint
arg0 uint
arg1 uint
arg2 uint
arg3 uint
arg4 uint
return void

SendHeartbeatPacket() public method

public SendHeartbeatPacket ( ) : void
return void

SendHelloPacket() public method

public SendHelloPacket ( ) : void
return void

SendPacket() public method

public SendPacket ( uint type, uint cmd, uint args, uint dataLen ) : void
type uint
cmd uint
args uint
dataLen uint
return void

SendReadMemPacket() public method

public SendReadMemPacket ( uint addr, uint size, uint pid, string fileName ) : void
addr uint
size uint
pid uint
fileName string
return void

SendReloadPacket() public method

public SendReloadPacket ( ) : void
return void

SendRemoteplayPacket() public method

public SendRemoteplayPacket ( uint priorityMode, uint priorityFactor = 5, uint quality = 90, uint qosValue = 100 ) : void
priorityMode uint
priorityFactor uint
quality uint
qosValue uint
return void

SendSaveFilePacket() public method

public SendSaveFilePacket ( string fileName, byte fileData ) : void
fileName string
fileData byte
return void

SendWriteMemPacket() public method

public SendWriteMemPacket ( uint addr, uint pid, byte buf ) : void
addr uint
pid uint
buf byte
return void

SetServer() public method

public SetServer ( string serverHost, int serverPort ) : void
serverHost string
serverPort int
return void

Property Details

Host public_oe property

public string Host
return string

NetStream public_oe property

public NetworkStream,System.Net.Sockets NetStream
return System.Net.Sockets.NetworkStream

PacketRecvThread public_oe property

public Thread PacketRecvThread
return Thread

Port public_oe property

public int Port
return int

Progress public_oe property

public int Progress
return int

Tcp public_oe property

public TcpClient,System.Net.Sockets Tcp
return System.Net.Sockets.TcpClient