首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > C# > sharpdc

sharpdc

  • 资源大小:137.15 kB
  • 上传时间:2021-06-30
  • 下载次数:0次
  • 浏览次数:0次
  • 资源积分:1积分
  • 标      签:

资 源 简 介

Easy to use Direct Connect library wirtten in C# Example of usage: ``` static void Main(string[] args) { // DcEngine is the main thing we will work with // use EngineSettings structure to set various settings of the engine Engine = new DcEngine(); // we need to have at least one hub connection to work with var hubSettings = new HubSettings { HubAddress = "_write_your_hub_address_here_", HubName = "My hub", Nickname = "sharpdc" }; var hubConnection = new HubConnection(hubSettings); // we want to see the hub connection status changes for debug puropses hubConnection.ConnectionStatusChanged += (sender, e) => Console.WriteLine("Hub " + e.Status); // add this connection to the engine Engine.Hubs.Add(hubConnection); // this event will be called when at least one hub will be connected and logged in Engine.

文 件 列 表

SharpDc.dll
SharpDc.pdb
VIP VIP
0.194732s