/// <summary> /// Creates a new TCP server. The connectionListener argument is automatically set as a listener for the 'connection' event. /// </summary> /// <param name="options">options is an object with the following defaults: ///<example> ///<code> /// { allowHalfOpen: false /// } /// If allowHalfOpen is true, then the socket won't automatically send a FIN packet when the other end of the socket sends a FIN packet. The socket becomes non-readable, but still writable. You should call the end() method explicitly. See 'end' event for more information.</param> /// </code> /// </example> /// <param name="connectionListener"></param> /// <returns></returns> /// <example> /// Here is an example of an echo server which listens for connections on port 8124: /// <code> ///var net = require('net'); ///var server = net.createServer(function(c) { //'connection' listener /// console.log('server connected'); /// c.on('end', function() { /// console.log('server disconnected'); /// }); /// c.write('hello\r\n'); /// c.pipe(c); ///}); ///server.listen(8124, function() { //'listening' listener /// console.log('server bound'); ///}); ///</code> </example> ///<example> ///Test this by using telnet: ///<code> telnet localhost 8124 </code> ///To listen on the socket /tmp/echo.sock the third line from the last would just be changed to ///<code> ///server.listen('/tmp/echo.sock', function() { //'listening' listener ///Use nc to connect to a UNIX domain socket server: ///nc -U /tmp/echo.sock /// </code> /// </example> public object createServer(CreateServerOptions options, JsAction connectionListener) { return null; }
/// <summary> /// Creates a new TCP server. The connectionListener argument is automatically set as a listener for the 'connection' event. /// </summary> /// <param name="options">options is an object with the following defaults: ///<example> ///<code> /// { allowHalfOpen: false /// } /// If allowHalfOpen is true, then the socket won't automatically send a FIN packet when the other end of the socket sends a FIN packet. The socket becomes non-readable, but still writable. You should call the end() method explicitly. See 'end' event for more information.</param> /// </code> /// </example> /// <param name="connectionListener"></param> /// <returns></returns> /// <example> /// Here is an example of an echo server which listens for connections on port 8124: /// <code> ///var net = require('net'); ///var server = net.createServer(function(c) { //'connection' listener /// console.log('server connected'); /// c.on('end', function() { /// console.log('server disconnected'); /// }); /// c.write('hello\r\n'); /// c.pipe(c); ///}); ///server.listen(8124, function() { //'listening' listener /// console.log('server bound'); ///}); ///</code> </example> ///<example> ///Test this by using telnet: ///<code> telnet localhost 8124 </code> ///To listen on the socket /tmp/echo.sock the third line from the last would just be changed to ///<code> ///server.listen('/tmp/echo.sock', function() { //'listening' listener ///Use nc to connect to a UNIX domain socket server: ///nc -U /tmp/echo.sock /// </code> /// </example> public object createServer(CreateServerOptions options, JsAction connectionListener) { return(null); }
/// <summary> /// Creates a new TCP server. The connectionListener argument is automatically set as a listener for the 'connection' event. /// </summary> /// <param name="options">options is an object with the following defaults: ///<example> ///<code> /// { allowHalfOpen: false /// } /// If allowHalfOpen is true, then the socket won't automatically send a FIN packet when the other end of the socket sends a FIN packet. The socket becomes non-readable, but still writable. You should call the end() method explicitly. See 'end' event for more information.</param> /// </code> /// </example> /// <returns></returns> /// <example> /// Here is an example of an echo server which listens for connections on port 8124: /// <code> ///var net = require('net'); ///var server = net.createServer(function(c) { //'connection' listener /// console.log('server connected'); /// c.on('end', function() { /// console.log('server disconnected'); /// }); /// c.write('hello\r\n'); /// c.pipe(c); ///}); ///server.listen(8124, function() { //'listening' listener /// console.log('server bound'); ///}); ///</code> </example> ///<example> ///Test this by using telnet: ///<code> telnet localhost 8124 </code> ///To listen on the socket /tmp/echo.sock the third line from the last would just be changed to ///<code> ///server.listen('/tmp/echo.sock', function() { //'listening' listener ///Use nc to connect to a UNIX domain socket server: ///nc -U /tmp/echo.sock /// </code> /// </example> public object createServer(CreateServerOptions options) { return null; }
/// <summary> /// Creates a new TCP server. The connectionListener argument is automatically set as a listener for the 'connection' event. /// </summary> /// <param name="options">options is an object with the following defaults: ///<example> ///<code> /// { allowHalfOpen: false /// } /// If allowHalfOpen is true, then the socket won't automatically send a FIN packet when the other end of the socket sends a FIN packet. The socket becomes non-readable, but still writable. You should call the end() method explicitly. See 'end' event for more information.</param> /// </code> /// </example> /// <returns></returns> /// <example> /// Here is an example of an echo server which listens for connections on port 8124: /// <code> ///var net = require('net'); ///var server = net.createServer(function(c) { //'connection' listener /// console.log('server connected'); /// c.on('end', function() { /// console.log('server disconnected'); /// }); /// c.write('hello\r\n'); /// c.pipe(c); ///}); ///server.listen(8124, function() { //'listening' listener /// console.log('server bound'); ///}); ///</code> </example> ///<example> ///Test this by using telnet: ///<code> telnet localhost 8124 </code> ///To listen on the socket /tmp/echo.sock the third line from the last would just be changed to ///<code> ///server.listen('/tmp/echo.sock', function() { //'listening' listener ///Use nc to connect to a UNIX domain socket server: ///nc -U /tmp/echo.sock /// </code> /// </example> public object createServer(CreateServerOptions options) { return(null); }