当前位置: 首页 > news >正文

手机网站建设价格表wordpress环保公司主题

手机网站建设价格表,wordpress环保公司主题,wordpress 图片加边框,seo网络营销技巧一广播技术应用 客户端发现与管理#xff1a;软件可以通过广播消息来发现网络中的客户端#xff0c;从而方便对客户端进行集中管理和监控。服务通知#xff1a;向所有客户端广播重要的通知、更新或警告信息#xff0c;确保客户端及时了解相关情况。资源共享与分配#xf…一广播技术应用 客户端发现与管理软件可以通过广播消息来发现网络中的客户端从而方便对客户端进行集中管理和监控。服务通知向所有客户端广播重要的通知、更新或警告信息确保客户端及时了解相关情况。资源共享与分配广播可用资源的信息使客户端能够了解并请求所需的资源。组通信在特定的组或网段内进行广播方便同一组内的客户端之间进行快速的信息交流和协同工作。故障检测与恢复当检测到系统故障或异常时广播相关信息以通知客户端采取相应的措施例如切换到备用服务器。软件部署与更新广播软件安装或更新的指令使得客户端能够及时获取并执行相应的操作 二、代码  using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using System.Data; using System.Net; using System.Threading; using System.Net.Sockets; using System.IO;namespace 广播客户端 {public partial class Form1 : Form{private System.Windows.Forms.Label label1;private System.Windows.Forms.Button button1;private System.Windows.Forms.Button button2;EndPoint ep;string receiveData;/// summary/// 必需的设计器变量。/// /summaryprivate System.ComponentModel.Container components null;public Form1(){InitializeComponent();//AcceptMessage(),在未接收广播信息之前处于阻塞状态不会生成form//this.Show();AcceptMessage();}private void Form1_Load(object sender, EventArgs e){}/// summary/// 清理所有正在使用的资源。/// /summaryprotected override void Dispose(bool disposing){if (disposing){if (components ! null){components.Dispose();}}base.Dispose(disposing);}//接收信息private void AcceptMessage(){//d定义socket对象Socket socket new Socket(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp);IPEndPoint iep new IPEndPoint(IPAddress.Any, 1207);socket.Bind(iep);ep (EndPoint)iep;byte[] bytes new byte[1024];while (true){socket.ReceiveFrom(bytes, ref ep);receiveData System.Text.Encoding.Unicode.GetString(bytes);receiveData receiveData.TrimEnd(\u0000);Thread th new Thread(new ThreadStart(Acc));th.Start();//th.Abort();}socket.Close();}private void Acc(){string message 来自 ep.ToString() 的消息;//DialogResult result MessageBox.Show(receiveData, message, MessageBoxButtons.AbortRetryIgnore);string ip ep.ToString();int pos ip.IndexOf(:);string ip_add ip.Substring(0, pos);OpenReadWithHttps(http:// ip_add :2324/cyberwinsvr?client GetLocalIP(), , GB2312);}/// summary/// 获取计算IP/// /summary/// returns/returns/// public static string GetLocalIP(){try{string HostName Dns.GetHostName(); //得到主机名IPHostEntry IpEntry Dns.GetHostEntry(HostName);for (int i 0; i IpEntry.AddressList.Length; i){//从IP地址列表中筛选出IPv4类型的IP地址//AddressFamily.InterNetwork表示此IP为IPv4,//AddressFamily.InterNetworkV6表示此地址为IPv6类型if (IpEntry.AddressList[i].AddressFamily AddressFamily.InterNetwork){return IpEntry.AddressList[i].ToString();}}return ;}catch (Exception ex){// MessageBox.Show(获取本机IP出错: ex.Message);return ;}}///summary///采用https协议访问网络////summary///param nameURLurl地址/param///param namestrPostdata发送的数据/param///returns/returnsprivate static string OpenReadWithHttps(string URL, string strPostdata, string strEncoding){try{Encoding encoding Encoding.Default;HttpWebRequest request (HttpWebRequest)WebRequest.Create(URL);request.Method post;request.Accept text/html, application/xhtmlxml, */*;request.ContentType application/x-www-form-urlencoded;byte[] buffer encoding.GetBytes(strPostdata);request.ContentLength buffer.Length;request.GetRequestStream().Write(buffer, 0, buffer.Length);HttpWebResponse response (HttpWebResponse)request.GetResponse();using (StreamReader reader new StreamReader(response.GetResponseStream(), System.Text.Encoding.GetEncoding(strEncoding))){return reader.ReadToEnd();}}catch (Exception ex){return cyber_empty;}}#region Windows 窗体设计器生成的代码/// summary/// 设计器支持所需的方法 - 不要使用代码编辑器修改/// 此方法的内容。/// /summaryprivate void InitializeComponent(){this.label1 new System.Windows.Forms.Label();this.button1 new System.Windows.Forms.Button();this.button2 new System.Windows.Forms.Button();this.SuspendLayout();// // label1// this.label1.BackColor System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192)))));this.label1.ForeColor System.Drawing.Color.Black;this.label1.Location new System.Drawing.Point(0, 8);this.label1.Name label1;this.label1.Size new System.Drawing.Size(424, 23);this.label1.TabIndex 0;this.label1.Text 您已经选择了不再接收广播信息请确认;// // button1// this.button1.BackColor System.Drawing.Color.Red;this.button1.Location new System.Drawing.Point(80, 88);this.button1.Name button1;this.button1.Size new System.Drawing.Size(75, 23);this.button1.TabIndex 1;this.button1.Text 继续接收;this.button1.UseVisualStyleBackColor false;this.button1.Click new System.EventHandler(this.button1_Click);// // button2// this.button2.BackColor System.Drawing.Color.Red;this.button2.Location new System.Drawing.Point(240, 88);this.button2.Name button2;this.button2.Size new System.Drawing.Size(75, 23);this.button2.TabIndex 2;this.button2.Text 退出系统;this.button2.UseVisualStyleBackColor false;this.button2.Click new System.EventHandler(this.button2_Click);// // Form1// this.AutoScaleBaseSize new System.Drawing.Size(6, 14);this.BackColor System.Drawing.Color.Blue;this.ClientSize new System.Drawing.Size(424, 125);this.Controls.Add(this.button2);this.Controls.Add(this.button1);this.Controls.Add(this.label1);this.FormBorderStyle System.Windows.Forms.FormBorderStyle.FixedDialog;this.MaximizeBox false;this.MinimizeBox false;this.Name Form1;this.Text 提示;this.ResumeLayout(false);}#endregionprivate void button1_Click(object sender, EventArgs e){}private void button2_Click(object sender, EventArgs e){}} } 三、技术支持 扫码点击可直接领取泳泳馆押金原路返回系统。
http://www.w-s-a.com/news/431170/

