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)