01/06/09 11:01
Alfonso
Ciao a tutti
Predispongo il socket per l'ascolto sulla porta 9000
Private Listener As New TcpListener(9000)
Dim tcpClient As New TcpClient
in caso di richiesta collegamento
If Listener.Pending Then
'Inizializza il client
tcpClient = Listener.AcceptTcpClient <<<<<<<<<<<<<<<<<<<<<<<<<
netstream = tcpClient.GetStream
La domanda é:
Qual'è la porta che verrà usata dal tcpclient del SERVER per comunicare con il tcpclient del CLIENT?
Se è 9000 non posso collegarmi con un secondo CLIENT al SERVER !!!
Se la porta è scelta autonomamente tra quelle libere del SERVER, come individuare la porta usata per la comunicazione?
portausata = Listener.?????????? <<<<<<<<<<<<<<<<<<<<<<<<<
Cosa metto al posto di ??????????
Grazie per le risposte.
Predispongo il socket per l'ascolto sulla porta 9000
Private Listener As New TcpListener(9000)
Dim tcpClient As New TcpClient
in caso di richiesta collegamento
If Listener.Pending Then
'Inizializza il client
tcpClient = Listener.AcceptTcpClient <<<<<<<<<<<<<<<<<<<<<<<<<
netstream = tcpClient.GetStream
La domanda é:
Qual'è la porta che verrà usata dal tcpclient del SERVER per comunicare con il tcpclient del CLIENT?
Se è 9000 non posso collegarmi con un secondo CLIENT al SERVER !!!
Se la porta è scelta autonomamente tra quelle libere del SERVER, come individuare la porta usata per la comunicazione?
portausata = Listener.?????????? <<<<<<<<<<<<<<<<<<<<<<<<<
Cosa metto al posto di ??????????
Grazie per le risposte.
aaa