How to communicate with NSSocketPort
How to communicate with NSSocketPort
- Subject: How to communicate with NSSocketPort
- From: Fei Li <email@hidden>
- Date: Thu, 30 Aug 2001 14:28:00 -0600
Hello all,
Though I read documentation for NSConnection and NSSocketPort, I'm still not
clear how I can send data between two port.
If the procedure is:
On server side:
1. create two NSSocketPort
2. create connection with these two port
3. vend an server object(what object can be sever object?
4. ...( I don't know how to send data between two ports)
On client side:
1. gets a vended object by creating a proxy
2. set protocol for proxy (how to create this protocol?)
3. ...(I don't know how to transfer data)
Maybe what I write above is not correct. I wonder if anyone can descripe the
procedure or give me a small example.
Thank so much!
Fei