diff options
| author | Michael Brown | 2007-01-15 09:49:10 +0100 |
|---|---|---|
| committer | Michael Brown | 2007-01-15 09:49:10 +0100 |
| commit | 4e20d73bb52326261f8cf49c20d6de2edea309ee (patch) | |
| tree | 3d24466a78c4c8f53294384b76e62e871eb96def /src/net/tcp/hello.c | |
| parent | Add missing include (diff) | |
| download | ipxe-4e20d73bb52326261f8cf49c20d6de2edea309ee.tar.gz ipxe-4e20d73bb52326261f8cf49c20d6de2edea309ee.tar.xz ipxe-4e20d73bb52326261f8cf49c20d6de2edea309ee.zip | |
Gave asynchronous operations approximate POSIX signal semantics. This
will enable us to cascade async operations, which is necessary in order to
properly support DNS. (For example, an HTTP request may have to redirect
to a new location and will have to perform a new DNS lookup, so we can't
just rely on doing the name lookup at the time of parsing the initial
URL).
Anything other than HTTP is probably broken right now; I'll fix the others
up asap.
Diffstat (limited to 'src/net/tcp/hello.c')
| -rw-r--r-- | src/net/tcp/hello.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/net/tcp/hello.c b/src/net/tcp/hello.c index 4de7e8729..25c079369 100644 --- a/src/net/tcp/hello.c +++ b/src/net/tcp/hello.c @@ -51,7 +51,7 @@ tcp_to_hello ( struct tcp_application *app ) { static void hello_closed ( struct tcp_application *app, int status ) { struct hello_request *hello = tcp_to_hello ( app ); - async_done ( &hello->aop, status ); + async_done ( &hello->async, status ); } static void hello_connected ( struct tcp_application *app ) { @@ -116,7 +116,7 @@ struct async_operation * say_hello ( struct hello_request *hello ) { hello->tcp.tcp_op = &hello_tcp_operations; if ( ( rc = tcp_connect ( &hello->tcp, &hello->server, 0 ) ) != 0 ) - async_done ( &hello->aop, rc ); + async_done ( &hello->async, rc ); - return &hello->aop; + return &hello->async; } |
