+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Member
    Join Date
    Nov 2009
    Posts
    90

    What's happening with this string?

    I'm tryin to send a text over a socket using TWinSocketStream... But the string is going with '.' (dots), after every each letter...
    Like this, the string is:
    SendString:= 'USER test'+#13+#10;
    So I send like this: SockStream.Write(SendString[1], Length(SendString));
    This is going like: "U.S.E.R. .t"
    all this dots take length from the real string, and it can't even send the complete string, because of them... Someone knows how to solve this??
    I'm using Delphi 2010, and really think this is about that Unicode suport shit.

  2. #2
    Senior Member
    Join Date
    Apr 2009
    Posts
    300
    These dots probably come from your sniffer. They are used to represent NULL, 0x00, \00, NIL or whatever you want to call it.
    Send as ASCII and you'll be fine.

  3. #3
    Senior Member cracksman's Avatar
    Join Date
    Dec 2006
    Location
    behind your little sister
    Posts
    1,611
    Code:
    Length(SendString)*2
    use ^ because a wideChar is twice as large as ANSI char.
    I Retired. stop asking me questions. you can find me on msn or ic0de.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 10
    Last Post: 18-11-2010, 12:49
  2. irc string help
    By Dickybob in forum General Programming Help
    Replies: 1
    Last Post: 30-04-2010, 13:40
  3. Replies: 3
    Last Post: 23-09-2009, 21:44
  4. How to use string in C++
    By acidrain in forum Off-Topic
    Replies: 2
    Last Post: 28-05-2009, 13:24
  5. Get the string before @, from string... help pls.
    By Xploit in forum Delphi Help
    Replies: 3
    Last Post: 31-12-2005, 15:39

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 ©2011, Crawlability, Inc.