Professional Web Applications Themes

Packet mode pseudo terminals - UNIX Programming

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 ...

  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. #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

Similar Threads

  1. Not sure how to create a pseudo-slide show
    By Duker10 in forum Macromedia Dynamic HTML
    Replies: 2
    Last Post: November 7th, 09:48 PM
  2. Very slow X performance on X terminals
    By Anand in forum Linux Setup, Configuration & Administration
    Replies: 7
    Last Post: September 26th, 12:28 AM
  3. TERMINALS ARE FREEZING
    By Ambiorix in forum AIX
    Replies: 0
    Last Post: August 18th, 11:07 PM
  4. virtual terminals
    By dm in forum Debian
    Replies: 4
    Last Post: July 31st, 10:27 PM
  5. X terminals (NOT emulators)
    By Leandro Guimar„es Faria Corsetti Dutra in forum Debian
    Replies: 1
    Last Post: July 14th, 11:30 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not 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