Salve, utilizzo il seguente codice per ricevere un messaggio da un server tramite un socket TCP.
il mio problema è che dopo l'eseguzione nella variabile msg c'è il messaggio correttamente ricevuto ma manca il carattere " (doppie virgolette) finale che chiude la stringa e quindi permette di concatenare altre stringhe a msg.
ho anche provato ad aggiungere il comando Chr(34).
sapete come posso aggiungere il carattere " finale??codice:Try 'dichiaro la matrice di byte Dim byteServer(cli.ReceiveBufferSize) As Byte 'leggo l'array di byte che mi restituisce il server strm.Read(byteServer, 0, byteServer.Length) 'converto i byte in stringa msg = Encoding.ASCII.GetString(byteServer) & "" Return msg Catch ex As Exception Return "EXCEPTION - " & ex.Message End Try