clientserverconstants.cs

来自「WinChat was created in late 2000 by Spec」· CS 代码 · 共 31 行

CS
31
字号
/* File        :  ClientServerConstants.cs
 * Namespace   :  ClientServer
 * Classes     :  ClientServerConstants
 */
namespace ClientServer
{
	using System;

	/* Class			: ClientServerConstants
	 * Base Class		: None
	 * Functionality	: Specifies the constant values used in the program.
	 */

	public class ClientServerConstants
	{
		public const int ANYPORT = 0;
		public const int UDPTIMER = 30000; //30 sec
		public const int SAMPLETCPPORT = 4567;
		public const int UDPNOTIFYPORT = 4569;
		public const int MESSAGESIZE = 512;
		public const int NOTIFYMESSAGESIZE = 32;
		public const String notifyRequest = "NOTIFY REQUEST";
		public const String notifyAccept = "NOTIFY ACCEPT";
		public const String notifyReject = "NOTIFY REJECT";
		public const String notifyUnknownReject = "NOTIFY UNKNOWN";
		public const String notifyHangupRequest = "NOTIFY HANGUP REQUEST";
		public const String notifyHangupAccept = "NOTIFY HANGUP ACCEPT";
		public const String notifyLastMessage = "NOTIFY LAST MESSAGE";
		public const String notifyAlreadyTalking = "NOTIFY ALREADY TALKING";
	}
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?