hawkeye camera support(not tested)
This commit is contained in:
23
framework/Inspectron.HawkEye/Protocol/SocketExtensions.cs
Normal file
23
framework/Inspectron.HawkEye/Protocol/SocketExtensions.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
using System;
|
||||
using System.Net;
|
||||
using System.Net.Sockets;
|
||||
using Inspectron.HawkEye.RTSP;
|
||||
|
||||
namespace Inspectron.HawkEye.Protocol
|
||||
{
|
||||
public static class SocketExtensions
|
||||
{
|
||||
public static void Listen(this Socket self,IPAddress adapterAddress,int port)
|
||||
{
|
||||
self.Bind(new IPEndPoint(adapterAddress,port));
|
||||
}
|
||||
|
||||
public static void SendData(this Socket self, byte[] data)
|
||||
{
|
||||
Console.WriteLine("send data");
|
||||
|
||||
|
||||
self.Send(data);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user