Creating input stream for a socket

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • swatibksh
    New Member
    • Dec 2007
    • 6

    #1

    Creating input stream for a socket

    can i create two input streams for a single socket ? and can it is possible to use those 2 streams simultaneously ?? can it be done using clone object ?
  • JosAH
    Recognized Expert MVP
    • Mar 2007
    • 11453

    #2
    Originally posted by swatibksh
    can i create two input streams for a single socket ? and can it is possible to use those 2 streams simultaneously ?? can it be done using clone object ?
    Not really because once a byte has been read from a socket (through its
    created inputstream) it can't be read again. You have to write your own class
    for that (which can be fun).

    kind regards,

    Jos

    Comment

    • BigDaddyLH
      Recognized Expert Top Contributor
      • Dec 2007
      • 1216

      #3
      Please describe what you are trying to do, and why.

      Comment

      Working...