码迷,mamicode.com
首页 >  
搜索关键字:state    ( 7806个结果
C\C++和Lua是如何进行通信的?
为了实现Lua和其他语言之间的通信,Lua虚拟机为C\C++提供了两个特性: 一,Lua_State状态机 ???????lua_State主要是管理一个lua虚拟机的执行环境, 一个lua虚拟机可以有多个执行环境。Lua虚拟机通过维护这样...
分类:编程语言   时间:2014-09-17 23:28:24    阅读次数:534
轻量级跨平台消息传递协议XML-RPC深度解析
一、引言 实现跨平台通信的协议主要有简单对象访问协议(Simple Object Access Protocol,SOAP)、代表性状态传输(Representational State Transfer,REST)以及 XML 远程过程调用协议(XML Remote Procedure Call,XML-RPC)等。 二、为什么选择 XML-RPC? 集成 C/C++ 的挑战可以通过多...
分类:其他好文   时间:2014-09-17 23:20:53    阅读次数:358
pygame系列_mouse鼠标事件
pygame.mouse提供了一些方法获取鼠标设备当前的状态'''pygame.mouse.get_pressed - get the state of the mouse buttons get the state of the mouse buttonspygame.mouse.get_p...
分类:其他好文   时间:2014-09-16 22:01:11    阅读次数:279
HDU - 2328 Corporate Identity
Description Beside other services, ACM helps companies to clearly state their “corporate identity”, which includes company logo but also other signs, like trademarks. One of such companies is Inter...
分类:其他好文   时间:2014-09-16 20:41:21    阅读次数:309
telnet命令判断端口是否通不通
以上得出结论80端口不通查看iptablesvi /etc/sysconfig/iptables#编辑防火墙配置文件 -A INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT(允许80端口通过防火墙) -A INPUT -m s...
分类:Web程序   时间:2014-09-15 21:14:49    阅读次数:473
一个关于ISCSI故障的例子
/var/log/messages的错误描述Sep1404:02:58kernel:connection4:0:detectedconnerror(1011)Sep1404:02:59iscsid:KernelreportediSCSIconnection4:0error(1011)state(3)Sep1404:03:01kernel:connection3:0:detectedconnerror(1011)Sep1404:03:02iscsid:KernelreportediSCSIconnec..
分类:其他好文   时间:2014-09-15 19:52:20    阅读次数:372
解决Mysql复制Relay log read failure 的问题
一、问题描述Mysql主从复制模式中,slave上报错“relaylogreadfailure”,导致主从同步停止。mysql>showslavestatus\G***************************1.row***************************Slave_IO_State:Master_Host:10.0.0.93Master_User:slaveuserMaster_Port:3306Connect_Retr..
分类:数据库   时间:2014-09-15 19:42:59    阅读次数:269
C#设计模式(19)——状态者模式(State Pattern)
一、引言 在上一篇文章介绍到可以使用状态者模式和观察者模式来解决中介者模式存在的问题,在本文中将首先通过一个银行账户的例子来解释状态者模式,通过这个例子使大家可以对状态者模式有一个清楚的认识,接着,再使用状态者模式来解决上一篇文章中提出的问题。二、状态者模式的介绍 每个对象都有其对应的状态,而每.....
分类:其他好文   时间:2014-09-14 20:45:08    阅读次数:320
Java中的复杂初始化
虽然无聊,还是列出来。 6.1备忘录模式(5.6)中,Memento1的代码 例程 7-2 不变类 package intent.memento; public final class Memento1{ private final VirtualState state;//要记忆的状态, public Memento1(State state){ this...
分类:编程语言   时间:2014-09-14 19:21:07    阅读次数:256
重构之4.Replace Type Code with State/Strategy(以State/Strategy取代类型码)
场景: 你有一个类型码,它会影响类的行为,但你无法通过继承手法来消除它 ,可以使用状态对象取代类型码 类图: 修改前: Student /** * @file Student.java * * * @author wumingkun * @version 1.0.0 * @Des...
分类:其他好文   时间:2014-09-13 10:43:45    阅读次数:207
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!