Subversion Repositories HelenOS

Rev

Rev 4704 | Rev 4738 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4704 Rev 4726
Line 57... Line 57...
57
 
57
 
58
struct socket_core{
58
struct socket_core{
59
    int             socket_id;
59
    int             socket_id;
60
    int             phone;
60
    int             phone;
61
    int             port;
61
    int             port;
62
    int                 data_fragment_size;
-
 
63
    device_id_t         device_id;
-
 
64
    struct sockaddr_in *    peer_addr;
-
 
65
    dyn_fifo_t      received;
62
    dyn_fifo_t      received;
66
    dyn_fifo_t      accepted;
63
    dyn_fifo_t      accepted;
-
 
64
    void *          specific_data;
67
};
65
};
68
 
66
 
69
INT_MAP_DECLARE( socket_cores, socket_core_t );
67
INT_MAP_DECLARE( socket_cores, socket_core_t );
70
 
68
 
71
INT_MAP_DECLARE( socket_ports, socket_core_ref );
69
INT_MAP_DECLARE( socket_ports, socket_core_ref );
72
 
70
 
73
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 );
71
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 );
74
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 );
72
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 );
75
int socket_create( socket_cores_ref local_sockets, int app_phone, int * socket_id );
73
int socket_create( socket_cores_ref local_sockets, int app_phone, void * specific_data, int * socket_id );
76
int socket_destroy( int packet_phone, int socket_id, socket_cores_ref local_sockets, socket_ports_ref global_sockets );
74
int socket_destroy( int packet_phone, int socket_id, socket_cores_ref local_sockets, socket_ports_ref global_sockets );
77
 
75
 
78
#endif
76
#endif
79
 
77
 
80
/** @}
78
/** @}