2 Copyright © 2000-2010, The AROS Development Team. All rights reserved.
9 #include "bsdsocket_intern.h"
10 #include "bsdsocket_util.h"
11 #include "socket_intern.h"
13 /*****************************************************************************
17 AROS_LH5(int, setsockopt
,
21 AROS_LHA(int, level
, D1
),
22 AROS_LHA(int, optname
, D2
),
23 AROS_LHA(void *, optval
, A0
),
24 AROS_LHA(int, optlen
, D3
),
27 struct TaskBase
*, taskBase
, 15, BSDSocket
)
47 *****************************************************************************/
51 struct Socket
*sd
= GetSocket(s
, taskBase
);
57 struct bsdsocketBase
*SocketBase
= taskBase
->glob
;
61 res
= WSsetsockopt(sd
->s
, level
, optname
, optval
, optlen
);
63 err
= WSAGetLastError() - WSABASEERR
;
68 SetError(err
, taskBase
);