Results 1 to 9 of 9

Thread: Internet / Network Data trasnfer

  1. #1

    Internet / Network Data trasnfer

    Hi

    I know absolutely nothing about how to code internet or network functions in games or applications currently. Basically what im wanting to do is transfer player coordinates between the server and client. Therefore the packet of data which would be sent would include only a few bits of information. How about would I do this using TCP/IP in delphi? Any links or code would be useful

    Once I have this sorted then I can use this system to detect whether the user has the current map (on my RPG), and if not download the new one and any images which the user requires... But that is something further down the line.

    Thanks

  2. #2

    Internet / Network Data trasnfer

    Let me re-phrase that...

    How can I send a simple string to someone over TCP/IP?

    Please

  3. #3

    Internet / Network Data trasnfer

    I'm not sure of what the best way to do it, but I've read this article on delphi.about.com which might answer your last post

    http://delphi.about.com/library/weekly/aa112602a.htm

    I haven't gotten as far as to test it yet though :twisted:

  4. #4

    Internet / Network Data trasnfer

    Thanks

    I had a go last night using the ClientSocket and ServerSocket components. At first I connected to myself and sent the X and Y of what I was doing to the server component using the OnClientRead()... I then tried it later remotely and it worked perfectly... although a little worry is that the data is only transmitted one way and not from the server to the user, and when the server tries to connect to the user a "Asynchronous Error 10061" is brought up.

    I think this may mean I need to send the data of what the server is doing through the OnClientWrite() proc... Anyway, my first test seems successful

  5. #5

    Internet / Network Data trasnfer

    For a good, easy to use socket component try using Francois Piettes ICS componets http://overbyte.delphicenter.com/frame_index.html.
    Do it by the book, but be the author!
    <br />
    <br />Visit the Lion Productions website at:
    <br />http://lionprod.f2o.org

  6. #6

    Internet / Network Data trasnfer

    I use a component set for all my networking, namely the Indy TCP Suite. Its pretty slimlined and has lots of useful features. I should get around to sorting my socket component, but for now, Indy

  7. #7

    Internet / Network Data trasnfer

    Downside of Indy (I think) is that it uses a blocking socket, while ICS uses a non-blocking socket... If you would ask both writers however which one is better they both would have their reasons why theirs is better, I think you have to go with what you prefer/need
    Do it by the book, but be the author!
    <br />
    <br />Visit the Lion Productions website at:
    <br />http://lionprod.f2o.org

  8. #8

    Internet / Network Data trasnfer

    What doing port ?

  9. #9

    Internet / Network Data trasnfer

    Ehm ... can you rephrase the question ?
    Do it by the book, but be the author!
    <br />
    <br />Visit the Lion Productions website at:
    <br />http://lionprod.f2o.org

Bookmarks

Posting Permissions

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