public virtual void close() { #line 57 "/opt/haxe/std/cs/_std/sys/net/Socket.hx" this.sock.Close(); this.input = null; #line 59 "/opt/haxe/std/cs/_std/sys/net/Socket.hx" this.output = null; }
public virtual void close() { #line 57 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\sys\\net\\Socket.hx" this.sock.Close(); this.input = null; #line 59 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\sys\\net\\Socket.hx" this.output = null; }
public static void __hx_ctor_haxe_io_Output(global::haxe.io.Output __temp_me284) { unchecked { { } } }
public override object __hx_setField(string field, int hash, object @value, bool handleProperties) { unchecked { #line 42 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\sys\\net\\Socket.hx" switch (hash) { case 1066567601: { #line 42 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\sys\\net\\Socket.hx" this.custom = ((object)(@value)); #line 42 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\sys\\net\\Socket.hx" return(@value); } case 209784577: { #line 42 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\sys\\net\\Socket.hx" this.output = ((global::haxe.io.Output)(@value)); #line 42 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\sys\\net\\Socket.hx" return(@value); } case 1042138122: { #line 42 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\sys\\net\\Socket.hx" this.input = ((global::haxe.io.Input)(@value)); #line 42 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\sys\\net\\Socket.hx" return(@value); } case 1280842308: { #line 42 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\sys\\net\\Socket.hx" this.sock = ((global::System.Net.Sockets.Socket)(@value)); #line 42 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\sys\\net\\Socket.hx" return(@value); } default: { #line 42 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\sys\\net\\Socket.hx" return(base.__hx_setField(field, hash, @value, handleProperties)); } } } #line default }
public override object __hx_setField(string field, int hash, object @value, bool handleProperties) { unchecked { #line 32 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\sys\\io\\Process.hx" switch (hash) { case 572311959: { #line 32 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\sys\\io\\Process.hx" this.native = ((global::System.Diagnostics.Process)(@value)); #line 32 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\sys\\io\\Process.hx" return(@value); } case 68006728: { #line 32 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\sys\\io\\Process.hx" this.stdin = ((global::haxe.io.Output)(@value)); #line 32 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\sys\\io\\Process.hx" return(@value); } case 132916898: { #line 32 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\sys\\io\\Process.hx" this.stderr = ((global::haxe.io.Input)(@value)); #line 32 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\sys\\io\\Process.hx" return(@value); } case 133414859: { #line 32 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\sys\\io\\Process.hx" this.stdout = ((global::haxe.io.Input)(@value)); #line 32 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\sys\\io\\Process.hx" return(@value); } default: { #line 32 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\sys\\io\\Process.hx" return(base.__hx_setField(field, hash, @value, handleProperties)); } } } #line default }
public virtual void connect(global::sys.net.Host host, int port) { #line 71 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\sys\\net\\Socket.hx" this.sock.Connect(((global::System.Net.IPAddress)(host.ipAddress)), ((int)(port))); if (this.sock.Connected) { #line 73 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\sys\\net\\Socket.hx" this.output = new global::cs.io.NativeOutput(((global::System.IO.Stream)(new global::System.Net.Sockets.NetworkStream(this.sock)))); this.input = new global::cs.io.NativeInput(((global::System.IO.Stream)(new global::System.Net.Sockets.NetworkStream(this.sock)))); } else { #line 76 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\sys\\net\\Socket.hx" throw global::haxe.lang.HaxeException.wrap("Connection failed."); } }
public virtual void connect(global::sys.net.Host host, int port) { #line 71 "/opt/haxe/std/cs/_std/sys/net/Socket.hx" this.sock.Connect(((global::System.Net.IPAddress)(host.ipAddress)), ((int)(port))); if (this.sock.Connected) { #line 73 "/opt/haxe/std/cs/_std/sys/net/Socket.hx" this.output = new global::cs.io.NativeOutput(((global::System.IO.Stream)(new global::System.Net.Sockets.NetworkStream(this.sock)))); this.input = new global::cs.io.NativeInput(((global::System.IO.Stream)(new global::System.Net.Sockets.NetworkStream(this.sock)))); } else { #line 76 "/opt/haxe/std/cs/_std/sys/net/Socket.hx" throw ((global::System.Exception)(global::haxe.Exception.thrown("Connection failed."))); } }
public static void writeAsString(global::haxe.io.Output output, object @value) { unchecked { string text = default(string); if ((@value is string)) { text = global::haxe.lang.Runtime.toString(@value); } else { text = global::Std.@string(@value); } output.writeString(text); } }
public override object __hx_setField(string field, int hash, object @value, bool handleProperties) { unchecked { switch (hash) { case 111: { this.o = ((global::haxe.io.Output)(@value)); return(@value); } default: { return(base.__hx_setField(field, hash, @value, handleProperties)); } } } }
public static int command(string cmd, global::Array <string> args) { #line 106 "/opt/haxe/std/cs/_std/Sys.hx" global::System.Diagnostics.Process proc = global::sys.io.Process.createNativeProcess(cmd, args); global::System.Diagnostics.DataReceivedEventHandler this1 = ((global::System.Diagnostics.DataReceivedEventHandler)((((global::Sys_command_107__Fun.__hx_current != null)) ? (global::Sys_command_107__Fun.__hx_current) : (global::Sys_command_107__Fun.__hx_current = ((global::Sys_command_107__Fun)(new global::Sys_command_107__Fun())))).Delegate)); proc.OutputDataReceived += ((global::System.Diagnostics.DataReceivedEventHandler)(this1)); #line 112 "/opt/haxe/std/cs/_std/Sys.hx" global::haxe.io.Output stderr = ((global::haxe.io.Output)(new global::cs.io.NativeOutput(((global::System.IO.Stream)(global::System.Console.OpenStandardError()))))); global::System.Diagnostics.DataReceivedEventHandler this2 = ((global::System.Diagnostics.DataReceivedEventHandler)(new global::Sys_command_113__Fun(stderr).Delegate)); proc.ErrorDataReceived += ((global::System.Diagnostics.DataReceivedEventHandler)(this2)); #line 118 "/opt/haxe/std/cs/_std/Sys.hx" proc.Start(); proc.BeginOutputReadLine(); #line 120 "/opt/haxe/std/cs/_std/Sys.hx" proc.BeginErrorReadLine(); proc.WaitForExit(); #line 122 "/opt/haxe/std/cs/_std/Sys.hx" int exitCode = proc.ExitCode; (proc as global::System.ComponentModel.Component).Dispose(); #line 124 "/opt/haxe/std/cs/_std/Sys.hx" return(exitCode); }
public virtual void shutdown(bool read, bool write) { #line 85 "/opt/haxe/std/cs/_std/sys/net/Socket.hx" if ((read && write)) { #line 86 "/opt/haxe/std/cs/_std/sys/net/Socket.hx" this.sock.Shutdown(((global::System.Net.Sockets.SocketShutdown)(global::System.Net.Sockets.SocketShutdown.Both))); this.input = null; #line 88 "/opt/haxe/std/cs/_std/sys/net/Socket.hx" this.output = null; } else if (read) { #line 90 "/opt/haxe/std/cs/_std/sys/net/Socket.hx" this.sock.Shutdown(((global::System.Net.Sockets.SocketShutdown)(global::System.Net.Sockets.SocketShutdown.Receive))); this.input = null; } else if (write) { #line 93 "/opt/haxe/std/cs/_std/sys/net/Socket.hx" this.sock.Shutdown(((global::System.Net.Sockets.SocketShutdown)(global::System.Net.Sockets.SocketShutdown.Send))); this.output = null; } }
public virtual void shutdown(bool read, bool write) { #line 85 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\sys\\net\\Socket.hx" if ((read && write)) { #line 86 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\sys\\net\\Socket.hx" this.sock.Shutdown(((global::System.Net.Sockets.SocketShutdown)(global::System.Net.Sockets.SocketShutdown.Both))); this.input = null; #line 88 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\sys\\net\\Socket.hx" this.output = null; } else if (read) { #line 90 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\sys\\net\\Socket.hx" this.sock.Shutdown(((global::System.Net.Sockets.SocketShutdown)(global::System.Net.Sockets.SocketShutdown.Receive))); this.input = null; } else if (write) { #line 93 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\sys\\net\\Socket.hx" this.sock.Shutdown(((global::System.Net.Sockets.SocketShutdown)(global::System.Net.Sockets.SocketShutdown.Send))); this.output = null; } }
public static void __hx_ctor_haxe_io_Output(global::haxe.io.Output __hx_this) { }
public Writer(global::haxe.io.Output o) { global::format.png.Writer.__hx_ctor_format_png_Writer(this, o); }
protected static void __hx_ctor_format_png_Writer(global::format.png.Writer __hx_this, global::haxe.io.Output o) { __hx_this.o = o; o.set_bigEndian(true); }
protected static void __hx_ctor_haxe_io_Output(global::haxe.io.Output __hx_this) { }
public Sys_command_113__Fun(global::haxe.io.Output stderr) : base(2, 0) { #line 113 "/opt/haxe/std/cs/_std/Sys.hx" this.stderr = stderr; }
public Sys_command_113__Fun(global::haxe.io.Output stderr) : base(2, 0) { #line 113 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\Sys.hx" this.stderr = stderr; }