src/transport_internal.h
branchnew-transport
changeset 165 b3e95108c884
parent 159 d3e253d7281a
child 176 6750d50ee8cd
equal deleted inserted replaced
164:7847a7c3b678 165:b3e95108c884
    21 
    21 
    22     /** For transport_write() */
    22     /** For transport_write() */
    23     err_t (*write) (transport_t *transport, const void *buf, size_t *len, error_t *err);
    23     err_t (*write) (transport_t *transport, const void *buf, size_t *len, error_t *err);
    24 
    24 
    25     /**
    25     /**
    26      * The mask of event flags will be set to the given mask if this method is succesfully.
    26      * The mask of event flags will be set to the given mask if this method is succesfull.
    27      *
    27      *
    28      * The old mask is still available in transport::info::ev_mask.
    28      * The old mask is still available in transport::info::ev_mask.
    29      */
    29      */
    30     err_t (*events) (transport_t *transport, short mask, error_t *err);
    30     err_t (*events) (transport_t *transport, short mask, error_t *err);
    31 
    31 
    99  * If the connect succeeded, \a err should be given as NULL. If the connect failed, \a err should contain the error
    99  * If the connect succeeded, \a err should be given as NULL. If the connect failed, \a err should contain the error
   100  * info.
   100  * info.
   101  *
   101  *
   102  * If called from the transport_methods::_connected method, pass in direct to avoid recursion.
   102  * If called from the transport_methods::_connected method, pass in direct to avoid recursion.
   103  *
   103  *
   104  * This sets the transport::connected flag, regardless of which callback it invokes.
   104  * XXX: This sets the transport::connected flag, regardless of which callback it invokes.
   105  *
   105  *
   106  * XXX: implement proper layering of types, linkig transport_type's together
   106  * XXX: implement proper layering of types by taking a transport_type arg and chaining down from there.
   107  *
   107  *
   108  * @param transport the transport state
   108  * @param transport the transport state
   109  * @param err NULL for success, otherwise connect error code
   109  * @param err NULL for success, otherwise connect error code
   110  * @param direct call the user callback directly, ignoring any method
   110  * @param direct call the user callback directly, ignoring any method
   111  */
   111  */