public class MT4TerminalConnection extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
MT4TerminalConnection.UDPClientPacket |
| Modifier and Type | Field and Description |
|---|---|
String |
dllVersion |
String |
mqlVersion |
| Constructor and Description |
|---|
MT4TerminalConnection(String clientName) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
String |
getClientName() |
String |
getCommand() |
int |
getId() |
Socket |
getSocket() |
boolean |
isAlive() |
boolean |
isConnected() |
boolean |
isNoUDPAllowed() |
void |
preInit() |
void |
resCommand(String s) |
void |
run() |
String |
sendCommandGetResult(StringBuilder command) |
String |
sendCommandGetResult(UbbArgsMapper command) |
void |
setId(int id) |
void |
setNoMultilineConnection(boolean noMultilineConnection) |
void |
setSocket(Socket socket) |
void |
setUDPPort(int udpPort) |
boolean |
start(String clientName,
boolean isLimited) |
void |
startCoordination() |
public MT4TerminalConnection(String clientName)
public boolean isNoUDPAllowed()
public int getId()
public void setId(int id)
public void setSocket(Socket socket)
public void setUDPPort(int udpPort)
throws SocketException
SocketExceptionpublic void close()
close in interface StrategyRunnerpublic void setNoMultilineConnection(boolean noMultilineConnection)
public Socket getSocket()
public boolean isConnected()
isConnected in interface StrategyRunnerpublic String sendCommandGetResult(UbbArgsMapper command)
sendCommandGetResult in interface StrategyRunnerpublic String sendCommandGetResult(StringBuilder command)
sendCommandGetResult in interface StrategyRunnerpublic String getClientName()
public boolean start(String clientName, boolean isLimited)
start in interface StrategyRunnerpublic void preInit()
public String getCommand()
getCommand in interface StrategyRunnerpublic void resCommand(String s)
resCommand in interface StrategyRunnerpublic boolean isAlive()
isAlive in interface StrategyRunnerpublic void startCoordination()