home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / clients / 267 < prev    next >
Encoding:
Internet Message Format  |  1993-01-11  |  1.2 KB

  1. Path: sparky!uunet!pipex!bnr.co.uk!uknet!mucs!lucs!damon
  2. From: damon@csc.liv.ac.uk (Damon Chaplin)
  3. Newsgroups: comp.client-server
  4. Subject: Using sockets & X Windows
  5. Message-ID: <C0p21E.DDy@compsci.liverpool.ac.uk>
  6. Date: 11 Jan 93 14:39:13 GMT
  7. Sender: news@compsci.liverpool.ac.uk (News Eater)
  8. Organization: Computer Science, Liverpool University
  9. Lines: 20
  10. Nntp-Posting-Host: tame.csc.liv.ac.uk
  11.  
  12. I'm trying to write a client/server application using X windows
  13. & sockets, but I'm finding it a bit confusing. Can anyone give
  14. me a description of how it should all fit together, or point
  15. me to a good reference?
  16.  
  17. At present my server loops around an accept() call, processing
  18. requests from the clients. The clients create a socket for any messages
  19. from the server, then connect to the server and 'log on' - telling it the
  20. port to send any messages to. After this, the clients connect to the server
  21. for each request, and it is also occasionally
  22. necessary for the server to broadcast certain messages to all clients.
  23.  
  24. Do I have to worry about deadlocks, or interrupts?
  25. If the clients receive messages from the server, how do they store it?
  26. (If it's in a SIGIO interrupt, can you use malloc() ?)
  27.  
  28.  
  29. Any help would be appreciated.
  30.  
  31. Damon Chaplin
  32.