Visualizzazione dei risultati da 1 a 3 su 3

Discussione: [VB.NET]Tunnel

  1. #1
    Utente di HTML.it L'avatar di x69asterix
    Registrato dal
    Jan 2005
    Messaggi
    1,303

    [VB.NET]Tunnel

    sapete indicarmi dove posso trovare qualche esempio di come creare un tunnel in vb.net?

  2. #2
    Utente di HTML.it L'avatar di cassano
    Registrato dal
    Aug 2004
    Messaggi
    3,002
    qui

  3. #3
    Utente di HTML.it L'avatar di x69asterix
    Registrato dal
    Jan 2005
    Messaggi
    1,303
    su questa pagina c'ero arrivato e ho sbaglio io ho c'è qualcosa che non torna nel codice.
    questo non capisco come fà ad essere importato?
    codice:
    Imports System.Runtime.Remoting.Channels.Http
    è questo da dove viene fuori?
    codice:
     our object is p2pfirewall.tunnel
    il codice dovrebbe essere
    codice:
    Imports System.Runtime.Remoting
    
    Imports System.Runtime.Remoting.Channels
    
    Imports System.Runtime.Remoting.Channels.Http
    
    Dim Tunnel As p2pfirewall.tunnel
    
    Dim peerName As String =  "" 
    
    Private  Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs)   peerName = "PEER#" & (New Random).NextDouble()
    
        tbName.Text += peerName
    
        ' Change http://localhost to the IP of the firewall tunnelling proxy.
    
        Tunnel = CType(Activator.GetObject( _
    
                      (New p2pfirewall.tunnel).GetType(), _
    
                      "http://localhost:8085/Firewall_Tunnel"), _
    
                      p2pfirewall.tunnel)
    
        If Tunnel Is Nothing Then MessageBox.Show("cannot locate server")
    
    End Sub

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2026 vBulletin Solutions, Inc. All rights reserved.