Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
* Sockets in Ultrix
@ 1995-08-15  4:00 Ana Maria Santos
  1995-08-15  4:00 ` Ron Natalie
  0 siblings, 1 reply; 2+ messages in thread
From: Ana Maria Santos @ 1995-08-15  4:00 UTC (permalink / raw)



------------------------------------------------------------------------------
Resume:
 
  Does an HP sockets aplication need changes to run on a DEC with Ultrix?
       If so, where can I get more info on that changes?
------------------------------------------------------------------------------


Hello

I'm new on sockets subject and I just have to design a aplication to make two
machines communicate with sockets. I've managed to do that on one of them
(HP715) but I'm having troubles on running that programs (the server and the
client)  on a DEC  station  8-(.  I only know that is  running on ULTRIX
V4.2A (Rev.  47).

Do I need to make some changes on the program since it is a diferent machine?

Can anyone help me?...

I would be very gratefull,
thanks.
     Ana


OH! I forgot to tell one thing, one of the errors when I put the server and
try to run the client on the same DEC machine is "Connection reset by peer"
(given by the server program), and when I put the server on the DEC and the
client on the HP, the client gives "Connection refused".

Hope this helps to find what am I doing wrong... 8-((




^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Sockets in Ultrix
  1995-08-15  4:00 Sockets in Ultrix Ana Maria Santos
@ 1995-08-15  4:00 ` Ron Natalie
  0 siblings, 0 replies; 2+ messages in thread
From: Ron Natalie @ 1995-08-15  4:00 UTC (permalink / raw)


Ana Maria Santos (ana@news.ci.ua.pt) wrote:

: Resume:
:  
:   Does an HP sockets aplication need changes to run on a DEC with Ultrix?
:        If so, where can I get more info on that changes?

If it was properly written a sockets application will be portable from
one machine to another.  However, it's quite possible that you missed
a key thing in your applicatoin.  Note that whenever you deal with a
number (short or int) in the network context, it needs to be converted
to network byte order and back.  Now on the HP this is a No op because
the defined network byte order is MSBfirst.  On the DEC machines (and
Intel) the byte order is the other way around and the functions are NOT
noops and need to be included.

Look up the man page to ntohs, htons...




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1995-08-15  4:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1995-08-15  4:00 Sockets in Ultrix Ana Maria Santos
1995-08-15  4:00 ` Ron Natalie

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox