我在网上找到了很多关于从C#调用C函数的信息。简单的解决方案是创建一个.so文件并使用DllImport函数导入它是C#。
using System;
using System.Runtime.InteropServices;
public class Tester
{
[DllImport("libtest.so", EntryPoint="cfunction")]
static extern void cfunction(string message);
public static void Main
philip@philip-HP-Tablet-PC-Tx1100:~$ sudo -s
[sudo] password for philip:
Sorry, try again.
[sudo] password for philip:
root@philip-HP-Tablet-PC-Tx1100:~# apt-get install
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run ‘apt-get -
1.我去了甲骨文网站,但我不知道选择哪一个Java!
Linux ARM 32硬浮动ABI 77.71 MB jdk-8u71- Linux - ARM 32-vfp-hflt.tar.gz linux ARM 64硬浮动ABI 74.65 MB
<2>--linux x86 154.75 MB--jdk-8u71-linux-i586.rpm
<3>--linux x86 174.91 MB--JDK-8u71-linux-i586.tar.gz
<4>--linux x64 152.74 MBj-dk-8u71-linux-x64.rpm
<
我不知道如何迭代这个输出,它可以很简单,但尝试了几种方法都没有成功。 我有一个查询的结果,该查询抛出一个带有对象和修复的json,但我无法获得cpu、内存和磁盘值: <?php
// How to read influx data with curl
$query = urlencode("select * from calls limit 1");
$ch = curl_init();
curl_setopt($ch, CURLOPT_TIMEOUT, 1); //timeout in seconds
curl_setopt($ch, CURLOPT_URL,"