home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!elroy.jpl.nasa.gov!ucla-cs!ucla-se!harpo.seas.ucla.edu!giao
- From: giao@harpo.seas.ucla.edu (Giao N. Tran)
- Newsgroups: comp.unix.questions
- Subject: socket problem on RS6000, HELP !.
- Message-ID: <7750@lee.SEAS.UCLA.EDU>
- Date: 31 Jul 92 18:31:51 GMT
- Sender: news@SEAS.UCLA.EDU
- Organization: School of Engineering and Applied Sciences, UCLA
- Lines: 40
-
-
- Greeting !.
-
- Would anyone please help me with this problem ?:
-
- Purpose:
- Communication using socket(Internet domain, TCP type)
- functions used:
- for server: socket(AF_NET, SOCK_STREAM, 0)
- bind();
- listen();
- accept();
- recvfrom();
- sendto();
-
- for client: socket(AF_NET, SOCK_STREAM, 0)
- connect();
- sendto();
- recvfrom();
-
- The data passed back and forth in the communicating are in form
- of some defined structures.
-
- Problem:
-
- The communication is perfect between PS/2's systems !.
- The same program is compiled on RS6000 and run as a client version,
- then the data received at the server (PS/2) is always incorrect.
-
- Question:
- 1/. Do sendto() and recvfrom() behave differently on RS6000 ?.
- 2/. The data on either end is checked before being sent, the
- correct data is sent but the wrong data is received, why ?
- 3/. Does the TCP socket type not take care of the errors during
- transmission ?.
-
-
- Any help/advice will be really appreciated.
-
- ----G.T.
-