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