using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace FObjBase
{
public class ConnContext
{
public ConnContext(IFConn from, UInt32 srcid, UInt32 magic)
{
this.from = from;
this.srcid = srcid;
this.magic = magic;
}
public IFConn from;
public UInt32 srcid;
public UInt32 magic;
public override bool Equals(object obj)
{
if (!(obj is ConnContext))
return false;
ConnContext cc = obj as ConnContext;
if (from != cc.from)
return false;
if (srcid != cc.srcid)
return false;
return true;
}
}
public delegate void AsyncCBHandler(object asyncContext, object retData);
///
/// 异步回调
///
public class AsyncCbAttribute : Attribute {
///
/// 返回的数据类型
///
public Type RetType { get; private set; }
///
/// 无数据返回
///
public AsyncCbAttribute()
{
}
///
///
///
///
public AsyncCbAttribute(Type retType) {
RetType = retType;
}
}
}