实例介绍
【实例简介】
【实例截图】
【核心代码】
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 | using System; using System.Collections.Generic; using System.Text; using System.Security.Cryptography; using System.Net.Sockets; using System.Net; using System.IO; using System.Threading; namespace XuanJiSocket { /// <summary> /// 玄机SocketHelper /// Coding By 君临 /// 更新时间08-03/2015 /// 版本号: 2.6.3 /// </summary> public class SocketHelper { #region 推送器 加密 public delegate void PushSockets(Sockets sockets); public static PushSockets pushSockets; /// <summary> /// 数据DES加密 /// </summary> public class Encrypt { private byte [] iba_mIV = new byte [8]; //向量 private byte [] iba_mKey = new byte [8]; //密钥 private DESCryptoServiceProvider io_DES = new DESCryptoServiceProvider(); public Encrypt() { this .iba_mKey[0] = 0x95; this .iba_mKey[1] = 0xc4; this .iba_mKey[2] = 0xf6; this .iba_mKey[3] = 0x49; this .iba_mKey[4] = 0xac; this .iba_mKey[5] = 0x61; this .iba_mKey[6] = 0xa3; this .iba_mKey[7] = 0xe2; this .iba_mIV[0] = 0xf9; this .iba_mIV[1] = 0x6a; this .iba_mIV[2] = 0x65; this .iba_mIV[3] = 0xb8; this .iba_mIV[4] = 0x4a; this .iba_mIV[5] = 0x23; this .iba_mIV[6] = 0xfe; this .iba_mIV[7] = 0xc6; this .io_DES.Key = this .iba_mKey; this .io_DES.IV = this .iba_mIV; } /// <summary> /// 初始化加密向量与密钥 长度为8 /// </summary> /// <param name="iba_mIV">向量</param> /// <param name="iba_mKey">密钥</param> public Encrypt( byte [] iba_mIV, byte [] iba_mKey) { this .io_DES.IV = iba_mIV; this .io_DES.Key = iba_mKey; } /// <summary> /// 解密 /// </summary> /// <param name="as_Data"></param> /// <returns></returns> public string doDecrypt( string as_Data) { ICryptoTransform lo_ICT = this .io_DES.CreateDecryptor( this .io_DES.Key, this .io_DES.IV); try { byte [] lba_bufIn = this .FromHexString(as_Data); //Encoding.UTF8.GetString(Convert.FromBase64String( byte [] lba_bufOut = lo_ICT.TransformFinalBlock(lba_bufIn, 0, lba_bufIn.Length); return Encoding.UTF8.GetString(lba_bufOut); } catch { return as_Data; } } /// <summary> /// 加密 /// </summary> /// <param name="as_Data"></param> /// <returns></returns> public string doEncrypt( string as_Data) { ICryptoTransform lo_ICT = this .io_DES.CreateEncryptor( this .io_DES.Key, this .io_DES.IV); try { byte [] lba_bufIn = Encoding.UTF8.GetBytes(as_Data); byte [] lba_bufOut = lo_ICT.TransformFinalBlock(lba_bufIn, 0, lba_bufIn.Length); return GetHexString(lba_bufOut); //Convert.ToBase64String(Encoding.UTF8.GetBytes(); } catch { return "" ; } } /// <summary> /// 转换2进制 /// </summary> /// <param name="as_value"></param> /// <returns></returns> private byte [] FromHexString( string as_value) { byte [] lba_buf = new byte [Convert.ToInt32(( int )(as_value.Length / 2))]; for ( int li_i = 0; li_i < lba_buf.Length; li_i ) { lba_buf[li_i] = Convert.ToByte(as_value.Substring(li_i * 2, 2), 0x10); } return lba_buf; } /// <summary> /// 字节转字符串 /// </summary> /// <param name="aba_buf"></param> /// <returns></returns> private string GetHexString( byte [] aba_buf) { StringBuilder lsb_value = new StringBuilder(); foreach ( byte lb_byte in aba_buf) { lsb_value.Append(Convert.ToString(lb_byte, 0x10).PadLeft(2, '0' )); } return lsb_value.ToString(); } } #endregion /// <summary> /// Tcp同步服务端,SocketObject继承抽象类 /// 服务端采用TcpListener封装. /// 使用Semaphore 来控制并发,每次处理5个.最大处理5000 /// </summary> public class TcpServer : SocketObject { bool IsStop = false ; object obj = new object (); /// <summary> /// 信号量 /// </summary> private Semaphore semap = new Semaphore(5, 5000); /// <summary> /// 客户端队列集合 /// </summary> public List<Sockets> ClientList = new List<Sockets>(); /// <summary> /// 服务端 /// </summary> private TcpListener listener; /// <summary> /// 当前IP地址 /// </summary> private IPAddress Ipaddress; /// <summary> /// 欢迎消息 /// </summary> private string boundary = "bbs.msdn5.com" ; /// <summary> /// 当前监听端口 /// </summary> private int Port; /// <summary> /// 当前IP,端口对象 /// </summary> private IPEndPoint ip; /// <summary> /// 初始化服务端对象 /// </summary> /// <param name="ipaddress">IP地址</param> /// <param name="port">监听端口</param> public override void InitSocket(IPAddress ipaddress, int port) { Ipaddress = ipaddress; Port = port; listener = new TcpListener(Ipaddress, Port); } /// <summary> /// 初始化服务端对象 监听Any即所有网卡 /// </summary> /// <param name="ipaddress">IP地址</param> /// <param name="port">监听端口</param> public override void InitSocket( int port) { Ipaddress = IPAddress.Any; Port = port; listener = new TcpListener(Ipaddress, Port); } /// <summary> /// 初始化服务端对象 /// </summary> /// <param name="ipaddress">IP地址</param> /// <param name="port">监听端口</param> public override void InitSocket( string ipaddress, int port) { Ipaddress = IPAddress.Parse(ipaddress); Port = port; ip = new IPEndPoint(Ipaddress, Port); listener = new TcpListener(Ipaddress, Port); } /// <summary> /// 启动监听,并处理连接 /// </summary> public override void Start() { try { listener.Start(); Thread AccTh = new Thread( new ThreadStart( delegate { while ( true ) { if (IsStop != false ) { break ; } GetAcceptTcpClient(); Thread.Sleep(1); } })); AccTh.Start(); } catch (SocketException skex) { Sockets sks = new Sockets(); sks.ex = skex; pushSockets.Invoke(sks); //推送至UI } } /// <summary> /// 等待处理新的连接 /// </summary> private void GetAcceptTcpClient() { try { semap.WaitOne(); TcpClient tclient = listener.AcceptTcpClient(); //维护客户端队列 Socket socket = tclient.Client; NetworkStream stream = new NetworkStream(socket, true ); //承载这个Socket Sockets sks = new Sockets(tclient.Client.RemoteEndPoint as IPEndPoint, tclient, stream); sks.NewClientFlag = true ; //加入客户端集合. AddClientList(sks); //推送新客户端 pushSockets.Invoke(sks); //客户端异步接收 sks.nStream.BeginRead(sks.RecBuffer, 0, sks.RecBuffer.Length, new AsyncCallback(EndReader), sks); //主动向客户端发送一条连接成功信息 if (stream.CanWrite) { byte [] buffer = Encoding.UTF8.GetBytes(boundary); stream.Write(buffer, 0, buffer.Length); } semap.Release(); } catch (Exception exs) { semap.Release(); Sockets sk = new Sockets(); sk.ClientDispose = true ; //客户端退出 sk.ex = new Exception(exs.ToString() "新连接监听出现异常" ); if (pushSockets != null ) { pushSockets.Invoke(sk); //推送至UI } } } /// <summary> /// 异步接收发送的信息. /// </summary> /// <param name="ir"></param> private void EndReader(IAsyncResult ir) { Sockets sks = ir.AsyncState as Sockets; if (sks != null && listener != null ) { try { if (sks.NewClientFlag || sks.Offset != 0) { sks.NewClientFlag = false ; sks.Offset = sks.nStream.EndRead(ir); pushSockets.Invoke(sks); //推送至UI sks.nStream.BeginRead(sks.RecBuffer, 0, sks.RecBuffer.Length, new AsyncCallback(EndReader), sks); } } catch (Exception skex) { lock (obj) { //移除异常类 ClientList.Remove(sks); Sockets sk = sks; sk.ClientDispose = true ; //客户端退出 sk.ex = skex; pushSockets.Invoke(sks); //推送至UI } } } } /// <summary> /// 加入队列. /// </summary> /// <param name="sk"></param> private void AddClientList(Sockets sk) { Sockets sockets = ClientList.Find(o => { return o.Ip == sk.Ip; }); //如果不存在则添加,否则更新 if (sockets == null ) { ClientList.Add(sk); } else { ClientList.Remove(sockets); ClientList.Add(sk); } } public override void Stop() { if (listener != null ) { SendToAll( "ServerOff" ); listener.Stop(); listener = null ; IsStop = true ; SocketHelper.pushSockets = null ; } } /// <summary> /// 向所有在线的客户端发送信息. /// </summary> /// <param name="SendData">发送的文本</param> public void SendToAll( string SendData) { for ( int i = 0; i < ClientList.Count; i ) { SendToClient(ClientList[i].Ip, SendData); } } /// <summary> /// 向所有在线的客户端发送信息. /// </summary> /// <param name="SendData">发送的文本</param> public void SendToAll( byte [] SendDataBuffer) { for ( int i = 0; i < ClientList.Count; i ) { SendToClient(ClientList[i].Ip, SendDataBuffer); } } /// <summary> /// 向某一位客户端发送信息 /// </summary> /// <param name="ip">客户端IP 端口地址</param> /// <param name="SendData">发送的数据包</param> public void SendToClient(IPEndPoint ip, byte [] SendDataBuffer) { try { Sockets sks = ClientList.Find(o => { return o.Ip == ip; }); if (sks != null ) { if (sks.Client.Connected) { //获取当前流进行写入. NetworkStream nStream = sks.nStream; if (nStream.CanWrite) { byte [] buffer = SendDataBuffer; nStream.Write(buffer, 0, buffer.Length); } else { //避免流被关闭,重新从对象中获取流 nStream = sks.Client.GetStream(); if (nStream.CanWrite) { byte [] buffer = SendDataBuffer; nStream.Write(buffer, 0, buffer.Length); } else { //如果还是无法写入,那么认为客户端中断连接. ClientList.Remove(sks); } } } else { //没有连接时,标识退出 sks.ClientDispose = true ; //如果出现异常,标识客户端下线 sks.ex = new Exception( "客户端无连接" ); pushSockets.Invoke(sks); //推送至UI } } } catch (Exception skex) { Sockets sks = new Sockets(); sks.ClientDispose = true ; //如果出现异常,标识客户端退出 sks.ex = skex; pushSockets.Invoke(sks); //推送至UI } } /// <summary> /// 向某一位客户端发送信息 /// </summary> /// <param name="ip">客户端IP 端口地址</param> /// <param name="SendData">发送的数据包</param> public void SendToClient(IPEndPoint ip, string SendData) { try { Sockets sks = ClientList.Find(o => { return o.Ip == ip; }); if (sks != null ) { if (sks.Client.Connected) { //获取当前流进行写入. NetworkStream nStream = sks.nStream; if (nStream.CanWrite) { byte [] buffer = Encoding.UTF8.GetBytes(SendData); nStream.Write(buffer, 0, buffer.Length); } else { //避免流被关闭,重新从对象中获取流 nStream = sks.Client.GetStream(); if (nStream.CanWrite) { byte [] buffer = Encoding.UTF8.GetBytes(SendData); nStream.Write(buffer, 0, buffer.Length); } else { //如果还是无法写入,那么认为客户端中断连接. ClientList.Remove(sks); } } } else { //没有连接时,标识退出 Sockets ks = new Sockets(); sks.ClientDispose = true ; //如果出现异常,标识客户端下线 sks.ex = new Exception( "客户端无连接" ); pushSockets.Invoke(sks); //推送至UI } } } catch (Exception skex) { Sockets sks = new Sockets(); sks.ClientDispose = true ; //如果出现异常,标识客户端退出 sks.ex = skex; if (pushSockets != null ) { pushSockets.Invoke(sks); //推送至UI } } } } public class TcpClients : SocketObject { /// <summary> /// 是否关闭.(窗体关闭时关闭代码) /// </summary> bool IsClose = false ; /// <summary> /// 当前管理对象 /// </summary> Sockets sk; /// <summary> /// 客户端 /// </summary> public TcpClient client; /// <summary> /// 当前连接服务端地址 /// </summary> IPAddress Ipaddress; /// <summary> /// 当前连接服务端端口号 /// </summary> int Port; /// <summary> /// 服务端IP 端口 /// </summary> IPEndPoint ip; /// <summary> /// 发送与接收使用的流 /// </summary> NetworkStream nStream; /// <summary> /// 初始化Socket /// </summary> /// <param name="ipaddress"></param> /// <param name="port"></param> public override void InitSocket( string ipaddress, int port) { Ipaddress = IPAddress.Parse(ipaddress); Port = port; ip = new IPEndPoint(Ipaddress, Port); client = new TcpClient(); } public override void InitSocket( int port) { Port = port; } /// <summary> /// 初始化Socket /// </summary> /// <param name="ipaddress"></param> /// <param name="port"></param> public override void InitSocket(IPAddress ipaddress, int port) { Ipaddress = ipaddress; Port = port; ip = new IPEndPoint(Ipaddress, Port); client = new TcpClient(); } /// <summary> /// 重连上端. /// </summary> public void RestartInit() { InitSocket(Ipaddress, Port); Connect(); } public void SendData( string SendData) { try { //如果连接则发送 if (client != null ) { if (client.Connected) { if (nStream == null ) { nStream = client.GetStream(); } byte [] buffer = Encoding.UTF8.GetBytes(SendData); nStream.Write(buffer, 0, buffer.Length); } else { Sockets sks = new Sockets(); sks.ErrorCode = Sockets.ErrorCodes.TrySendData; sks.ex = new Exception( "客户端发送时无连接,开始进行重连上端.." ); sks.ClientDispose = true ; pushSockets.Invoke(sks); //推送至UI RestartInit(); } } else { Sockets sks = new Sockets(); sks.ErrorCode = Sockets.ErrorCodes.TrySendData; sks.ex = new Exception( "客户端对象为null,开始重连上端.." ); sks.ClientDispose = true ; pushSockets.Invoke(sks); //推送至UI RestartInit(); } } catch (Exception skex) { Sockets sks = new Sockets(); sks.ErrorCode = Sockets.ErrorCodes.TrySendData; sks.ex = new Exception( "客户端出现异常,开始重连上端..异常信息:" skex.Message); sks.ClientDispose = true ; pushSockets.Invoke(sks); //推送至UI RestartInit(); } } public void SendData( byte [] SendData) { try { //如果连接则发送 if (client != null ) { if (client.Connected) { if (nStream == null ) { nStream = client.GetStream(); } byte [] buffer = SendData; nStream.Write(buffer, 0, buffer.Length); } else { Sockets sks = new Sockets(); sks.ErrorCode = Sockets.ErrorCodes.TrySendData; sks.ex = new Exception( "客户端发送时无连接,开始进行重连上端.." ); sks.ClientDispose = true ; pushSockets.Invoke(sks); //推送至UI RestartInit(); } } else { Sockets sks = new Sockets(); sks.ErrorCode = Sockets.ErrorCodes.TrySendData; sks.ex = new Exception( "客户端无连接.." ); sks.ClientDispose = true ; pushSockets.Invoke(sks); //推送至UI } } catch (Exception skex) { Sockets sks = new Sockets(); sks.ErrorCode = Sockets.ErrorCodes.TrySendData; sks.ex = new Exception( "客户端出现异常,开始重连上端..异常信息:" skex.Message); sks.ClientDispose = true ; pushSockets.Invoke(sks); //推送至UI RestartInit(); } } private void Connect() { try { client.Connect(ip); nStream = new NetworkStream(client.Client, true ); sk = new Sockets(ip, client, nStream); sk.nStream.BeginRead(sk.RecBuffer, 0, sk.RecBuffer.Length, new AsyncCallback(EndReader), sk); //推送连接成功. Sockets sks = new Sockets(); sks.ErrorCode = Sockets.ErrorCodes.ConnectSuccess; sks.ex = new Exception( "客户端连接成功." ); sks.ClientDispose = false ; pushSockets.Invoke(sks); } catch (Exception skex) { Sockets sks = new Sockets(); sks.ErrorCode = Sockets.ErrorCodes.ConnectError; sks.ex = new Exception( "客户端连接失败..异常信息:" skex.Message); sks.ClientDispose = true ; pushSockets.Invoke(sks); } } private void EndReader(IAsyncResult ir) { Sockets s = ir.AsyncState as Sockets; try { if (s != null ) { if (IsClose && client == null ) { sk.nStream.Close(); sk.nStream.Dispose(); return ; } s.Offset = s.nStream.EndRead(ir); pushSockets.Invoke(s); //推送至UI sk.nStream.BeginRead(sk.RecBuffer, 0, sk.RecBuffer.Length, new AsyncCallback(EndReader), sk); } } catch (Exception skex) { Sockets sks = s; sks.ex = skex; sks.ClientDispose = true ; pushSockets.Invoke(sks); //推送至UI } } /// <summary> /// 重写Start方法,其实就是连接服务端 /// </summary> public override void Start() { Connect(); } public override void Stop() { Sockets sks = new Sockets(); if (client != null ) { client.Client.Shutdown(SocketShutdown.Both); Thread.Sleep(10); client.Close(); IsClose = true ; client = null ; } else { sks.ex = new Exception( "客户端没有初始化.!" ); } sks.ex = new Exception( "客户端与上端断开连接.." ); pushSockets.Invoke(sks); //推送至UI } } /// <summary> /// Socket基类(抽象类) /// 抽象3个方法,初始化Socket(含一个构造),停止,启动方法. /// 此抽象类为TcpServer与TcpClient的基类,前者实现后者抽象方法. /// 对象基类 /// </summary> public abstract class SocketObject { public abstract void InitSocket(IPAddress ipaddress, int port); public abstract void InitSocket( string ipaddress, int port); public abstract void InitSocket( int port); public abstract void Start(); public abstract void Stop(); } /// <summary> /// 自定义Socket对象 /// </summary> public class Sockets { /// <summary> /// 接收缓冲区 /// </summary> public byte [] RecBuffer = new byte [1024]; /// <summary> /// 发送缓冲区 /// </summary> public byte [] SendBuffer = new byte [1024]; /// <summary> /// 异步接收后包的大小 /// </summary> public int Offset { get ; set ; } /// <summary> /// 空构造 /// </summary> public Sockets() { } /// <summary> /// 创建Sockets对象 /// </summary> /// <param name="ip">Ip地址</param> /// <param name="client">TcpClient</param> /// <param name="ns">承载客户端Socket的网络流</param> public Sockets(IPEndPoint ip, TcpClient client, NetworkStream ns) { Ip = ip; Client = client; nStream = ns; } /// <summary> /// 当前IP地址,端口号 /// </summary> public IPEndPoint Ip { get ; set ; } /// <summary> /// 客户端主通信程序 /// </summary> public TcpClient Client { get ; set ; } /// <summary> /// 承载客户端Socket的网络流 /// </summary> public NetworkStream nStream { get ; set ; } /// <summary> /// 发生异常时不为null. /// </summary> public Exception ex { get ; set ; } /// <summary> /// 异常枚举 /// </summary> public ErrorCodes ErrorCode { get ; set ; } /// <summary> /// 新客户端标识.如果推送器发现此标识为true,那么认为是客户端上线 /// 仅服务端有效 /// </summary> public bool NewClientFlag { get ; set ; } /// <summary> /// 客户端退出标识.如果服务端发现此标识为true,那么认为客户端下线 /// 客户端接收此标识时,认为客户端异常. /// </summary> public bool ClientDispose { get ; set ; } /// <summary> /// 具体错误类型 /// </summary> public enum ErrorCodes { /// <summary> /// 对象为null /// </summary> objectNull, /// <summary> /// 连接时发生错误 /// </summary> ConnectError, /// <summary> /// 连接成功. /// </summary> ConnectSuccess, /// <summary> /// 尝试发送失败异常 /// </summary> TrySendData, } } } } |
好例子网口号:伸出你的我的手 — 分享!
小贴士
感谢您为本站写下的评论,您的评论对其它用户来说具有重要的参考价值,所以请认真填写。
- 类似“顶”、“沙发”之类没有营养的文字,对勤劳贡献的楼主来说是令人沮丧的反馈信息。
- 相信您也不想看到一排文字/表情墙,所以请不要反馈意义不大的重复字符,也请尽量不要纯表情的回复。
- 提问之前请再仔细看一遍楼主的说明,或许是您遗漏了。
- 请勿到处挖坑绊人、招贴广告。既占空间让人厌烦,又没人会搭理,于人于己都无利。
关于好例子网
本站旨在为广大IT学习爱好者提供一个非营利性互相学习交流分享平台。本站所有资源都可以被免费获取学习研究。本站资源来自网友分享,对搜索内容的合法性不具有预见性、识别性、控制性,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,平台无法对用户传输的作品、信息、内容的权属或合法性、安全性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论平台是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二与二十三条之规定,若资源存在侵权或相关问题请联系本站客服人员,点此联系我们。关于更多版权及免责申明参见 版权及免责申明
网友评论
我要评论