Rev 3846 | Rev 4350 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3846 | Rev 3912 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | /* |
1 | /* |
2 | * Copyright (c) 2008 Lukas Mejdrech |
2 | * Copyright (c) 2009 Lukas Mejdrech |
3 | * All rights reserved. |
3 | * All rights reserved. |
4 | * |
4 | * |
5 | * Redistribution and use in source and binary forms, with or without |
5 | * Redistribution and use in source and binary forms, with or without |
6 | * modification, are permitted provided that the following conditions |
6 | * modification, are permitted provided that the following conditions |
7 | * are met: |
7 | * are met: |
Line 25... | Line 25... | ||
25 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
25 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
26 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
26 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
27 | */ |
27 | */ |
28 | 28 | ||
29 | /** @addtogroup net |
29 | /** @addtogroup net |
30 | * @{ |
30 | * @{ |
31 | */ |
31 | */ |
32 | 32 | ||
33 | /** @file |
33 | /** @file |
34 | */ |
34 | */ |
35 | #include <async.h> |
35 | #include <async.h> |
Line 60... | Line 60... | ||
60 | ipcarg_t phone; |
60 | ipcarg_t phone; |
61 | ipcarg_t phonehash; |
61 | ipcarg_t phonehash; |
62 | 62 | ||
63 | phone = connect_to_service( need ); |
63 | phone = connect_to_service( need ); |
64 | if( phone >= 0 ){ |
64 | if( phone >= 0 ){ |
65 | if( ERROR_OCCURED( ipc_connect_to_me( phone, arg1, arg2, arg3, & phonehash ))){ |
65 | if( ERROR_OCCURRED( ipc_connect_to_me( phone, arg1, arg2, arg3, & phonehash ))){ |
66 | async_msg_0( phone, IPC_M_PHONE_HUNGUP ); |
66 | async_msg_0( phone, IPC_M_PHONE_HUNGUP ); |
67 | return ERROR_CODE; |
67 | return ERROR_CODE; |
68 | } |
68 | } |
69 | async_new_connection( phonehash, 0, NULL, client_receiver ); |
69 | async_new_connection( phonehash, 0, NULL, client_receiver ); |
70 | } |
70 | } |