private static Socket CreateSocket(HyperVEndPoint endpoint) { Socket socket = new Socket(HyperVEndPoint.AF_HYPERV, SocketType.Stream, HyperVEndPoint.HV_PROTOCOL_RAW); socket.Connect(endpoint); return(socket); }
/// <summary> /// Constructor. /// </summary> /// <param name="endpoint">The HyperV socket endpoint to connect to.</param> /// <param name="transport_security">The transport security for the connection.</param> public RpcHyperVClientTransport(HyperVEndPoint endpoint, RpcTransportSecurity transport_security) : base(CreateSocket(endpoint), MaxRecvFrag, MaxXmitFrag, new NdrDataRepresentation(), transport_security) { }