private AddPortOnDevice ( NatDevice device, int port ) : void | ||
device | NatDevice | |
port | int | |
리턴 | void |
private void AddPortOnDevice(NatDevice device, int port)
{
device.MapAsync(MappingProtocol.TCP, port, TimeSpan.FromSeconds(7200), cancelSource.Token);
device.MapAsync(MappingProtocol.UDP, port, TimeSpan.FromSeconds(7200), cancelSource.Token);
}