Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Multiple Socket "proxy?"

Status
Not open for further replies.

PaulFynch

IS-IT--Management
May 23, 2002
105
CA
OK gurus...
I want to basically ask you guys if this is "doable". I'm sure it is. but I'm lost.

I have a class from flumpcakes.co.uk called MSN Messenger Class. Basically this connects to the MSN notification server, then the switchboard to handle messages.


Then I have modified a simple php socket server to handle an incoming connection from a flash client, and, after a simple authorization, i call a function from the MSN class.

So I know this is wrong, I'm just kinda hacking things together here.

What's happening is the simple socket server that handles the flash client (and returns data to the flash client) stops at the MSN class function (used to start the whole MSN connection and listen for MSGs) because the MSN class function enters it's own (while) loop to handle incoming and outgoing data from the MSN switchboard.

I can receive messages from the MSN notification server still, because I am in that loop, but I lose the ability to receive messages from the flash client, and pass them along, so to speak.

Basically I am trying to create a proxy or gateway from my flash client to the msn switchboard server.

What would be the proper way to do this?

Here are the files I am using:
My simple socket server << I added dummy login info (cuz you can't have mine ;)

MSN Messenger Class Zip

I am running the socket server from the CLI on a Unix host, if you think it matters.

Thanks for you help!

Cheers!
paulfynch


"If you build it....it won't work the first time.....or the second ;)
 
-bump-
Hey all,

I have posted the topic here as well if anyone cares to follow the thread.

Basically, now, I am trying to find out if I can initiate one listening socket, and an outgoing connection, and handle them with [blue]socket_select[/blue] or something similar.

Thanks for looking, let me know if you have any thoughts.

Cheers
pf

"If you build it....it won't work the first time.....or the second ;)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top