From: Rich M. <jp...@gm...> - 2011-01-19 15:01:58
|
> -----Original Message----- > From: pablis [mailto:pau...@ho...] > Sent: Wednesday, January 19, 2011 6:04 AM > To: pla...@li... > Subject: Re: [Playerstage-users] PlayerTCP > > > Hi all, > > Been working on this for a day now and I've found out the following: > > When using PlayerTCP, the only way I can seem to get a connection is to > issue a Listen(7000) on port 7000, for example, then issue an > Accept(10000), > for example. Then, using telnet, open a connection with the localhost > on > port 7000. The Accept() function of PlayerTCP (in my program) then > connects > to telnet ok. However, I cannot get the QueuePointer for the connection > which AddClient (in Accept) returns ! I've looked at the PlayerTCP cc > file > only to find that Accept does not return the QueuePointer ! What's the > point > in that? Still trying :confused: ... > > Thanks, > Paul. Accept() calls AddClient(), which creates the queue pointer for the client and stores it in the PlayerTCP class-level "clients" array (this->clients[j]->queue). You should be able to retrieve it from there. I'm curious as to what you're trying to accomplish here, are you trying to make your own Player server? Is there any reason you can't use the playerc/playerc++ client libraries to do what you want? Rich |