Winsock data

This is a discussion on Winsock data within the Windows Programming forums, part of the Platform Specific Boards category; I have recently been working on learning winsock, so i've been making lots of little programs to get the hang ...

  1. #1
    Registered User
    Join Date
    Dec 2001
    Posts
    29

    Post Winsock data

    I have recently been working on learning winsock, so i've been making lots of little programs to get the hang of it all. I just started figuring out how to send and recieve data (no files or anything, just short strings). Now, I want to make what will pan out to be a ultra-simple IM app.

    Now, I can send simple messages back and forth no problem, but
    I want to add, for example, different color text. I'm having trouble extracting the color info from the other info (i'm sending it all as one string, maybe thats not the way to do it?).

    What my question is, is could anyone point me to some websites, or post some example code, of how I could send other info along with my text string?

    I've tried just doing for() and while() loops to take parts of data out and put them in other strings for use, but it felt sorta hackish, and it seems like there would be a more effecient way.

    Any help is appreciated.

    *edit* -> Oh, and if it matters, its just a bare simple TCP stream that i'm using.
    Last edited by SushiFugu; 02-26-2002 at 03:51 AM.

  2. #2
    Registered User
    Join Date
    Dec 2001
    Posts
    29

    Question

    Come on, dont hold out on me here people

    I'll gladly post more info if anyone needs it, I just need alittle advice. Heck, any advice!

  3. #3
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    Posts
    4,831
    Please don't bump your own threads, it is against the rules, and may result in your thread being deleted.
    Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 48
    Last Post: 09-26-2008, 04:45 AM
  2. question about a working linked list
    By cold_dog in forum C++ Programming
    Replies: 23
    Last Post: 09-13-2006, 02:00 AM
  3. Reading a file with Courier New characters
    By Noam in forum C Programming
    Replies: 3
    Last Post: 07-07-2006, 10:29 AM
  4. Winsock End-of-Message Response :: Winsock
    By kuphryn in forum Windows Programming
    Replies: 2
    Last Post: 12-24-2002, 01:27 PM
  5. C Programming Question
    By TK in forum A Brief History of Cprogramming.com
    Replies: 13
    Last Post: 07-04-2002, 08:11 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21