Send() public méthode

public Send ( byte data, int offset, int length, SocketFlags flags ) : int
data byte
offset int
length int
flags SocketFlags
Résultat int
Exemple #1
0
 public void OnData(byte[] data, int offset, int length)
 {
     //Debug.WriteLine(String.Format("OnSSHData ch={0} len={1}", _channel.LocalChannelID, length));
     if (!_socket.ShuttedDownSend)
     {
         _socket.Send(data, offset, length, SocketFlags.None);
     }
 }
Exemple #2
0
 public override void OnData(DataFragment data)
 {
     //Debug.WriteLine(String.Format("OnSSHData ch={0} len={1}", _channel.LocalChannelID, length));
     if (!_socket.ShuttedDownSend)
     {
         _socket.Send(data.Data, data.Offset, data.Length, SocketFlags.None);
     }
 }