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