Changeset 26e7d6d in mainline for uspace/lib/net/include/socket_core.h
- Timestamp:
- 2011-09-19T16:31:00Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- a347a11
- Parents:
- 3842a955 (diff), 086290d (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 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/net/include/socket_core.h
r3842a955 r26e7d6d 27 27 */ 28 28 29 /** @addtogroup libnet 29 /** @addtogroup libnet 30 30 * @{ 31 31 */ … … 45 45 #include <net/device.h> 46 46 #include <net/packet.h> 47 #include <async.h> 47 48 48 49 /** Initial size of the received packet queue. */ 49 #define SOCKET_INITIAL_RECEIVED_SIZE 50 #define SOCKET_INITIAL_RECEIVED_SIZE 4 50 51 51 52 /** Maximum size of the received packet queue. */ 52 #define SOCKET_MAX_RECEIVED_SIZE 53 #define SOCKET_MAX_RECEIVED_SIZE 0 53 54 54 55 /** Initial size of the sockets for acceptance queue. */ 55 #define SOCKET_INITIAL_ACCEPTED_SIZE 56 #define SOCKET_INITIAL_ACCEPTED_SIZE 1 56 57 57 58 /** Maximum size of the sockets for acceptance queue. */ 58 #define SOCKET_MAX_ACCEPTEDED_SIZE 59 #define SOCKET_MAX_ACCEPTEDED_SIZE 0 59 60 60 61 /** Listening sockets' port map key. */ 61 #define SOCKET_MAP_KEY_LISTENING 62 #define SOCKET_MAP_KEY_LISTENING "L" 62 63 63 64 /** Type definition of the socket core. … … 75 76 /** Socket identifier. */ 76 77 int socket_id; 77 /** Client application phone. */78 int phone;78 /** Client application session. */ 79 async_sess_t *sess; 79 80 /** Bound port. */ 80 81 int port; … … 108 109 INT_MAP_DECLARE(socket_ports, socket_port_t); 109 110 110 extern void socket_cores_release( int, socket_cores_t *, socket_ports_t *,111 void (*)(socket_core_t *));111 extern void socket_cores_release(async_sess_t *, socket_cores_t *, 112 socket_ports_t *, void (*)(socket_core_t *)); 112 113 extern int socket_bind(socket_cores_t *, socket_ports_t *, int, void *, size_t, 113 114 int, int, int); 114 115 extern int socket_bind_free_port(socket_ports_t *, socket_core_t *, int, int, 115 116 int); 116 extern int socket_create(socket_cores_t *, int, void *, int *);117 extern int socket_destroy( int, int, socket_cores_t *, socket_ports_t *,118 void (*)(socket_core_t *));117 extern int socket_create(socket_cores_t *, async_sess_t *, void *, int *); 118 extern int socket_destroy(async_sess_t *, int, socket_cores_t *, 119 socket_ports_t *, void (*)(socket_core_t *)); 119 120 extern int socket_reply_packets(packet_t *, size_t *); 120 121 extern socket_core_t *socket_port_find(socket_ports_t *, int, const uint8_t *,
Note:
See TracChangeset
for help on using the changeset viewer.