@@ -58,14 +58,6 @@ int8_t socket_bind(int8_t socket, const ns_address_t *address)
58
58
return socket_api_stub .int8_value ;
59
59
}
60
60
61
- int8_t socket_send (int8_t socket , uint8_t * buffer , uint16_t length )
62
- {
63
- if ( socket_api_stub .counter >= 0 ){
64
- return socket_api_stub .values [socket_api_stub .counter -- ];
65
- }
66
-
67
- return socket_api_stub .int8_value ;
68
- }
69
61
int16_t socket_read (int8_t socket , ns_address_t * address , uint8_t * buffer , uint16_t length )
70
62
{
71
63
if ( address ){
@@ -78,14 +70,6 @@ int16_t socket_read(int8_t socket, ns_address_t *address, uint8_t *buffer, uint1
78
70
79
71
return socket_api_stub .int8_value ;
80
72
}
81
- int8_t socket_sendto (int8_t socket , ns_address_t * address , uint8_t * buffer , uint16_t length )
82
- {
83
- if ( socket_api_stub .counter >= 0 ){
84
- return socket_api_stub .values [socket_api_stub .counter -- ];
85
- }
86
-
87
- return socket_api_stub .int8_value ;
88
- }
89
73
int8_t socket_getpeername (int8_t socket , ns_address_t * address )
90
74
{
91
75
if ( socket_api_stub .counter >= 0 ){
@@ -110,8 +94,7 @@ int8_t socket_getsockopt(int8_t socket, uint8_t level, uint8_t opt_name, void *o
110
94
111
95
return socket_api_stub .int8_value ;
112
96
}
113
-
114
- int8_t socket_sendmsg (int8_t socket , const ns_msghdr_t * msg , int flags )
97
+ int16_t socket_sendmsg (int8_t socket , const ns_msghdr_t * msg , int flags )
115
98
{
116
99
if ( socket_api_stub .counter >= 0 ){
117
100
return socket_api_stub .values [socket_api_stub .counter -- ];
0 commit comments