CSharpRTMP.Core.NetIO.UDPCarrier.Create C# (CSharp) Method

Create() public static method

public static Create ( string bindIp, int bindPort ) : UDPCarrier
bindIp string
bindPort int
return UDPCarrier
        public static UDPCarrier Create(string bindIp, int bindPort)
        {
            var socket = new Socket(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp);
            //3. bind if necessary
            if (bindIp != "")
            {
                socket.Bind(new IPEndPoint(IPAddress.Parse(bindIp), bindPort));
            }
            
            //4. Create the carrier
            var pResult = new UDPCarrier(socket);
            return pResult;
        }
        public static UDPCarrier Create(string bindIp, ushort bindPort,BaseProtocol pProtocol)

Same methods

UDPCarrier::Create ( string bindIp, ushort bindPort, BaseProtocol pProtocol ) : UDPCarrier