Changeset e33bceb in mainline for uspace/srv/udp/udp_type.h


Ignore:
Timestamp:
2012-04-03T07:17:08Z (12 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
4794417
Parents:
66a272f8
Message:

Implement socket provider interface in UDP to UDP user calls.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/udp/udp_type.h

    r66a272f8 re33bceb  
    3636#define UDP_TYPE_H
    3737
     38#include <fibril_synch.h>
    3839#include <socket_core.h>
    3940#include <sys/types.h>
     41
     42typedef enum {
     43        UDP_EOK
     44} udp_error_t;
     45
     46typedef enum {
     47        XF_DUMMY        = 0x1
     48} xflags_t;
    4049
    4150typedef struct {
    4251        uint32_t ipv4;
    4352} netaddr_t;
     53
     54enum netaddr {
     55        UDP_IPV4_ANY = 0
     56};
    4457
    4558typedef struct {
     
    7487} udp_pdu_t;
    7588
     89typedef struct {
     90        async_sess_t *sess;
     91        socket_cores_t sockets;
     92} udp_client_t;
     93
     94typedef struct {
     95        char *name;
     96        udp_sockpair_t ident;
     97} udp_assoc_t;
     98
     99typedef struct {
     100} udp_assoc_status_t;
     101
     102typedef struct udp_sockdata {
     103        /** Lock */
     104        fibril_mutex_t lock;
     105        /** Socket core */
     106        socket_core_t *sock_core;
     107        /** Client */
     108        udp_client_t *client;
     109        /** Connection */
     110        udp_assoc_t *assoc;
     111        /** Local address */
     112        netaddr_t laddr;
     113} udp_sockdata_t;
     114
    76115#endif
    77116
Note: See TracChangeset for help on using the changeset viewer.