Tag: 谷歌浏览器

native-app和chrome-extension之间的通信

我有一个用c ++和chrome扩展编写的本机应用程序。 我正在使用“chrome native messaging”在它们之间进行通信。 Native-App代码: int main(int argc, char* argv[]) { unsigned int a, c, i, t=0; std::string inp; do { inp=””; t=0; // Sum the first 4 chars from stdin (the length of the message passed). for (i = 0; i <= 3; i++) { t += getchar(); } // Loop getchar to […]