自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

lifesounds的专栏

前进、前进、向前进!

  • 博客(2)
  • 资源 (9)
  • 收藏
  • 关注

原创 undefined indetifier 'TDLLReason'

S60 3.0 不再支持TDllReason,在引入3.0版本之前的example 编译的时候会出undefined indetifier TDLLReason 错误。版本升级后 有哪些变化可以看官方的文档http://www.forum.nokia.com/info/   S60 Platform: Porting From 2nd To 3rd Edition  里面有详细的说明S

2009-04-07 14:37:00 870

转载 "/Symbian/9.2/S60_3rd_FP1/EPOC32/" does not exist

BLDMAKE ERROR: Directory "/Symbian/9.2/S60_3rd_FP1/EPOC32/" does not exist   WaitNote出现这样的问题,解决办法是吧工程考到Symbian所在的安装盘下,如Symbian安装在C:就把工程考到C:,然后重新引入工程,再编译

2009-04-07 13:48:00 1552

red5 chat 编译所用的jar

red5 chat 编译所需要的red5.jar 只有这个版本可以编译

2013-03-19

red5chat 多人视频 音频会议

package chat; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.red5.server.adapter.ApplicationAdapter; import org.red5.server.api.IConnection; import org.red5.server.api.IClient; import org.red5.server.api.IScope; import java.util.*; import org.red5.server.api.service.ServiceUtils; import org.red5.server.api.service.*; import org.red5.server.api.Red5; //import org.apache.commons.logging.Log; //import org.apache.commons.logging.LogFactory; public class Application extends ApplicationAdapter { public Map<String, CClient> clients = new HashMap<String, CClient>(); public class CClient{ String id = null; String pseudo = null; String role = null; String sexe = null; String status = null; String room=null; String world=null; public String getRole(){ return role; } public String getName(){ return pseudo; } public String getId(){ return id; } public String getSexe(){ return sexe; } public String getStatus(){ return status; } public String getRoom(){ return room; } public String getWorld(){ return world; } public void setRole(String _role){ role = _role; } public void setPseudo(String _pseudo){ pseudo = _pseudo; } public void setSexe(String _sexe){ sexe = _sexe; } public void setId(String _id){ id = _id; } public void setStatus(String _status){ status = _status; } public void setRoom(String _room){ room = _room; } public void setWorld(String _world){ world = _world; } } public boolean connect(IConnection conn, IScope scope, Object[] params) { // pseudo role sexe status room world; // Check if the user passed valid parameters. log.info( "**connection" ); log.info("**connect IConnection nombre params="+ params.length); log.debug("**connect IConnection nombre params="+ params.length); if (params == null || params.length != 6) { // NOTE: "rejectClient" terminates the execution of the current method! rejectClient("6 params expected."); } String pseudo=params[0].toString(); String id=conn.getClient().getId(); ((IServiceCapableConnection) conn).invoke("flashmethod", new Object[]{"connect", pseudo+id}); if (clients.get(pseudo) != null) { rejectClient("PSEUDO ALREADY IN USE"); } // we do create a new user ! log.info( "connection pseudo:"+pseudo); log.info( "connection id:"+id); CClient client = new CClient(); client.setId(id); client.setPseudo(pseudo); client.setRole(params[1].toString()); client.setSexe(params[2].toString()); client.setStatus(params[3].toString()); client.setRoom(params[4].toString()); client.setWorld(params[5].toString()); clients.put(pseudo, client); // clients["yarek"]=client conn.setAttribute("psuedo", pseudo); return true; } public void disconnect(IConnection conn, IScope scope) { log.info( "disconnect"); String pseudo=conn.getClient().getAttribute("pseudo").toString(); //log.info( "disconnect:"+pseudo); String id=conn.getClient().getId(); ((IServiceCapableConnection) conn).invoke("flashmethod", new Object[]{"disconnect", pseudo+id}); // Unregister user. //ServiceUtils.invokeOnAllConnections (scope, "removeuser", new Object[] {pseudo} ); if (pseudo==null) { clients.clear(); } else { CClient u = clients.get(pseudo); clients.remove(u); } // ISharedObject so = getSharedObject(scope, "users_so"); // so.endUpdate(); //IScope appScope = Red5.getConnectionLocal().getScope(); // Call original method of parent class. super.disconnect(conn, scope); } /* * public boolean roomConnect(IConnection iconnection, Object params[]){ if(!super.roomConnect(iconnection, params)){ //log.info((new StringBuilder()).append("Application failed to connect room: ").append(iconnection.getScope().getName()).toString()); return false; } else{ //log.info((new StringBuilder()).append("Application room connect initiated for room ").append(iconnection.getScope().getName()).append(": ").toString()); // We will add our client information right here CClient client = new CClient(); client.setId(params[0].toString()); client.setPseudo(params[1].toString()); client.setRole(params[2].toString()); client.setSexe(params[3].toString()); client.setStatus(params[4].toString()); iconnection.getClient().setAttribute("client", client); return true; } } */ public void callclient() { log.info("callclient called"); IConnection conn = Red5.getConnectionLocal(); if (conn instanceof IServiceCapableConnection) { IServiceCapableConnection sc = (IServiceCapableConnection) conn; log.info("flashmethod called"); sc.invoke("flashmethod", new Object[]{"One", 1}); } } public String debug (String msg){ return msg; } public double add(double a, double b){ return a + b; } }

2013-03-19

liferay in action

liferay in action pdf版本全。

2012-12-25

VMware P2V之使用详解(Ghost)

VMware P2V之使用详解(Ghost)

2010-03-15

xalan-j_2_7_1-bin.zip

xalan是Apache xml工程下的一个子工程,它实现了w3c xslt1.0和xpath1.0规范,是一个开放源代码的确xslt处理器.xalan提供了java和c++的版本.请用hjsplit2.0合并.

2009-12-04

essential snmp 2nd Edition 书中例子源码

essential snmp 2nd Edition 书中例子源码

2008-11-18

java与模式(清晰书签版)和随书源码.part2

java与模式(清晰书签版)和随书源码.part2 必须与java与模式(清晰书签版)和随书源码.part1下载后放到同目录之后才可解压

2008-11-14

java与模式(清晰书签版)和随书源码part1

java与模式(清晰书签版)和随书源码part1 必须与java与模式(清晰书签版)和随书源码.par2下载后放到同目录之后才可解压

2008-11-14

模仿线程"生产者与消费者"的例子

多线程的例子: 生产者和消费者模式的例子

2008-11-13

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除