| Index: runtime/bin/socket.dart
|
| diff --git a/runtime/bin/socket.dart b/runtime/bin/socket.dart
|
| index 3a7469242c68944fb2946ba56c297ff2535a2c09..4b0655e9ebe448be034a12d98f67551605e80d9a 100644
|
| --- a/runtime/bin/socket.dart
|
| +++ b/runtime/bin/socket.dart
|
| @@ -10,18 +10,13 @@ interface ServerSocket factory _ServerSocket {
|
| ServerSocket(String bindAddress, int port, int backlog);
|
|
|
| /*
|
| - * Accepts a connection to this socket.
|
| + * The connection handler gets called when there is a new incoming
|
| + * connection on the socket.
|
| */
|
| - Socket accept();
|
| + void set connectionHandler(void callback(Socket connection));
|
|
|
| /*
|
| - * The connection handler gets executed when there are incoming connections
|
| - * on the socket.
|
| - */
|
| - void set connectionHandler(void callback());
|
| -
|
| - /*
|
| - * The error handler gets executed when a socket error occurs.
|
| + * The error handler gets called when a socket error occurs.
|
| */
|
| void set errorHandler(void callback());
|
|
|
|
|