Results 1 to 2 of 2

Thread: Asyncronous Socket or TcpListener - DON'T disconnect clients

  1. #1

    Thread Starter
    Junior Member specular's Avatar
    Join Date
    Jan 2005
    Location
    Earth....I'm told...
    Posts
    26

    Asyncronous Socket or TcpListener - DON'T disconnect clients

    Howdy fellas

    Having a wee bit of trouble with this. Basically it's a socket server that sends and recieves data to and from macromedia Flash. I already have it successfully sending and receiving the data but the problem is that immediately after it sends the data back to Flash, it closes the connection. This wouldn't be bad if it was only going to be for one person, but what I need it to do is receive the data, and "broadcast" that data to every client connected at that point in time. But since it keeps disconnecting after sending the data, theoretically only one person would be connected at a time and the data would only be sent to that connected client.

    I am 95% sure that most of the problem lies in the "EndAccept(ar)", in the socket version, or in the "EndAcceptTcpClient(ar)", in the TcpListener version.

    Is there any way to have an Asyncronous socket accept a connection from a certain amount of people but not disconnect them until they send the command to disconnect??

    I'll post my code if you ask, I just don't want to post it now cause I'm working on it and it might change since now But don't laugh at it...I'm sort of a nOOb

    Thanks,

    Eric

  2. #2

    Thread Starter
    Junior Member specular's Avatar
    Join Date
    Jan 2005
    Location
    Earth....I'm told...
    Posts
    26

    Re: Asyncronous Socket or TcpListener - DON'T disconnect clients

    bump...

    Anybody got any ideas?? Please...

    Thank you

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