Merge: Websockets
authorJean Privat <jean@pryen.org>
Mon, 7 Apr 2014 18:56:51 +0000 (14:56 -0400)
committerJean Privat <jean@pryen.org>
Mon, 7 Apr 2014 18:56:51 +0000 (14:56 -0400)
Added support for Websockets in lib, fixed a few issues with Sockets.
Also added a Websocket compatible version of the debugger.

Closes #206
Closes #204
Pull-Request: #377
Reviewed-by: Jean Privat <jean@pryen.org>
Reviewed-by: Alexis Laferrière <alexis.laf@xymus.net>

1  2 
lib/standard/string.nit

@@@ -1325,9 -1342,18 +1326,18 @@@ redef class Boo
  end
  
  redef class Int
+       # Wrapper of strerror C function
+       private fun strerror_ext: NativeString is extern `{
+               return strerror(recv);
+       `}
+       # Returns a string describing error number
+       fun strerror: String do return strerror_ext.to_s
        # Fill `s` with the digits in base `base` of `self` (and with the '-' sign if 'signed' and negative).
        # assume < to_c max const of char
 -      fun fill_buffer(s: Buffer, base: Int, signed: Bool)
 +      private fun fill_buffer(s: Buffer, base: Int, signed: Bool)
        do
                var n: Int
                # Sign