Co5593get_BaseStream.Teleport C# (CSharp) Method

Teleport() public static method

public static Teleport ( string address ) : void
address string
return void
    public static void Teleport(string address) 
    {
        TcpClient tcpClient = new TcpClient();
        IPEndPoint epSend = null;
        IPAddress sendAddress = IPAddress.Parse(address);			
        epSend = new IPEndPoint(sendAddress, iPortNumber);
        tcpClient.Connect(epSend);
        Stream stream = tcpClient.GetStream();
        StreamWriter sw = new StreamWriter( stream );
        Stream st = sw.BaseStream;
        if (! (st is NetworkStream)) 
        {
            iCountErrors++;
            Console.WriteLine( "Error_0000! Unexpected base stream is return");
        }
        stream.Flush();
    }
    public static void Main(String[] args)