Created
November 7, 2010 17:22
-
-
Save wandernauta/666258 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[SocketError]: Invalid argument | |
[backtrace] | |
/tmp/ooch/ooch[0x804a349] | |
/tmp/ooch/ooch[0x804a6ad] | |
/tmp/ooch/ooch[0x804a625] | |
/tmp/ooch/ooch[0x804a70d] | |
/tmp/ooch/ooch[0x8059e9d] | |
/tmp/ooch/ooch[0x805a046] | |
/tmp/ooch/ooch[0x804a187] | |
/tmp/ooch/ooch[0x804a1cf] | |
/lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe6)[0xb7e4cbd6] | |
/tmp/ooch/ooch[0x804a051] | |
Program received signal SIGABRT, Aborted. | |
0xb7fe2422 in __kernel_vsyscall () | |
(gdb) where | |
#0 0xb7fe2422 in __kernel_vsyscall () | |
#1 0xb7e60651 in *__GI_raise (sig=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64 | |
#2 0xb7e63a82 in *__GI_abort () at abort.c:92 | |
#3 0x0804a641 in lang_Exception__Exception_throw_impl (this=0x818abd0) at /home/scavenger/rock/sdk/lang/Exception.ooc:220 | |
#4 0x0804a70d in lang_Exception__Exception_throw (this=0x818abd0) at /home/scavenger/rock/sdk/lang/Exception.ooc:256 | |
#5 0x08059e9d in net_ServerSocket__ServerSocket_accept_impl (this=0x8188ca0) at /home/scavenger/rock/sdk/net/ServerSocket.ooc:151 | |
#6 0x0805a046 in net_ServerSocket__ServerSocket_accept (this=0x8188ca0) at /home/scavenger/rock/sdk/net/ServerSocket.ooc:198 | |
#7 0x0804a187 in ooch_load () at ./ooch.ooc:6 | |
#8 0x0804a1cf in main () at ./ooch.ooc:16 | |
(gdb) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import net/ServerSocket | |
socket := ServerSocket new("127.0.0.1", 8000, true) | |
while(true) { | |
conn := socket accept() | |
conn out write("<html><body>Hello, from the ooc socket world!</body></html>") | |
conn close() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment