home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / sgi / 13233 < prev    next >
Encoding:
Text File  |  1992-09-03  |  1022 b   |  25 lines

  1. Newsgroups: comp.sys.sgi
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!rpi!batcomputer!ghost.dsi.unimi.it!itnsg1.cineca.it!root
  3. From: root@itnsg1.cineca.it (Valter Cavecchia)
  4. Subject: sockets problem
  5. Message-ID: <1992Sep3.104656.6833@itnsg1.cineca.it>
  6. Organization: Laboratorio di Fisica Computazionale, INFM. Trento Italia
  7. Date: Thu, 3 Sep 1992 10:46:56 GMT
  8. Lines: 15
  9.  
  10. I'm trying to write two simple communication programs using internet sockets,
  11. a client and a server that simply need to exchange some data.
  12. I'm not a communication expert and used as skeleton the two programs
  13. accept.c and connect.c that come with 4Dgifts.
  14. I found the following problem:
  15.  
  16. I start client on machine A and server on machine B, everything works well
  17. and the two programs exchange the data.
  18. After that I retry the same thing and errors happen (garbage and so on).
  19.  
  20. I suppose that I need to synchronize the sockets (or something like that).
  21.  
  22. Is there anyone that may have some suggestions about this problem?
  23. Thanks a lot in advance,
  24.     valter
  25.