Operating System - Tru64 Unix
1753631 Members
5958 Online
108798 Solutions
New Discussion

Re: TRU64 v4.0b write socket error

 
hamedkkkk
New Member

TRU64 v4.0b write socket error

hi,

I need to run a server application on a TRU64 v4.0b

I was run this app on a real DEC Alphaserver 2000 correctly, but i need to migration Stromasys CHARON-AXP 

on new machine I forced to recompile kernel to start my machine

My Unix started up correctly but when i run my spesial application in the app i get "socket is not be opened or                           was already closed " and closed app.

-----------------------

for test I going to "http://www.cs.rpi.edu/~moorthy/Courses/os98/Pgms/socket.html"

and get "http://www.cs.rpi.edu/~moorthy/Courses/os98/Pgms/server.c"

 after that i compile this app on my TRU64 v4.0b and I get this error: "ERROR, no port provided"

 

1 REPLY 1
Steven Schweda
Honored Contributor

Re: TRU64 v4.0b write socket error

> [...] TRU64 v4.0b

   That's older than anyting I have, but ...

> I was run this app on a real DEC Alphaserver 2000 correctly, [...]

> after that i compile this app on my TRU64 v4.0b and I get this error:

   As usual, showing actual commands with their actual output can be
more helpful than vague descriptions or interpretations.

> "ERROR, no port provided"

   Did you look at the program?

>      if (argc < 2) {
>          fprintf(stderr,"ERROR, no port provided\n");
>          exit(1);
>      }

   If you don't specify a port number on your (invisible) command line,
then you can expect to get this message.

   On my handy Mac, I got fewer warnings if I added these:

#include <stdlib.h>
#include <unistd.h>
#include <strings.h>

I haven't tried it on a Tru64 (V5.1B) system, but I'd expect similar
results there.

   If you still have trouble when you specify a port number when you run
the program, then ask again (with a better problem description).


> [...] when i run my spesial application in the app i get "socket is
> not be opened or was already closed " and closed app.

   With my weak psychic powers, I can't see your special application
code, so I have no idea what's wrong there.