Subversion Repositories HelenOS

Rev

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

Rev 4603 Rev 4704
Line 29... Line 29...
29
/** @addtogroup socket
29
/** @addtogroup socket
30
 *  @{
30
 *  @{
31
 */
31
 */
32
 
32
 
33
/** @file
33
/** @file
-
 
34
 *  Socket messages.
-
 
35
 *  @see socket.h
-
 
36
 *  \todo
34
 */
37
 */
35
 
38
 
-
 
39
 
36
#ifndef __NET_SOCKET_MESSAGES_H__
40
#ifndef __NET_SOCKET_MESSAGES_H__
37
#define __NET_SOCKET_MESSAGES_H__
41
#define __NET_SOCKET_MESSAGES_H__
38
 
42
 
39
#include <ipc/ipc.h>
43
#include <ipc/ipc.h>
40
 
44
 
Line 56... Line 60...
56
    NET_SOCKET_ACCEPTED,
60
    NET_SOCKET_ACCEPTED,
57
    NET_SOCKET_RECEIVED,
61
    NET_SOCKET_RECEIVED,
58
    NET_SOCKET_DATA_FRAGMENT_SIZE
62
    NET_SOCKET_DATA_FRAGMENT_SIZE
59
} socket_messages;
63
} socket_messages;
60
 
64
 
61
#define SOCKET_SET_SOCKET_ID( call )        ( int * ) & IPC_GET_ARG1( * call )
-
 
62
#define SOCKET_GET_SOCKET_ID( call )        ( int ) IPC_GET_ARG1( * call )
65
/** @name Socket specific message parameters definitions
63
#define SOCKET_SET_READ_DATA_LENGTH( call ) ( int * ) & IPC_GET_ARG1( * call )
-
 
64
#define SOCKET_GET_READ_DATA_LENGTH( call ) ( int ) IPC_GET_ARG1( * call )
-
 
65
 
66
 */
66
#define SOCKET_SET_HEADER_SIZE( call )      ( int * ) & IPC_GET_ARG2( * call )
-
 
67
#define SOCKET_GET_HEADER_SIZE( call )      ( int ) IPC_GET_ARG2( * call )
-
 
68
#define SOCKET_GET_BACKLOG( call )          ( int ) IPC_GET_ARG2( * call )
-
 
69
#define SOCKET_GET_OPT_LEVEL( call )        ( int ) IPC_GET_ARG2( * call )
-
 
70
#define SOCKET_SET_DATA_FRAGMENTS( call )   ( int * ) & IPC_GET_ARG2( * call )
-
 
71
#define SOCKET_GET_DATA_FRAGMENTS( call )   ( int ) IPC_GET_ARG2( * call )
-
 
72
#define SOCKET_SET_ADDRESS_LENGTH( call )   ( size_t * ) & IPC_GET_ARG2( * call )
-
 
73
#define SOCKET_GET_ADDRESS_LENGTH( call )   ( size_t ) IPC_GET_ARG2( * call )
-
 
-
 
67
/*@{*/
74
 
68
 
-
 
69
#define SOCKET_SET_SOCKET_ID( call )        ( int * ) & IPC_GET_ARG1( call )
-
 
70
#define SOCKET_GET_SOCKET_ID( call )        ( int ) IPC_GET_ARG1( call )
-
 
71
#define SOCKET_SET_READ_DATA_LENGTH( call ) ( int * ) & IPC_GET_ARG1( call )
-
 
72
#define SOCKET_GET_READ_DATA_LENGTH( call ) ( int ) IPC_GET_ARG1( call )
-
 
73
 
-
 
74
#define SOCKET_SET_HEADER_SIZE( call )      ( int * ) & IPC_GET_ARG2( call )
-
 
75
#define SOCKET_GET_HEADER_SIZE( call )      ( int ) IPC_GET_ARG2( call )
-
 
76
#define SOCKET_GET_BACKLOG( call )          ( int ) IPC_GET_ARG2( call )
-
 
77
#define SOCKET_GET_OPT_LEVEL( call )        ( int ) IPC_GET_ARG2( call )
75
#define SOCKET_SET_DATA_FRAGMENT_SIZE( call )   ( int * ) & IPC_GET_ARG3( * call )
78
#define SOCKET_SET_DATA_FRAGMENTS( call )   ( int * ) & IPC_GET_ARG2( call )
76
#define SOCKET_GET_DATA_FRAGMENT_SIZE( call )   ( int ) IPC_GET_ARG3( * call )
79
#define SOCKET_GET_DATA_FRAGMENTS( call )   ( int ) IPC_GET_ARG2( call )
-
 
80
#define SOCKET_SET_ADDRESS_LENGTH( call )   ( size_t * ) & IPC_GET_ARG2( call )
-
 
81
#define SOCKET_GET_ADDRESS_LENGTH( call )   ( size_t ) IPC_GET_ARG2( call )
77
 
82
 
-
 
83
#define SOCKET_SET_DATA_FRAGMENT_SIZE( call )   ( int * ) & IPC_GET_ARG3( call )
78
#define SOCKET_GET_FLAGS( call )            ( int ) IPC_GET_ARG4( * call )
84
#define SOCKET_GET_DATA_FRAGMENT_SIZE( call )   ( int ) IPC_GET_ARG3( call )
79
 
85
 
80
#define SOCKET_GET_OPT_NAME( call )         ( int ) IPC_GET_ARG4( * call )
86
#define SOCKET_GET_FLAGS( call )            ( int ) IPC_GET_ARG4( call )
81
 
87
 
-
 
88
#define SOCKET_GET_OPT_NAME( call )         ( int ) IPC_GET_ARG4( call )
82
 
89
 
-
 
90
/*@}*/
83
 
91
 
84
#endif
92
#endif
85
 
93
 
86
/** @}
94
/** @}
87
 */
95
 */