home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / unix / question / 9642 < prev    next >
Encoding:
Internet Message Format  |  1992-07-31  |  1.6 KB

  1. Path: sparky!uunet!elroy.jpl.nasa.gov!ucla-cs!ucla-se!harpo.seas.ucla.edu!giao
  2. From: giao@harpo.seas.ucla.edu (Giao N. Tran)
  3. Newsgroups: comp.unix.questions
  4. Subject: socket problem on RS6000, HELP !.
  5. Message-ID: <7750@lee.SEAS.UCLA.EDU>
  6. Date: 31 Jul 92 18:31:51 GMT
  7. Sender: news@SEAS.UCLA.EDU
  8. Organization: School of Engineering and Applied Sciences, UCLA
  9. Lines: 40
  10.  
  11.  
  12. Greeting !.
  13.  
  14. Would anyone please help me with this problem ?:
  15.  
  16.  Purpose:  
  17.         Communication using socket(Internet domain, TCP type)
  18.         functions used:  
  19.            for server:  socket(AF_NET, SOCK_STREAM, 0)
  20.                         bind();
  21.                         listen();
  22.                         accept();
  23.                         recvfrom();
  24.                         sendto();
  25.  
  26.            for client:  socket(AF_NET, SOCK_STREAM, 0)
  27.                         connect();
  28.                         sendto();
  29.                         recvfrom();
  30.  
  31.         The data passed back and forth in the communicating are in form
  32.         of some defined structures.
  33.  
  34.   Problem:
  35.  
  36.         The communication is perfect between PS/2's systems !.
  37.         The same program is compiled on RS6000 and run as a client version,
  38.         then the data received at the server (PS/2) is always incorrect.
  39.  
  40.   Question:
  41.         1/.  Do sendto() and recvfrom() behave differently on RS6000 ?.
  42.         2/.  The data on either end is checked before being sent, the
  43.              correct data is sent but the wrong data is received, why ?
  44.         3/.  Does the TCP socket type not take care of the errors during
  45.              transmission ?.
  46.  
  47.  
  48.   Any help/advice will be really appreciated.
  49.  
  50. ----G.T.
  51.