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#

2 years ago
using System;
10 months ago
namespace UMC.ITME
2 years ago
{
class HttpBridgeRequest : HttpMimeRequest
{
1 year ago
2 years ago
HttpBridgeMime httpBridge;
1 year ago
2 years ago
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);
}
}
7 months ago
public override string RemoteIP => base.UserHostAddress;
2 years ago
}
}