Changeset 854e79a6 in mainline for uspace/srv/net/tl/tcp/tcp_type.h


Ignore:
Timestamp:
2011-11-17T14:53:35Z (13 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
004a5fe
Parents:
4f3f6285
Message:

TCP user call error codes. Some state checking and error reporting from
user calls.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/net/tl/tcp/tcp_type.h

    r4f3f6285 r854e79a6  
    6868} tcp_cstate_t;
    6969
     70/** Error codes returned by TCP user calls (per the spec). */
     71typedef enum {
     72        /* OK */
     73        TCP_EOK,
     74        /* Connection aborted due to user timeout */
     75        TCP_EABORTED,
     76        /* Connection already exists */
     77        TCP_EEXISTS,
     78        /* Connection closing */
     79        TCP_ECLOSING,
     80        /* Connection does not exist */
     81        TCP_ENOTEXIST,
     82        /* Connection illegal for this process */
     83        TCP_EILLEGAL,
     84        /* Connection not open */
     85        TCP_ENOTOPEN,
     86        /* Connection reset */
     87        TCP_ERESET,
     88        /* Foreign socket unspecified */
     89        TCP_EUNSPEC,
     90        /* Insufficient resources */
     91        TCP_ENORES,
     92        /* Precedence not allowed */
     93        TCP_EINVPREC,
     94        /* Security/compartment not allowed */
     95        TCP_EINVCOMP
     96} tcp_error_t;
     97
    7098typedef enum {
    7199        XF_PUSH         = 0x1,
Note: See TracChangeset for help on using the changeset viewer.