Results 1 to 5 of 5

Thread: Winsock

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2000
    Posts
    355

    Post

    ok, we (cintel) can use winsock, and have it working in a chat program..
    but we're using it in our game, and no matter what we do, something is going wrong, and the data isnt sent properly.
    is there a "maximum speed" for winsock - is it possible the buffer is being overfilled or something?
    the game doesnt crash, its just no data seems to be sending.
    help needed!
    buzzwords are the language of fools

  2. #2
    Guest

    Post

    only limitation i know is that you can only hold 49 connections with the winsock ocx.

    what protocoll you are using ? udp or tcp/ip ?

    taLON

  3. #3
    Addicted Member
    Join Date
    Oct 1999
    Location
    Oporto, Portugal
    Posts
    134

    Post

    I had a problem using winsock that was when I sent two "messages" in two consecutive code lines it arrived in the server in one same getdata.
    I had to split the data into to strings.


    Jorge Ledo
    [email protected]
    Portugal were the sun allways shine... for programmers.

  4. #4
    Guest

    Post

    Why not using a trick with a bof and a eof

    example:

    Client will send two scripts strings to the server.

    string1 = "BOF|checkdata|EOF|" 'client will send now
    string2 = "BOF|checktime|EOF|" 'client will send now

    the server will get the data.

    string = "BOF|checkdata|EOF|BOF|checktime|EOF|"

    and now you can split the string and you can see now if it is 1 string or 2 ext. feel creative with it.

    this is just a fast example

    -kayoca

  5. #5

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2000
    Posts
    355

    Post

    yeah we're doing that already - parsing the strings.
    we're using tcp/ip
    it might work now, because there was a bug before
    buzzwords are the language of fools

Posting Permissions

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



Click Here to Expand Forum to Full Width