Thread View: comp.client-server
1 messages
1 total messages
Started by Damon Chaplin
Mon, 11 Jan 1993 14:39
Using sockets & X Windows
Author: Damon Chaplin
Date: Mon, 11 Jan 1993 14:39
Date: Mon, 11 Jan 1993 14:39
20 lines
1267 bytes
1267 bytes
I'm trying to write a client/server application using X windows & sockets, but I'm finding it a bit confusing. Can anyone give me a description of how it should all fit together, or point me to a good reference? At present my server loops around an accept() call, processing requests from the clients. The clients create a socket for any messages from the server, then connect to the server and 'log on' - telling it the port to send any messages to. After this, the clients connect to the server for each request, and it is also occasionally necessary for the server to broadcast certain messages to all clients. Do I have to worry about deadlocks, or interrupts? If the clients receive messages from the server, how do they store it? (If it's in a SIGIO interrupt, can you use malloc() ?) Any help would be appreciated. Damon Chaplin
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads