src/sock.h
changeset 28 9c1050bc8709
parent 15 9bbeace56269
child 30 7f8dd120933f
equal deleted inserted replaced
27:e6639132bead 28:9c1050bc8709
    79 /**
    79 /**
    80  * Get current error_info for \a sock.
    80  * Get current error_info for \a sock.
    81  */
    81  */
    82 const struct error_info* sock_stream_error (struct sock_stream *sock);
    82 const struct error_info* sock_stream_error (struct sock_stream *sock);
    83 
    83 
       
    84 /**
       
    85  * Close and release the given socket, ignoring errors. It must not be used anymore after this.
       
    86  *
       
    87  * This is intended to be used to abort in case of errors, and does not close the connection cleanly.
       
    88  */
       
    89 void sock_stream_release (struct sock_stream *sock);
       
    90 
    84 #endif
    91 #endif