public class ClassMsg
{
public string SID = "";
public string SIP = "";
public string SPort = "";
public string RID = "";
public string RIP = "";
public string RPort = "";
public SendKind sendKind = SendKind.SendNone;
public MsgCommand msgCommand = MsgCommand.None;
public SendState sendStart = SendState.None;
public string msgID = "";
public byte[] Data;
[Serializable]
public class RegisterMsg
{
public string UserName;
public string PassWord;
}
public enum MsgCommand
{
None,
Registering,
Registered,
Logining,
Logined,
SendToOne,
SendToAll,
UserList,
UpdataState,
VideoOpen,
VideoClose,
Close
}
public enum SendKind
{
SendNone,
SendCommand,
SendMsg,
SendFile
}
public enum SendState
{
None,
Single,
Start,
Sending,
End
}
}
}