home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.sun.apps
- 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
- From: ahoekstr@cs.utwente.nl (Andre D. Hoekstra)
- Subject: t_open/t_bind diffs between 4.1.1 and 4.1.2+?
- Message-ID: <1993Jan28.152701.25670@cs.utwente.nl>
- Followup-To: poster
- Sender: usenet@cs.utwente.nl
- Nntp-Posting-Host: rijn
- Organization: Twente University, Dept. WB/WA (NOT cs)
- Date: Thu, 28 Jan 1993 15:27:01 GMT
- Lines: 62
-
-
- **Please reply by e-mail to ahoekstr@cs.utwente.nl
- **or else I will miss your very valuable answer
-
- I have a problem with the (TLI) protocol support in SunOS 4.1.2 and up.
- The program below gives the desired output on machines running 4.1.1,
- but not on machines running 4.1.[23].
-
- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
- #include <tiuser.h>
- #include <fcntl.h>
- #include <stdio.h>
-
- int main()
- {
-
- char *path;
- int oflag, tcpfd;
- struct t_info info;
-
- if ((tcpfd=t_open("/dev/tcp",O_RDWR, &info)) < 0) {
- t_error("t_open failed");
- exit(1);
- }
- else printf("Service type: %d\n",info.servtype);
-
- /******* from `man t_open` info.servtype can have values:
- T_COTS The transport provider supports a
- connection-mode service but does not support
- the optional orderly release facility.
-
- T_COTS_ORD The transport provider supports a
- connection-mode service with the optional
- orderly release facility.
-
- T_CLTS The transport provider supports a
- connectionless-mode service. For this ser-
- vice type, t_open() will return -2 for etsdu,
- connect, and discon.
-
- These values are 1, 2, and 3 respectively (from tiuser.h)
- *******/
-
- return 0;
- }
- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
-
- Now when I run this program on Sun3 or Sun4 machines running 4.1.1 I get
- servtype==2, but when I run this on machines with 4.1.2 or 4.1.3 I get
- servtype==1. Of course I have a program that needs T_COTS_ORD...
-
- - Is there a change in the tcp-protocol support from 4.1.1 to 4.1.2?
- - Is there a way to have the 4.1.[23] machines support T_COTS_ORD?
- By kernel-configuration? Software-installation? Patch?
-
- Thanks in advance, but remember: please reply by e-mail
- Thanks again,
-
- Andre--
- --
- There is no reason for any individual to have a computer in | Andre Hoekstra
- their home. (Ken Olson, Ex-President Digital Equipment, 1977) | Enschede -- NL
-