示例#1
0
文件: TSClient.cs 项目: Jonas90/iss
 public static extern uint getClientVariableAsString(uint64 arg0, anyID arg1, ClientProperties arg2, out IntPtr arg3);
示例#2
0
 private static extern uint SetClientVariableAsInt(ulong serverID, ClientProperties flag, int value);
示例#3
0
 private static extern uint SetClientVariableAsString(ulong serverID, ClientProperties flag, string value);
示例#4
0
 public string getStringVariable(ushort clientID, ClientProperties property)
 {
     IntPtr valuePtr = IntPtr.Zero;
     uint result = Error.ok;
     if ((result = GetClientVariableAsString(_serverID, clientID, property, out valuePtr)) != Error.ok)
     {
         notifyError(string.Format("Error getting variable: {0}", property.ToString()));
         return string.Empty;
     }
     return getStringFromPointer(valuePtr);
 }
示例#5
0
 private static extern uint GetClientVariableAsString(ulong serverID, ushort clientID, ClientProperties flag, out IntPtr result);
示例#6
0
 static extern uint GetClientVariableAsulong(ulong serverID, ushort clientID, ClientProperties flag, out ulong result);
示例#7
0
 static extern uint GetClientSelfVariableAsString(ulong serverID, ClientProperties flag, out IntPtr result);
示例#8
0
 static extern uint GetClientSelfVariableAsInt(ulong serverID, ClientProperties flag, out int result);
示例#9
0
 public int getIntVariable(ClientProperties property)
 {
     int value = 0;
     if (GetClientSelfVariableAsInt(_connectedServerID, property, out value) != Error.ok)
     {
         notifyError(string.Format("Error getting variable: {0}", property.ToString()));
         return 0;
     }
     return value;
 }
示例#10
0
 public bool setIntVariable(ulong serverID, ulong channelID, ClientProperties property, int value)
 {
     if (SetClientSelfVariableAsInt(_connectedServerID, property, value) != Error.ok)
     {
         notifyError(string.Format("Error setting variable: {0}", property.ToString()));
         return false;
     }
     return true;
 }