Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ WriteCallback()

static void System.Net.CommandStream.WriteCallback ( IAsyncResult asyncResult)
inlinestaticprivateinherited

Definition at line 394 of file CommandStream.cs.

395 {
396 CommandStream commandStream = (CommandStream)asyncResult.AsyncState;
397 try
398 {
399 try
400 {
401 commandStream.EndWrite(asyncResult);
402 }
403 catch (IOException)
404 {
405 commandStream.MarkAsRecoverableFailure();
406 throw;
407 }
408 catch
409 {
410 throw;
411 }
412 Stream stream = null;
413 if (!commandStream.PostSendCommandProcessing(ref stream))
414 {
415 commandStream.ContinueCommandPipeline();
416 }
417 }
418 catch (Exception e)
419 {
420 commandStream.Abort(e);
421 }
422 }
CommandStream(TcpClient client)

References System.Net.CommandStream.CommandStream(), System.Net.CommandStream.Abort(), System.asyncResult, System.Net.CommandStream.ContinueCommandPipeline(), System.Net.NetworkStreamWrapper.EndWrite(), System.Net.CommandStream.MarkAsRecoverableFailure(), System.Net.CommandStream.PostSendCommandProcessing(), and System.stream.