M
mspeed
I have written a TCP/IP server. The first thing a client does is send
login info in the form of FirstName LastName|mypassword@ I read this
in using the .GetByte method of a networkstream. I add the input as
entered into a byte array which upon receiving the "@" character I
convert into a string using the .GetChars method of an encoding
object. I then parse out the username and password into string
variables for use elsewhere. When I step through the code I find
something strange. In the Autos window at the bottom of the screen
the username will show as "FirstName LastName" (with the " characters)
but the password part shows as "mypassword with no closing "
character. Additionally, the unclosed string shows in red text and I
cannot use it in any other string. If I build a string and append the
password value anything that comes after the password will not show.
It is almost as though there is some special character at the end of
the string that will not allow anything to come after the last letter
entered before the "@"
Any help would be greatly appreciated.
login info in the form of FirstName LastName|mypassword@ I read this
in using the .GetByte method of a networkstream. I add the input as
entered into a byte array which upon receiving the "@" character I
convert into a string using the .GetChars method of an encoding
object. I then parse out the username and password into string
variables for use elsewhere. When I step through the code I find
something strange. In the Autos window at the bottom of the screen
the username will show as "FirstName LastName" (with the " characters)
but the password part shows as "mypassword with no closing "
character. Additionally, the unclosed string shows in red text and I
cannot use it in any other string. If I build a string and append the
password value anything that comes after the password will not show.
It is almost as though there is some special character at the end of
the string that will not allow anything to come after the last letter
entered before the "@"
Any help would be greatly appreciated.