login about faq

Does it matter if ChannelSendEof is done between ChannelSendString and ChannelReadAndPoll, or is it ok to put it after GetReceivedText? Here's our pseudocode:

OpenSessionChannel

SendReqPty

SendReqShell

ChannelSendString

ChannelReadAndPoll

GetReceivedText

ChannelSendEof

ChannelSendClose

Disconnect

asked Feb 28 '14 at 16:55

JeffR's gravatar image

JeffR
64

edited Feb 28 '14 at 16:56


It shouldn't matter. The ChannelSendEof can come right after the final ChannelSendString. The EOF indicates that no more data will be sent in that direction (from client to server). The channel remains open, and flow of data can still occur in the other direction (from server to client). When the client wishes to terminate the channel, it should call ChannelSendClose.

link

answered Mar 02 '14 at 21:40

chilkat's gravatar image

chilkat ♦♦
11.8k316358420

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×1

Asked: Feb 28 '14 at 16:55

Seen: 449 times

Last updated: Mar 02 '14 at 21:40

Related questions

powered by OSQA