WebSocket 开发包 AlchemyWebSocket

码农软件 · 软件分类 · WebSocket开发包 · 2019-04-17 19:41:46

软件介绍

Alchemy WebSockets 是一个 c# 的 WebSocket 开发包,可开发 WebSocket 的客户端和服务器端应用。

示例代码:

//...refs
using Alchemy;
using Alchemy.Classes;

static void Main(string[] args)
{
  // instantiate a new server - acceptable port and IP range,
  // and set up your methods.

  var aServer = new WebSocketServer(81, IPAddress.Any) {
    OnReceive = OnReceive,
    OnSend = OnSend,
    OnConnect = OnConnect,
    OnConnected = OnConnected,
    OnDisconnect = OnDisconnect,
    TimeOut = new TimeSpan(0, 5, 0)
  };

  aServer.Start();
}

static void OnConnected(UserContext context)
{
  Console.WriteLine("Client Connection From : " +
  aContext.ClientAddress.ToString());
}

//...etc

本文地址:https://www.codercto.com/soft/d/3803.html

Discrete Mathematics and Its Applications

Discrete Mathematics and Its Applications

Kenneth H Rosen / McGraw-Hill Science/Engineering/Math / 2003-04-22 / USD 132.81

Discrete Mathematics and its Applications is a focused introduction to the primary themes in a discrete mathematics course, as introduced through extensive applications, expansive discussion, and deta......一起来看看 《Discrete Mathematics and Its Applications》 这本书的介绍吧!

HTML 压缩/解压工具
HTML 压缩/解压工具

在线压缩/解压 HTML 代码

CSS 压缩/解压工具
CSS 压缩/解压工具

在线压缩/解压 CSS 代码

RGB CMYK 转换工具
RGB CMYK 转换工具

RGB CMYK 互转工具