2
0

ChannelDirectTcpip.NET35.cs 514 B

1234567891011121314151617181920
  1. using System.Net.Sockets;
  2. namespace Renci.SshNet.Channels
  3. {
  4. /// <summary>
  5. /// Implements "direct-tcpip" SSH channel.
  6. /// </summary>
  7. internal partial class ChannelDirectTcpip
  8. {
  9. partial void InternalSocketReceive(byte[] buffer, ref int read)
  10. {
  11. read = this._socket.Receive(buffer);
  12. }
  13. partial void InternalSocketSend(byte[] data)
  14. {
  15. this._socket.Send(data, 0, data.Length, SocketFlags.None);
  16. }
  17. }
  18. }