0

我正在尝试连接到用户名中包含 @ 的服务器,但每次都会收到该错误,有什么想法吗?

    With jcSender
        .User = username
        .Password = password
        .NetworkHost = "chat.na1.lol.riotgames.com"
        .Port = 5223
        .SSL = True
        .PlaintextAuth = True
        .Resource = "xiff"
        .AutoReconnect = True
        .AutoRoster = True
        .AutoPresence = True

    End With
4

1 回答 1

0

通过使用 JID 解决了它

Public Function Leaguelogin(ByRef USER As String, ByRef PASSWORD As String)


    Dim account As New jabber.JID(USER + "@pvp.net/xiff")
    Dim j As New JabberClient
    Try         

        j.AutoPresence = True
        j.AutoLogin = True
        j.Server = "pvp.net"
        j.NetworkHost = "chat.na1.lol.riotgames.com"
        j.SSL = True
        j.Port = 5223
        j.PlaintextAuth = True

        j.User = account.User
        j.Password = "AIR_" + PASSWORD
        j.Connect()
        j.Login()
        j.IsAuthenticated = True



    Catch ex As Exception
        MsgBox(ex.Message)
    End Try






End Function
于 2013-03-20T13:08:53.920 回答