Re: Message-passing via local ports

new topic     » goto parent     » topic index » view thread      » older message » newer message
GreenEuphorian said...

In particular, do you expect any difficulties with having different programs exchange messages via local ports?

You can simulate events with tasks.e doing polling (The actual shared data var will be filled up transparently to the main program) : create some shared variable as a flag that says "data is here!", or maybe one that says "i just got x bytes of data!", let a task poll that variable. Because the variable is (or can be) shared in both directions, resetting it in the main program can change the state in the aux program. Handshaking. Else, cache number, or hdd filename. In sending and recieving large files to/from Mirc to/from anywhere else, i used winsock's buffers, the favorable side effect being effectively a task_yield, allowing other code to run.

Kat

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu