/*
* Bind the socket to a local address
+ *
*/
command error_t bind(uint16_t port);
/*
* Accept an incomming connection.
+ *
+ * the app should return FALSE to reject the connection attempt
*/
event bool accept(struct sockaddr_in6 *from,
- void **rx_buf, int *rx_buf_len,
void **tx_buf, int *tx_buf_len);
/*
* The socket should not be used until connectDone is signaled.
*/
command error_t connect(struct sockaddr_in6 *dest,
- void *rx_buf, int rx_buf_len,
void *tx_buf, int tx_buf_len);
event void connectDone(error_t e);
* terminate a connection.
*/
command error_t close();
+ command error_t abort();
/*
* notify the app that the socket connection has been closed or
* local side has given up.
*/
event void closed(error_t e);
+
+ /*
+ * returns TRUE if all previously sent data has been ACKed
+ */
+ event void acked();
+
+
}