public object SetSocketType(Message msg) { Type type = msg.WParam as Type; if (type == null) { throw new ArgumentException("msg.WParam 参数必需为类的Type对象"); } m_socket = type.Assembly.CreateInstance(type.FullName) as JSocket; if (m_socket == null) { throw new ArgumentException("msg.WParam 参数必需为继续JSocket的类的Type对象"); } return(null); }
void m_socket_ConnectedFaild(JSocket socket) { OnConnected(false); }
void m_socket_ConnectedSuccess(JSocket socket) { OnConnected(true); }
void m_socket_ConnectedSuccess(JSocket socket) { CreateAndSendMsg(NetMsg.Connected, null, socket); }
void m_socket_ConnectedFaild(JSocket socket) { CreateAndSendMsg(NetMsg.Errored, null, socket); }