startProxy method
Implementation
Future<int> startProxy(String remoteIP, int remotePort) async {
final ipC = remoteIP.toNativeUtf8();
final portOut = malloc<Int32>();
try {
final err = _startProxy(ipC, remotePort, portOut);
_checkError(err, 'PROXY_FAILED');
return portOut.value;
} finally {
malloc.free(ipC);
malloc.free(portOut);
}
}