home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / os / vms / 22210 < prev    next >
Encoding:
Internet Message Format  |  1993-01-28  |  2.6 KB

  1. Path: sparky!uunet!news.univie.ac.at!fstgds15.tu-graz.ac.at!finwds01.tu-graz.ac.at!tom
  2. From: tom@finwds01.tu-graz.ac.at (Thomas Leitner)
  3. Newsgroups: comp.os.vms
  4. Subject: Three problems porting an app. to VMS/UCX.......
  5. Date: 28 Jan 1993 09:37:22 GMT
  6. Organization: Technical University Graz, Austria
  7. Lines: 49
  8. Distribution: world
  9. Message-ID: <1k89giINN52l@fstgds15.tu-graz.ac.at>
  10. NNTP-Posting-Host: finwds01.tu-graz.ac.at
  11.  
  12. Hello,
  13.  
  14. I recently ported my socket() based client-server application to
  15. VMS/UCX and experienced some peculiar things. I got three VAXen
  16. available for software development (I'm not the system manager,
  17. though) and my program behaves different on all three VAXen.
  18. The first two problems however are most likely UCX installation
  19. problems. Anyway: Here they go:
  20.  
  21. 1.) On one machine I can't even get a socket from the system,
  22.     although everything else (e.g. TELNET, FTP etc.) works. My
  23.     program aborts with:
  24.  
  25. %LIB-E-ACTIMAGE, error activating image FEDVZ$DKB200:[SYS0.][SYSLIB]UCX$ACCESS_S
  26. HR.EXE
  27. -SYSTEM-W-ACCONFLICT, file access conflict
  28. %TRACE-E-TRACEBACK, symbolic stack dump follows
  29. module name     routine name                     line       rel PC    abs PC
  30.  
  31.                                                            000437AE  000437AE
  32. C$SOCKHANDLES   init_ucx_socket                  2734      00000043  0000AC47
  33. C$SOCKET        vaxc$socket                      2914      0000002C  00007530
  34. CSLIBS          csl_startup_server               2006      0000001B  000027C7
  35. TSERVERS        main                             1273      0000002F  0000223F
  36.  
  37. This happens at the first socket call and the call fails. I'm not the system
  38. manager of this machine but what would he have to change to get this working.
  39.  
  40. 2.) On one machine, gethostbyname() can not resolve the host name even though
  41.     telnet and ftp work with the same host name. 
  42.  
  43. 3.) Finally on the machine where the above two things work I get another
  44.     peculiar behaviour: After the first client closes the connection, the 
  45.     the server shuts down and closes the socket. Then the server startup
  46.     routine is invoked to get a new socket, but the bind() call fails
  47.     with an
  48.  
  49.     #define EADDRINUSE      48              /* Address already in use */
  50.  
  51.     error. When I restart the server I get the same error. If I wait for
  52.     5 seconds or so and restart the server, it runs again.
  53.  
  54.     What am I doing wrong? The program worked under Ultrix and SunOS
  55.     without problems!!
  56.  
  57. I hope that these questions are not FAQs and appreciate if someone with
  58. any ideas or hints could drop me some lines.
  59.  
  60. Thanks and regards from Austria -- Tom Leitner, Technical University Graz
  61.