...
Hi, im trying to make a simple script to get stats from Phoenix's API... but unlike claymore or others... When i make the SAME TCP CALL to Pheonix as I do on other miners... the call just hangs forever... and does not come back with any info... whats up with that?
using (var socket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp))
{
socket.Connect("localhost", 3333);
socket.Send(Encoding.ASCII.GetBytes("{\"id\":0,\"jsonrpc\":\"2.0\",\"method\":\"miner_getstat1\"}"));
socket.Receive(receiveBytes, receiveBytes.Length, SocketFlags.None);
}
var resp = Encoding.ASCII.GetString(receiveBytes);
My small sample to pull claymore's stats
... in Phoenix the socket.Receive just hangs forever
Regards and thanks for the miner software
