Changeset 3aae4e8 in mainline for uspace/lib/socket/include/socket_core.h
- Timestamp:
- 2010-04-04T22:07:05Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 23de644
- Parents:
- 9f10660f (diff), 73060801 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/socket/include/socket_core.h
r9f10660f r3aae4e8 40 40 #include <sys/types.h> 41 41 42 #include "../include/in.h" 43 #include "../include/device.h" 44 45 #include "../structures/generic_char_map.h" 46 #include "../structures/dynamic_fifo.h" 47 #include "../structures/int_map.h" 48 #include "../structures/packet/packet.h" 42 #include <in.h> 43 #include <net_device.h> 44 #include <adt/generic_char_map.h> 45 #include <adt/dynamic_fifo.h> 46 #include <adt/int_map.h> 47 #include <packet/packet.h> 49 48 50 49 /** Initial size of the received packet queue. … … 139 138 * @param[in] socket_release The client release callback function. 140 139 */ 141 void socket_cores_release(int packet_phone, socket_cores_ref local_sockets, socket_ports_ref global_sockets, void (*socket_release)(socket_core_ref socket));140 extern void socket_cores_release(int packet_phone, socket_cores_ref local_sockets, socket_ports_ref global_sockets, void (*socket_release)(socket_core_ref socket)); 142 141 143 142 /** Binds the socket to the port. … … 158 157 * @returns Other error codes as defined for the socket_bind_insert() function. 159 158 */ 160 int socket_bind(socket_cores_ref local_sockets, socket_ports_ref global_sockets, int socket_id, void * addr, size_t addrlen, int free_ports_start, int free_ports_end, int last_used_port);159 extern int socket_bind(socket_cores_ref local_sockets, socket_ports_ref global_sockets, int socket_id, void * addr, size_t addrlen, int free_ports_start, int free_ports_end, int last_used_port); 161 160 162 161 /** Binds the socket to a free port. … … 171 170 * @returns Other error codes as defined for the socket_bind_insert() function. 172 171 */ 173 int socket_bind_free_port(socket_ports_ref global_sockets, socket_core_ref socket, int free_ports_start, int free_ports_end, int last_used_port);172 extern int socket_bind_free_port(socket_ports_ref global_sockets, socket_core_ref socket, int free_ports_start, int free_ports_end, int last_used_port); 174 173 175 174 /** Creates a new socket. … … 182 181 * @returns ENOMEM if there is not enough memory left. 183 182 */ 184 int socket_create(socket_cores_ref local_sockets, int app_phone, void * specific_data, int * socket_id);183 extern int socket_create(socket_cores_ref local_sockets, int app_phone, void * specific_data, int * socket_id); 185 184 186 185 /** Destroys the socket. … … 195 194 * @returns ENOTSOCK if the socket is not found. 196 195 */ 197 int socket_destroy(int packet_phone, int socket_id, socket_cores_ref local_sockets, socket_ports_ref global_sockets, void (*socket_release)(socket_core_ref socket));196 extern int socket_destroy(int packet_phone, int socket_id, socket_cores_ref local_sockets, socket_ports_ref global_sockets, void (*socket_release)(socket_core_ref socket)); 198 197 199 198 /** Replies the packet or the packet queue data to the application via the socket. … … 206 205 * @returns Other error codes as defined for the data_reply() function. 207 206 */ 208 int socket_reply_packets(packet_t packet, size_t * length);207 extern int socket_reply_packets(packet_t packet, size_t * length); 209 208 210 209 /** Finds the bound port socket. … … 216 215 * @returns NULL if no socket was found. 217 216 */ 218 socket_core_ref socket_port_find(socket_ports_ref global_sockets, int port, const char * key, size_t key_length);217 extern socket_core_ref socket_port_find(socket_ports_ref global_sockets, int port, const char * key, size_t key_length); 219 218 220 219 /** Releases the socket port. … … 224 223 * @param[in] socket The socket to be unbound. 225 224 */ 226 void socket_port_release(socket_ports_ref global_sockets, socket_core_ref socket);225 extern void socket_port_release(socket_ports_ref global_sockets, socket_core_ref socket); 227 226 228 227 /** Adds the socket to an already bound port. … … 236 235 * @returns Other error codes as defined for the socket_port_add_core() function. 237 236 */ 238 int socket_port_add(socket_ports_ref global_sockets, int port, socket_core_ref socket, const char * key, size_t key_length);237 extern int socket_port_add(socket_ports_ref global_sockets, int port, socket_core_ref socket, const char * key, size_t key_length); 239 238 240 239 #endif
Note:
See TracChangeset
for help on using the changeset viewer.