|
-
Jan 15th, 2005, 05:47 PM
#1
Thread Starter
Junior Member
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|