Article View: comp.client-server
Article #201Using sockets & X Windows
From: 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
Technical Details
Message-ID:
<C0p21E.DDy@compsci.liverpool.ac.uk>Path:
arc1-ca.pugleaf.net!sparky!uunet!pipex!bnr.co.uk!uknet!mucs!lucs!damonShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!pipex!bnr.co.uk!uknet!mucs!lucs!damon From: damon@csc.liv.ac.uk (Damon Chaplin) Newsgroups: comp.client-server Subject: Using sockets & X Windows Message-ID: <C0p21E.DDy@compsci.liverpool.ac.uk> Date: 11 Jan 93 14:39:13 GMT Sender: news@compsci.liverpool.ac.uk (News Eater) Organization: Computer Science, Liverpool University Lines: 20 Nntp-Posting-Host: tame.csc.liv.ac.uk