Packet mode pseudo terminals

Ask a Question related to UNIX Programming, Design and Development.

  1. #1

    Default Packet mode pseudo terminals

    Hi all,

    I've having a devil of a time trying to grok packet mode
    pseudo terms (ptys). I can push the pckt module on to
    the pty master OK, and I can read data using getmsg().
    I can even see ordinary text messages when control buffer
    is 0, indicating (to my understading at least), that an M_DATA
    message has been received. Printing the associated
    data buffer prints the text as normal.

    But when I'm trying to tickle the sort of behaviour packet
    mode is supposed to detect (by using the stty command in
    a program that runs a given command in a pty), the only
    non-data message types are 0x0e, which from <sys/stream.h>
    woudl seem to be M_IOCTL messages. This is the start of
    my confusion, according to Appendix C of the STREAMS
    Programming Guide (806-6546) (page 345 to be exact), I
    should be seeing an M_PROTO message. What gives?

    My goal is to write a program that uses packet mode ptys,
    and prints out the status changes it is notified of.

    OS is Solaris 9.

    Many TIA,

    --
    Rich Teer, SCNA, SCSA

    President,
    Rite Online Inc.

    Voice: +1 (250) 979-1638
    URL: [url]http://www.rite-online.net[/url]

    Rich Teer Guest

  2. Similar Questions and Discussions

    1. Very slow X performance on X terminals
      Hi, I am trying to set up some X terminals to run of a poweredge 1750 running redhat 9. The server is dual 2.4GHz w/4GB RAM and is on a Gigabit...
    2. TERMINALS ARE FREEZING
      Hello, I have a 43P running AIX 4.3.3 with three RANs attached to it. Recently the system is freezing selectively terminals and printer. I...
    3. virtual terminals
      Ok quick question, my girlfriend's system after installing a display manager (gdm, xdm, or kdm) only starts one virtual terminal. This was awhile...
    4. Is there a way to limit users to login to only one pseudo tty?
      I realize that you can restrict users to login to certain real ttys in the system. I have a customer that has a security problem. He has a Unix...
    5. X terminals (NOT emulators)
      I am proposing to a client a network consisting of two Debian hosts and from 7 to 12 X terminals. I am considering either converting their...
  3. #2

    Default Packet mode pseudo terminals

    Hi all,

    I've having a devil of a time trying to grok packet mode
    pseudo terms (ptys). I can push the pckt module on to
    the pty master OK, and I can read data using getmsg().
    I can even see ordinary text messages when control buffer
    is 0, indicating (to my understading at least), that an M_DATA
    message has been received. Printing the associated
    data buffer prints the text as normal.

    But when I'm trying to tickle the sort of behaviour packet
    mode is supposed to detect (by using the stty command in
    a program that runs a given command in a pty), the only
    non-data message types are 0x0e, which from <sys/stream.h>
    woudl seem to be M_IOCTL messages. This is the start of
    my confusion, according to Appendix C of the STREAMS
    Programming Guide (806-6546) (page 345 to be exact), I
    should be seeing an M_PROTO message. What gives?

    My goal is to write a program that uses packet mode ptys,
    and prints out the status changes it is notified of.

    OS is Solaris 9.

    Many TIA,

    --
    Rich Teer, SCNA, SCSA

    President,
    Rite Online Inc.

    Voice: +1 (250) 979-1638
    URL: [url]http://www.rite-online.net[/url]

    Rich Teer Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139