相关文章:

  • 温州网站建设seo网站 如何做 中英文切换
  • 聊城做网站的公司资讯信阳 网站建设
  • 天津市工程建设交易网站查汗国珠海 网页设计
  • 龙果学院大型网站稳定性建设汾阳做网站
  • 湖北 个人网站备案时间域名查询备案查询
  • 网站推广方式校园网站怎么建
  • 长沙seo网站排名怎么在百度发帖
  • 织梦贷款网站模板做印章网站
  • 彭州做网站上海百度网络推广
  • 广州网站搭建快速提升网站排名荧光字网站
  • 15年做那些网站能致富做seo是什么意思
  • 各电商网站的特点网站制作2007
  • 用html做一号店网站怎么做公众号注册平台官网
  • 做盈利网站怎么备案vs做网站如何调试
  • 嘉兴做营销型网站廊坊做网站外包
  • 双语网站模板常州做网站的公司
  • 广州市车管所网站建设全国做网站公司前十名
  • 太原手手工网站建设公司视频直播服务
  • 雷达图 做图网站wordpress首页怎么美化
  • 四川做网站设计公司价格vip解析网站怎么做的
  • 网站建设流程域名申请做化工的 有那些网站
  • 软件开发设计流程图seo搜索引擎官网
  • 外国小孩和大人做网站东富龙科技股份有限公司
  • 上线倒计时单页网站模板做网站的资金来源
  • 泸州市建设厅网站中小企业网络需求分析
  • asp网站版权做网页价格
  • 长春网站建设路关键词优化公司哪家好
  • 河南省建设银行网站年报天津设计师网站
  • 沙洋网站定制如果自己建立网站
  • 凡科网站怎么做建站关键字搜索网站怎么做