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; Is there a way to send info, like chess moves, through ports to someone on the net? Would you have ...

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

    sending info through ports over the net for games

    Is there a way to send info, like chess moves, through ports to someone on the net? Would you have to set up a program as a server, and have the program running at both ends? I know of a chess game that is prety interesting that someone posted on the forums here and elsewhere. I want to play someone over the net. Is this possible? Moves are like "A2-A4", how would one send that through the internet to someones computer running the same program? Can you post some kind of code that tells me how that is easily understood? Thanks!

  2. #2
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,674

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

    I just love that

    I just love it when someone tells you you shouldnt have posted something, and read the rules. WHAT EXACTLY AM I LOOKING FOR?!?!?! Can you be more specific next time? Do you know how annoying it is to have someone say, thats not good, read the rules. Insead why dont you say "You cannot post such and such because the rules say such and such". Im new here ok? Why dont you help me out and be more specific?

  4. #4
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,674
    Well if you're too dumb to read "Useful Links And Good Books", then there is no helping you.

    No one is going to go to the trouble of snipping information from other web pages on the basis of guessing what you may or may not know(*). It's up to you to go and READ information and then if you're still stuck to post specific questions.


    (*)Guessing usually invokes 1 of 3 responses - when people can be bothered to respond.
    - yeah, thanks, I knew that already stop treating me like a dumb noob
    - woah, back up einstein, I'm just a noob
    - thanks, that's just what I was looking for

    I didn't tell you anything about not posting, I just gave you a place to look.

  5. #5
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,674
    Your cross-posts have been deleted, and this thread remains in the most appropriate forum

  6. #6
    Registered User
    Join Date
    Nov 2004
    Posts
    20

    Yep, thats what i thought

    It seems to me that thread moderators are always like that. They dont want to answer a question, but they want to tell you to look yourself. Thats lazy in my opinion. I KNEW you were a moderator of some sort. Thanks for adding to the validity of my prejudice.

  7. #7
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    Posts
    4,831
    >>> Is there a way to send info

    The answer to your question is yes.

    Now you see the quadrary. The answer I gave you is absolutely correct, but does not really help. The reason I cannot advise further is because as Salem has said, you don't give any information of your OS, programming skill level, or networking knowledge.

    The subject you need is "Sockets", but which implementation, (they are mostly similar but sufficiently different that "one size does not fit all"), depends on your OS.

    The starter link I usually give to this kind of question on the Windows board is this one.

    By the way, I am also a mod here. The role of a mod is to see that the rules of the forums are followed. If you have a problem with that, then you are going to have problems in life. There are always people around that have the job of making sure the rest follow the rules, internet forums, workplaces, walking in the streets.

    That said, there are forums which are more anarchic, find one, and judge for yourself the quality of the advice you get there!

    A list of mods can be found here.
    Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.

  8. #8
    Registered User
    Join Date
    Nov 2004
    Posts
    20

    Ok, ill be more specific

    I need information for sending info through ports. Language: C++
    OS: Windows 9X, XP, 2000
    Info i need? Need to send moves like "A2-A4" which would be a char string to another computer using the same program (Which i will code using the info i get on sockets).
    What is my programming background? I know qbasic at the intermediate level. I know C++ at the beginners level. Thats all, and thats why i need help.
    As for being a mod, and mods enforcing rules, what rule have i broken in posting on these forums? Oh, dont just answer this question, cause I still need some C++ socket programming knowledge. But, ge-head, do whatever floats your boat

  9. #9
    Registered User
    Join Date
    Nov 2004
    Posts
    20

    Addendum

    Also, I just really enjoy (not saying you) the people that respond to posts in forums with "DO IT YOURSELF" basically as a response. These are FORUMS, they are meant to POOL information, and skills. But what do I know?

  10. #10
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    21,941
    what rule have i broken in posting on these forums
    Posting of the same topic on different forums within the same messageboard.

    They dont want to answer a question, but they want to tell you to look yourself. Thats lazy in my opinion.
    And not looking for yourself when you are in a position to do so is not laziness?
    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

  11. #11
    Registered User
    Join Date
    Nov 2004
    Posts
    20

    Ok fine

    If someone knows the answer to my question, please TELL ME. Dont tell me to look myself, that is what i mean by lazy. Its the superiour attitude as well. Snobby

  12. #12
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    21,941
    Have you considered that no one owes you anything?

    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.

    Not only that, but a structured article is more likely to cover gaps in that person's knowledge, and so that person is less likely to get embarrassed later on.

    Yes, you want the answer, and you want it now.
    But in the long run, just spending a few more minutes getting the bigger picture is going to save you hours trying to fix problems that shouldnt have been around in the first place.

    This is why I suggest that you read adrianxw's starter link, or my own link to Beej's guide to network programming.

    You may think that this is a "superior" or a "snobbish" attitude, but in the end it is your own benefit, not mine.
    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

  13. #13
    Registered User
    Join Date
    Nov 2004
    Posts
    20

    Really?

    Have you considered that no one owes you anything?

    That is neat, you completly reflect that attitude i was talking about. Awesome.
    Also, what FAQs? Could you point me in the direction of one? Or are you too snobbish to do so?

  14. #14
    ---
    Join Date
    May 2004
    Posts
    1,379

  15. #15
    Registered User
    Join Date
    Nov 2004
    Posts
    20

    Your right

    No one owes me anything huh? Yes, your right. And your attitude is what makes the world suck. The general population wont help you out, unless they OWE you something, or you give them CASH. I go into safeway every day, no one talks to me, says hi, says how is the weather, anything. But as SOON as i am handing money to the checkout person, he says "Oh, how are you? What has your day been like, etc." I notice when i pay for things with 100 dollar bills, the cashier immediatly brigtens up, and says, "Oh hi sir, how are you" and "Yes sir! Sir! Anything else? Would you like me to gift wrap that for you? Anything i can do for you?" And when i pay with a fiver, I dont get any of those responses. You cant ask someone that has your viewpoint for the TIME OF DAY, without a response such as "Hey man, i dont owe you anything." Get a grip man, the name of the game in life is about HELPING one another, not greed, and owing people. Anyone feel free to respond to this, please, and tell me im not the only one that feels that you dont have to OWE someone for someone to help. I helped the guy across the street, he is 78, with his groceries, I also take his trash out. I dont OWE him anything.

Page 1 of 2 12 LastLast
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