home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / sys / sun / apps / 3130 < prev    next >
Encoding:
Text File  |  1993-01-28  |  2.6 KB  |  75 lines

  1. Newsgroups: comp.sys.sun.apps
  2. Path: sparky!uunet!ferkel.ucsb.edu!taco!gatech!paladin.american.edu!howland.reston.ans.net!spool.mu.edu!yale.edu!ira.uka.de!math.fu-berlin.de!news.netmbx.de!Germany.EU.net!mcsun!sun4nl!utrcu1!infnews!ahoekstr
  3. From: ahoekstr@cs.utwente.nl (Andre D. Hoekstra)
  4. Subject:  t_open/t_bind diffs between 4.1.1 and 4.1.2+?
  5. Message-ID: <1993Jan28.152701.25670@cs.utwente.nl>
  6. Followup-To: poster
  7. Sender: usenet@cs.utwente.nl
  8. Nntp-Posting-Host: rijn
  9. Organization: Twente University, Dept. WB/WA (NOT cs)
  10. Date: Thu, 28 Jan 1993 15:27:01 GMT
  11. Lines: 62
  12.  
  13.  
  14. **Please reply by e-mail to ahoekstr@cs.utwente.nl 
  15. **or else I will miss your very valuable answer
  16.  
  17. I have a problem with the (TLI) protocol support in SunOS 4.1.2 and up.
  18. The program below gives the desired output on machines running 4.1.1,
  19. but not on machines running 4.1.[23].
  20.  
  21. +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  22. #include <tiuser.h>
  23. #include <fcntl.h>
  24. #include <stdio.h>
  25.  
  26. int main()
  27. {
  28.  
  29.      char *path;
  30.      int oflag, tcpfd;
  31.      struct t_info info;
  32.  
  33.      if ((tcpfd=t_open("/dev/tcp",O_RDWR, &info)) < 0) {
  34.         t_error("t_open failed");
  35.         exit(1);
  36.      }
  37.      else printf("Service type: %d\n",info.servtype);
  38.  
  39. /******* from `man t_open` info.servtype can have values:
  40.      T_COTS         The    transport    provider    supports    a
  41.                     connection-mode  service but does not support
  42.                     the optional orderly release facility.
  43.  
  44.      T_COTS_ORD     The    transport    provider    supports    a
  45.                     connection-mode  service  with  the  optional
  46.                     orderly release facility.
  47.  
  48.      T_CLTS         The    transport    provider    supports    a
  49.                     connectionless-mode  service.   For this ser-
  50.                     vice type, t_open() will return -2 for etsdu,
  51.                     connect, and discon.
  52.  
  53. These values are 1, 2, and 3 respectively (from tiuser.h)
  54. *******/
  55.  
  56.      return 0;
  57. }
  58. +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  59.  
  60. Now when I run this program on Sun3 or Sun4 machines running 4.1.1 I get
  61. servtype==2, but when I run this on machines with 4.1.2 or 4.1.3 I get
  62. servtype==1. Of course I have a program that needs T_COTS_ORD...
  63.  
  64.  - Is there a change in the tcp-protocol support from 4.1.1 to 4.1.2?
  65.  - Is there a way to have the 4.1.[23] machines support T_COTS_ORD?
  66.    By kernel-configuration? Software-installation? Patch?
  67.  
  68. Thanks in advance, but remember: please reply by e-mail
  69. Thanks again,
  70.  
  71. Andre--
  72. -- 
  73. There is no reason for any individual to have a computer in    | Andre Hoekstra
  74. their home. (Ken Olson, Ex-President Digital Equipment, 1977)  | Enschede -- NL
  75.