Post
Topic
Board Mining (Altcoins)
Re: PhoenixMiner 2.6: fastest Ethereum/Ethash miner with lowest devfee (Windows)
by
xinomahc
on 20/02/2018, 09:30:50 UTC

any particular reason i cant seen to pull stats from the miner's api?

my code sample:

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 code works flawlessly for claymore but fails for phoenix's api... socket.Receive just hangs forever.. any tips?