sending info through ports over the net for games

This is a discussion on sending info through ports over the net for games within the Networking/Device Communication forums, part of the General Programming Boards category; This is basically what im looking for. I have a program that draws up a chessboard. You can enter a ...

  1. #16
    Registered User
    Join Date
    Nov 2004
    Posts
    20

    Simple

    This is basically what im looking for. I have a program that draws up a chessboard. You can enter a move, that move is stored in a char variable. I want that char string to be sent out through a port, to a computer that is running the same program. It then stores that char string into a variable, and draws the board accordingly to the move. Then that person types in a move...it sends it to the other computer....etc. That is all, not too complicated, if you know how.

  2. #17
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    21,743
    The general population wont help you out, unless they OWE you something, or you give them CASH.
    Um, did you read what came after that - "However, people have been generous enough to help others with their problems, and after a while, some decide to write FAQs and other articles so that those in need can read them and learn, without having to ask the same questions again."

    I too have done similiar things, though for PHP rather than C++ since I do not have sufficient knowledge and experience with C++ yet.

    Give a man a fish, and he will not be hungry for a day; teach a man to fish and he will not be hungry for a lifetime.
    (various conditions assumed, of course :P )
    C + C++ Compiler: MinGW port of GCC
    Version Control System: Bazaar

    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  3. #18
    Registered User
    Join Date
    Nov 2004
    Posts
    20

    Yes i understand

    People have been generous? I dont see it.
    Teach a man to fish? What is a fish? (get the analogy?)
    I dont know the first thing about sockets. If you could give me part of what i need to know, SPECIFIC to my question, it would help a great deal. I have been searching on the net for hours now, and i get ALOT of stuff on sockets, 99% doesnt relate one BIT to what im doing, and the other 1 percent probably does, but i dont understand it...well, its not easy sifting through everything...maybe you dont have enough info to help me, that is fine, ok? No harm done, but if you DO know, you could give me a skeleton of what i need, and i can then go fill in the blanks. You say teach a man to fish, but you arent teaching me anything.

  4. #19
    Registered User
    Join Date
    Nov 2004
    Posts
    20

    What is a fish?

    By "what is a fish" i am refering to "I dont know what sockets are at all"
    I dont know what the problem IS, I dont know what the functions ARE. Someone could name some functions i could use specific to my program. They dont need to explain them, if they want to "Teach me how to fish", I could go google those functions, or look in my C++ reference guide for them, and LEARN them. However, people mention sockets to me, and when i google that, I get millions of pages, most not related to my problem. I hope you can understand what i am talking about. Feel me?

  5. #20
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    21,743
    If you could give me part of what i need to know, SPECIFIC to my question, it would help a great deal.
    Your question is very general, believe it or not.
    You're basically asking: how do I send and receive data over a network?

    So one should temporarily stop work on the chess program and check out Windows Sockets: A Quick And Dirty Primer, and slowly work through Beej's Guide to Network Programming, trying out small examples and tests along the way.

    Once one understands the basic ideas, and has some grasp of the programming, perhaps something more specific to C++ such as this C++ Socket Class for Windows might come in handy.

    Now that one knows how to send and receive data over a network, one can then apply this new knowledge to the chess program.
    And to other programs that require network transmission after that.
    C + C++ Compiler: MinGW port of GCC
    Version Control System: Bazaar

    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  6. #21
    Mayor of Awesometown Govtcheez's Avatar
    Join Date
    Aug 2001
    Location
    MI
    Posts
    8,825
    as a moderator i am very scared to answer questions and help, but i will close this thread for you being a dick.

    edit: try and be a little more polite, and your time on this board will be a lot nicer. We're here to help, not do everything for you. If you decide to ignore me, I can promise you that you won't stick around for long.

Page 2 of 2 FirstFirst 12
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Sending / Receiving Info Via TCP or UDP
    By bengreenwood in forum C Programming
    Replies: 0
    Last Post: 03-24-2009, 02:17 AM
  2. Sending info via TcpLink or UdpLink = Difficult?
    By bengreenwood in forum C++ Programming
    Replies: 0
    Last Post: 03-22-2009, 01:41 PM
  3. Question about getting an info class from another Form
    By Joelito in forum C# Programming
    Replies: 0
    Last Post: 10-16-2006, 01:02 PM
  4. Help doing an e-mail program in c...
    By Tyler_Durden in forum C Programming
    Replies: 88
    Last Post: 01-02-2005, 02:12 PM
  5. How do you send and recieve info from serial ports?
    By Unregistered in forum C++ Programming
    Replies: 2
    Last Post: 06-29-2002, 12:13 PM

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