ICE

ZeroC ICE之旅

回眸只為那壹抹淺笑 提交于 2019-12-03 11:36:36
Ice 是 Internet Communications Engine 的简称,出自ZeroC名门之下。 Ice 是一种面向对象的中间件平台。从根本上说,这意味着Ice 为构建面向对象的客户-服务器应用提供了工具、API 和库支持。Ice 应用适合于异构平台环境中使用:客户和服务器可以采用不同的编程语言,可以运行在不同的操作系统和机器架构上,并且可以使用多种网络技术进行通信。无论部署环境如何,这些应用的源码都是可移植的。 其采用C/S 模式结构,支持同步调用方式和异步调用方式,异步派发调用方式。支持跨语言的对象调用。多种语言之间采用共同的Slice(Specification Language for Ice)进行沟通。支持ice到C,JAVA,C#,VB,Python,Ruby,PHP等多种语言的映射。 工欲善其事,必先利其器,我们首先从www.zero.com,下载最新安装包; btw: 目前最新的v3.3 http://www.zeroc.com/download_beta.html 最新稳定版本: http://www.zeroc.com/download.html 由于我自己的平台是CentOS release 4.4 (Final),java version "1.6.0_01" 所以下载的是: http://www.zeroc.com/download/Ice/3

mac os 安装zeroc

天大地大妈咪最大 提交于 2019-12-03 11:36:18
安装zeroc sh-3.2# brew install ice --with-Java ==> Installing dependencies for ice: mcpp ==> Installing ice dependency: mcpp ==> Downloading https://homebrew.bintray.com/bottles/mcpp-2.7.2.sierra.bottle.1. ######################################################################## 100.0% ==> Pouring mcpp-2.7.2.sierra.bottle.1.tar.gz 🍺 /usr/local/Cellar/mcpp/2.7.2: 19 files, 1M ==> Installing ice ==> Downloading https://homebrew.bintray.com/bottles/ice-3.6.3_1.sierra.bottle.t ######################################################################## 100.0% ==> Pouring ice-3.6.3_1.sierra.bottle.tar.gz

DOMException: Error processing ICE candidate

匿名 (未验证) 提交于 2019-12-03 08:39:56
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I get this error DOMException: Error processing ICE candidate when I try to add an ice candidate. Here's the candidate: candidate:1278028030 1 udp 2122260223 10.0.18.123 62694 typ host generation 0 ufrag eGOGlVCnFLZYKTsc network-id 1 Moreover, it doesn't always happen - other time everything goes smoothly. I can't reproduce a consistent pattern where it would throw this error. Any ideas how to go about solving this / debugging it would be appreciated! 回答1: This problem is almost totally undocumented, and to make matters worse only Google

WebRTC The ICE candidate could not be added

匿名 (未验证) 提交于 2019-12-03 08:28:06
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am trying to establish a p2p audio/video connection b/w two peers. Following: Getting started with WebRTC . It works fine at my home in LAN Environment between 2 PCs, but throws an error message when running at my company's LAN Environment, there is part the javascript function processSignalingMessage(message) { var msg = JSON.parse(message); if (msg.type === 'offer') { // Callee creates PeerConnection if (!initiator && !started) maybeStart(); // We only know JSEP version after createPeerConnection(). if (isRTCPeerConnection) pc

Icefaces 3.0.1 FileEntry: FileEntryListener is never called

匿名 (未验证) 提交于 2019-12-03 02:38:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: 1.1, IceFaces 3.0.1 and JSF 2.1 and was trying to work with ace:fileentry. I can't understand why the listener is never called! Even the IDE sends me a warning "pruebaBean.sampleListener is an unknown property". Here is a short example of what i'm doing. When click the submit button nothing happen. Can someone help me ?? Could be some kind of bug? prueba.xhtml: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org /TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http:/

WiX ICE validation errors

