![]() |
|
#1
|
||||
|
||||
Basic UNIX IPC and BSD SocketsI wrote a proxy a few weeks ago for an app I use frequently where the client connects to the proxy and the proxy connects to the server.
What im trying to do is make the proxy get the server data then launch the client which will connect to the proxy. CPP / C++ / C Code:
it looks like it connects but then crashes imediately... Any suggestions? |
||||
|
#2
|
|||
|
|||
|
Hello Chris,
You can block in child process till Server has finish fetching data in Parent process. Once server is finished fetching data, it can send a signal to child process via IPC which can then connect to server. Check out IPC Message queues. You can exchange messages between any two different process using message queues. There are other methods as well but I prefer message queues. Cause it allows me to send any type of data (such as my own data structure) via message queue. Following link will give you a headstart in message queue. http://www.ecst.csuchico.edu/~beej/guide/ipc/ Thanks, |
Recent GIDBlog
Problems with the Navy (Chiefs) by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Basic information about web hosting world | priyanka | Web Hosting Forum | 19 | 12-Mar-2005 11:14 |
| .o compile UNIX stuff ... help please! | crq | C++ Forum | 5 | 28-Jan-2005 08:43 |
| Access database and Visual basic programming | confused_pig | C++ Forum | 0 | 11-Jan-2005 19:59 |
| Which platform- NT or Unix? | priyanka | Web Hosting Forum | 2 | 16-Feb-2004 08:54 |
| Useful SSH / Unix commands | JdS | Web Hosting Forum | 4 | 17-Jan-2003 16:20 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The