You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Gateway/Bridge/HttpBridgeRequest.cs

31 lines
653 B
C#

using System;
namespace UMC.ITME
{
class HttpBridgeRequest : HttpMimeRequest
{
HttpBridgeMime httpBridge;
public HttpBridgeRequest(HttpBridgeMime mime) : base(mime)
{
this.httpBridge = mime;
}
public override void Receive(byte[] buffer, int offset, int size)
{
if (this.IsWebSocket)
{
this.httpBridge.WebSocket(buffer, offset, size);
}
else
{
base.Receive(buffer, offset, size);
}
}
public override string RemoteIP => base.UserHostAddress;
}
}