⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 clientserverconstants.cs

📁 WinChat was created in late 2000 by Spectre, DeMENted and Unique_T. You can connect to WinChat.Ne
💻 CS
字号:
/* 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -