@@ -180,7 +180,7 @@ public static int ReadPartial(Socket socket, byte[] buffer, int offset, int size
180180 receiveCompleted . Dispose ( ) ;
181181 }
182182#else
183- #error Receiving data from a Socket is not implemented.
183+ #error Receiving data from a Socket is not implemented.
184184#endif
185185 }
186186
@@ -242,7 +242,7 @@ public static void ReadContinuous(Socket socket, byte[] buffer, int offset, int
242242 if ( readToken . Exception != null )
243243 throw readToken . Exception ;
244244#else
245- #error Receiving data from a Socket is not implemented.
245+ #error Receiving data from a Socket is not implemented.
246246#endif
247247 }
248248
@@ -407,11 +407,10 @@ public static void Send(Socket socket, byte[] data, int offset, int size)
407407 {
408408 try
409409 {
410- var bytesSent = socket . Send ( data , offset + totalBytesSent , totalBytesToSend - totalBytesSent ,
411- SocketFlags . None ) ;
410+ var bytesSent = socket . Send ( data , offset + totalBytesSent , totalBytesToSend - totalBytesSent , SocketFlags . None ) ;
412411 if ( bytesSent == 0 )
413412 throw new SshConnectionException ( "An established connection was aborted by the server." ,
414- DisconnectReason . ConnectionLost ) ;
413+ DisconnectReason . ConnectionLost ) ;
415414
416415 totalBytesSent += bytesSent ;
417416 }
@@ -430,10 +429,10 @@ public static void Send(Socket socket, byte[] data, int offset, int size)
430429 var sendCompleted = new ManualResetEvent ( false ) ;
431430 var sendReceiveToken = new BlockingSendReceiveToken ( socket , data , offset , size , sendCompleted ) ;
432431 var socketAsyncSendArgs = new SocketAsyncEventArgs
433- {
434- RemoteEndPoint = socket . RemoteEndPoint ,
435- UserToken = sendReceiveToken
436- } ;
432+ {
433+ RemoteEndPoint = socket . RemoteEndPoint ,
434+ UserToken = sendReceiveToken
435+ } ;
437436 socketAsyncSendArgs . SetBuffer ( data , offset , size ) ;
438437 socketAsyncSendArgs . Completed += SendCompleted ;
439438
@@ -450,7 +449,7 @@ public static void Send(Socket socket, byte[] data, int offset, int size)
450449
451450 if ( sendReceiveToken . TotalBytesTransferred == 0 )
452451 throw new SshConnectionException ( "An established connection was aborted by the server." ,
453- DisconnectReason . ConnectionLost ) ;
452+ DisconnectReason . ConnectionLost ) ;
454453 }
455454 finally
456455 {
@@ -460,7 +459,7 @@ public static void Send(Socket socket, byte[] data, int offset, int size)
460459 sendCompleted . Dispose ( ) ;
461460 }
462461#else
463- #error Sending data to a Socket is not implemented.
462+ #error Sending data to a Socket is not implemented.
464463#endif
465464 }
466465
0 commit comments