-
Notifications
You must be signed in to change notification settings - Fork 12
/
Upstream.cs
42 lines (35 loc) · 934 Bytes
/
Upstream.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace CentralMine.NET
{
abstract class Upstream
{
protected string mURL;
protected ushort mPort;
protected string mUser;
protected string mPass;
protected ClientManager mClientManager;
public Upstream(ClientManager cm)
{
mClientManager = cm;
}
virtual public void Destroy()
{
}
virtual public void SetHost(string url, ushort port)
{
mURL = url;
mPort = port;
}
virtual public void SetCredentials(string user, string pass)
{
mUser = user;
mPass = pass;
}
abstract public WorkBlock GetWorkBlock();
abstract public bool SubmitWork(WorkBlock work, uint solution);
abstract public bool NewBlockReady();
}
}