Rev 4704 | Rev 4720 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 4704 | Rev 4707 | ||
|---|---|---|---|
| Line 58... | Line 58... | ||
| 58 | /** The transport layer notification function type definition. |
58 | /** The transport layer notification function type definition. |
| 59 | * Notifies the transport layer modules about the received packet/s. |
59 | * Notifies the transport layer modules about the received packet/s. |
| 60 | * @param device_id The device identifier. Input parameter. |
60 | * @param device_id The device identifier. Input parameter. |
| 61 | * @param packet The received packet or the received packet queue. Input parameter. |
61 | * @param packet The received packet or the received packet queue. Input parameter. |
| 62 | * @param receiver The receiving module service. Input parameter. |
62 | * @param receiver The receiving module service. Input parameter. |
| - | 63 | * @param error The packet error reporting service. Prefixes the received packet. Input parameter. |
|
| 63 | * @returns EOK on success. |
64 | * @returns EOK on success. |
| 64 | */ |
65 | */ |
| 65 | typedef int ( * tl_received_msg_t )( device_id_t device_id, packet_t packet, services_t receiver ); |
66 | typedef int ( * tl_received_msg_t )( device_id_t device_id, packet_t packet, services_t receiver, services_t error ); |
| 66 | 67 | ||
| 67 | /** Creates bidirectional connection with the ip module service and registers the message receiver. |
68 | /** Creates bidirectional connection with the ip module service and registers the message receiver. |
| 68 | * @param service The IP module service. Input parameter. |
69 | * @param service The IP module service. Input parameter. |
| 69 | * @param protocol The transport layer protocol. Input parameter. |
70 | * @param protocol The transport layer protocol. Input parameter. |
| 70 | * @param me The requesting module service. Input parameter. |
71 | * @param me The requesting module service. Input parameter. |
| Line 95... | Line 96... | ||
| 95 | /** Sends the packet queue. |
96 | /** Sends the packet queue. |
| 96 | * @param ip_phone The IP module phone used for (semi)remote calls. Input parameter. |
97 | * @param ip_phone The IP module phone used for (semi)remote calls. Input parameter. |
| 97 | * @param device_id The device identifier. Input parameter. |
98 | * @param device_id The device identifier. Input parameter. |
| 98 | * @param packet The packet queue. Input parameter. |
99 | * @param packet The packet queue. Input parameter. |
| 99 | * @param sender The sending module service. Input parameter. |
100 | * @param sender The sending module service. Input parameter. |
| - | 101 | * @param target The target transport layer module service to be delivered to. Input parameter. |
|
| 100 | * @returns EOK on success. |
102 | * @returns EOK on success. |
| 101 | * @returns Other error codes as defined for the generic_send_msg() function. |
103 | * @returns Other error codes as defined for the generic_send_msg() function. |
| 102 | */ |
104 | */ |
| 103 | int ip_send_msg( int ip_phone, device_id_t device_id, packet_t packet, services_t sender ); |
105 | int ip_send_msg( int ip_phone, device_id_t device_id, packet_t packet, services_t sender, services_t error ); |
| 104 | 106 | ||
| 105 | /** Connects to the IP module. |
107 | /** Connects to the IP module. |
| 106 | * @param service The IP module service. Ignored parameter. |
108 | * @param service The IP module service. Ignored parameter. |
| 107 | * @returns The IP module phone on success. |
109 | * @returns The IP module phone on success. |
| 108 | * @returns 0 if called by the bundle module. |
110 | * @returns 0 if called by the bundle module. |
| Line 139... | Line 141... | ||
| 139 | * @returns ENOENT if there is no such device. |
141 | * @returns ENOENT if there is no such device. |
| 140 | * @returns Other error codes as defined for the generic_packet_size_req() function. |
142 | * @returns Other error codes as defined for the generic_packet_size_req() function. |
| 141 | */ |
143 | */ |
| 142 | int ip_packet_size_req( int ip_phone, device_id_t device_id, size_t * addr_len, size_t * prefix, size_t * content, size_t * suffix ); |
144 | int ip_packet_size_req( int ip_phone, device_id_t device_id, size_t * addr_len, size_t * prefix, size_t * content, size_t * suffix ); |
| 143 | 145 | ||
| - | 146 | /** Notifies the IP module about the received error notification packet. |
|
| - | 147 | * @param ip_phone The IP module phone used for (semi)remote calls. Input parameter. |
|
| - | 148 | * @param device_id The device identifier. Input parameter. |
|
| - | 149 | * @param packet The received packet or the received packet queue. Input parameter. |
|
| - | 150 | * @param target The target internetwork module service to be delivered to. Input parameter. |
|
| - | 151 | * @param error The packet error reporting service. Prefixes the received packet. Input parameter. |
|
| - | 152 | * @returns EOK on success. |
|
| - | 153 | */ |
|
| - | 154 | int ip_received_error_msg( int ip_phone, device_id_t device_id, packet_t packet, services_t target, services_t error ); |
|
| - | 155 | ||
| 144 | /*@}*/ |
156 | /*@}*/ |
| 145 | 157 | ||
| 146 | #endif |
158 | #endif |
| 147 | 159 | ||
| 148 | /** @} |
160 | /** @} |