Post
Topic
Board Mining (Altcoins)
Re: PhoenixMiner 2.6: fastest Ethereum/Ethash miner with lowest devfee (Windows)
by
xinomahc
on 18/02/2018, 07:35:06 UTC
...

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?


Code:
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 Smiley