匿名 (未验证) 提交于 2019-12-03 02:04:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm having some strange issues with WiX on my local machine. The problem is intermittent, but after a few rebuilds of the solution, the WiX project starts throwing ICE validation errors. If I go into my AppData\Local\Temp folder and delete all the temporary folders that contain the MSI, the solution compiles again. A short while later, the problem starts happening again. Having to keep clearing down the temp folders isn't a sustainable or satisfactory solution. Has anyone else encountered this issue? The validation error codes seem to always

通过js获取本机的IP地址

£可爱£侵袭症+ 提交于 2019-12-02 23:52:55
不需要修改任何代码,直接运行就可以了 function getUserIP(onNewIP) { // onNewIp - your listener function for new IPs //compatibility for firefox and chrome var myPeerConnection = window.RTCPeerConnection || window.mozRTCPeerConnection || window.webkitRTCPeerConnection; var pc = new myPeerConnection({ iceServers: [] }), noop = function() {}, localIPs = {}, ipRegex = /([0-9]{1,3}(\.[0-9]{1,3}){3}|[a-f0-9]{1,4}(:[a-f0-9]{1,4}){7})/g, key; function iterateIP(ip) { if (!localIPs[ip]) onNewIP(ip); localIPs[ip] = true; } //create a bogus data channel pc.createDataChannel(""); // create offer and set local description pc

Has anybody compared WCF and ZeroC ICE?

China☆狼群 提交于 2019-12-02 22:50:53
ZeroC's ICE (www.zeroc.com) looks interesting and I am interested in looking at it and comparing it to our existing software that uses WCF. In particular, our WCF app uses server callbacks (via HTTP). Anybody who's compared them? How did it go? I'm particularly interested in the performance aspect, since interoperability isn't much of a concern for us right now. Thanks! I did a very terse review of ICE a few years ago, and although I haven't compared them directly before, having reasonable knowledge of WCF my thoughts might have some relevance. Firstly, it's not entierely fair to compare WCF

Android 平台版本与API级别对应关系

允我心安 提交于 2019-12-02 21:29:09
下表列出了各 Android 平台版本支持的 API 级别。 如需了解有关运行各版本的设备的相对数量的信息,请参阅 “平台版本”信息中心页面 。 平台版本 API 级别 VERSION_CODE 备注 Android 7.0 24 N 平台亮点 Android 6.0 23 M 平台亮点 Android 5.1 22 LOLLIPOP_MR1 平台亮点 Android 5.0 21 LOLLIPOP Android 4.4W 20 KITKAT_WATCH 仅限 KitKat for Wearables Android 4.4 19 KITKAT 平台亮点 Android 4.3 18 JELLY_BEAN_MR2 平台亮点 Android 4.2、4.2.2 17 JELLY_BEAN_MR1 平台亮点 Android 4.1、4.1.1 16 JELLY_BEAN 平台亮点 Android 4.0.3、4.0.4 15 ICE_CREAM_SANDWICH_MR1 平台亮点 Android 4.0、4.0.1、4.0.2 14 ICE_CREAM_SANDWICH Android 3.2 13 HONEYCOMB_MR2 Android 3.1.x 12 HONEYCOMB_MR1 平台亮点 Android 3.0.x 11 HONEYCOMB 平台亮点 Android 2.3

How to use pthread_atfork() and pthread_once() to reinitialize mutexes in child processes

时间秒杀一切 提交于 2019-12-02 20:36:34
We have a C++ shared library that uses ZeroC's Ice library for RPC and unless we shut down Ice's runtime, we've observed child processes hanging on random mutexes. The Ice runtime starts threads, has many internal mutexes and keeps open file descriptors to servers. Additionally, we have a few of mutexes of our own to protect our internal state. Our shared library is used by hundreds of internal applications so we don't have control over when the process calls fork(), so we need a way to safely shutdown Ice and lock our mutexes while the process forks. Reading the POSIX standard on pthread