api.h
net/opt.h
net/pbuf.h
net/sys.h
net/ipv4/ip.h
net/udp.h
net/tcp.h
net/err.h
src/sys/include/net/api_msg.h
src/sys/net/api/api_lib.c
src/sys/net/api/sockets.c
src/sys/net/net/bot.c
src/sys/net/net/shell.c
src/sys/net/net/udpecho.c
net/ipv4/ip.h
arch/lib.h
net/netif.h
net/udp.h
arch/cpu.h
arch/sys_arch.h
net/tcp.h
ubixos/types.h
sys/_types.h
net/arch.h
net/ipv4/icmp.h
net/lwipopts.h
net/def.h
net/mem.h
net/ipv4/ip_addr.h
net/err.h
src/sys/include/net/api.h
net/opt.h
net/sys.h
net/pbuf.h
net/debug.h
net/ipv4/inet.h
arch/cc.h
src/sys/net/net/udpecho.c
src/sys/net/net/bot.c
src/sys/net/api/tcpip.c
src/sys/include/net/tcpip.h
src/sys/include/net/api_msg.h
src/sys/net/net/shell.c
src/sys/net/api/api_lib.c
src/sys/net/net/init.c
src/sys/include/net/api.h
src/sys/net/api/sockets.c
src/sys/net/api/api_msg.c
netbuf
netconn
NETCONN_COPY
0x01
lwip_send
lwip_write
NETCONN_NOCOPY
0x00
sendstr
netconn_state
NETCONN_NONE
NETCONN_WRITE
NETCONN_ACCEPT
NETCONN_RECV
NETCONN_CONNECT
NETCONN_CLOSE
netconn_type
NETCONN_TCP
NETCONN_UDP
NETCONN_UDPLITE
NETCONN_UDPNOCHKSUM
void * void* netbuf_alloc (struct netbuf *buf, uInt16 size) netbuf_alloc struct netbuf * buf uInt16 size NULL netbuf::p pbuf::payload pbuf_alloc pbuf_free PBUF_RAM PBUF_TRANSPORT netbuf::ptr
void void netbuf_chain (struct netbuf *head, struct netbuf *tail) netbuf_chain struct netbuf * head struct netbuf * tail memp_freep MEMP_NETBUF netbuf::p pbuf_chain netbuf::ptr
void void netbuf_copy (struct netbuf *buf, void *dataptr, uInt16 len) netbuf_copy struct netbuf * buf void * dataptr uInt16 len netbuf_copy_partial bot_thread shell_main udpecho_thread
void void netbuf_copy_partial (struct netbuf *buf, void *dataptr, uInt16 len, uInt16 offset) netbuf_copy_partial struct netbuf * buf void * dataptr uInt16 len uInt16 offset pbuf::len pbuf::next NULL netbuf::p pbuf::payload lwip_recvfrom netbuf_copy
err_t err_t netbuf_data (struct netbuf *buf, void **dataptr, uInt16 *len) netbuf_data struct netbuf * buf void ** dataptr uInt16 * len ERR_BUF ERR_OK pbuf::len NULL pbuf::payload netbuf::ptr
void void netbuf_delete (struct netbuf *buf) netbuf_delete struct netbuf * buf memp_freep MEMP_NETBUF NULL netbuf::p pbuf_free netbuf::ptr bot_thread lwip_close lwip_recvfrom lwip_send netconn_delete shell_main udpecho_thread
void void netbuf_first (struct netbuf *buf) netbuf_first struct netbuf * buf netbuf::p netbuf::ptr
void void netbuf_free (struct netbuf *buf) netbuf_free struct netbuf * buf NULL netbuf::p pbuf_free netbuf::ptr
ip_addr * struct ip_addr* netbuf_fromaddr (struct netbuf *buf) netbuf_fromaddr struct netbuf * buf netbuf::fromaddr lwip_recvfrom udpecho_thread
uInt16 uInt16 netbuf_fromport (struct netbuf *buf) netbuf_fromport struct netbuf * buf netbuf::fromport lwip_recvfrom udpecho_thread
uInt16 uInt16 netbuf_len (struct netbuf *buf) netbuf_len struct netbuf * buf netbuf::p pbuf::tot_len bot_thread lwip_recvfrom shell_main
netbuf * struct netbuf* netbuf_new (void) netbuf_new void memp_mallocp MEMP_NETBUF NULL netbuf::p netbuf::ptr lwip_send
Int8 Int8 netbuf_next (struct netbuf *buf) netbuf_next struct netbuf * buf pbuf::next NULL netbuf::ptr
void void netbuf_ref (struct netbuf *buf, void *dataptr, uInt16 size) netbuf_ref struct netbuf * buf void * dataptr uInt16 size pbuf::len NULL netbuf::p pbuf::payload pbuf_alloc pbuf_free PBUF_ROM PBUF_TRANSPORT netbuf::ptr pbuf::tot_len lwip_send
netconn * struct netconn* netconn_accept (struct netconn *conn) netconn_accept struct netconn * conn netconn::acceptmbox NULL sys_mbox_fetch lwip_accept shell_thread
err_t err_t netconn_addr (struct netconn *conn, struct ip_addr **addr, uInt16 *port) netconn_addr struct netconn * conn struct ip_addr ** addr uInt16 * port netconn::err ERR_OK tcp_pcb::local_ip udp_pcb::local_port tcp_pcb::local_port NETCONN_TCP NETCONN_UDP NETCONN_UDPLITE NETCONN_UDPNOCHKSUM netconn::pcb netconn::tcp netconn::type netconn::udp
err_t err_t netconn_bind (struct netconn *conn, struct ip_addr *addr, uInt16 port) netconn_bind struct netconn * conn struct ip_addr * addr uInt16 port API_MSG_BIND api_msg_post api_msg_msg::bc api_msg_msg::conn netconn::err ERR_MEM ERR_VAL netconn::mbox MEMP_API_MSG memp_freep memp_mallocp api_msg::msg api_msg_msg::msg NETCONN_TCP NULL netconn::recvmbox sys_mbox_fetch sys_mbox_new SYS_MBOX_NULL netconn::type lwip_bind shell_thread udpecho_thread
err_t err_t netconn_close (struct netconn *conn) netconn_close struct netconn * conn API_MSG_CLOSE api_msg_post api_msg_msg::conn netconn::err ERR_MEM ERR_VAL netconn::mbox MEMP_API_MSG memp_freep memp_mallocp api_msg::msg api_msg_msg::msg NETCONN_CLOSE NETCONN_NONE NULL netconn::sem netconn::state sys_mbox_fetch SYS_SEM_NULL sys_sem_wait shell_main
err_t err_t netconn_connect (struct netconn *conn, struct ip_addr *addr, uInt16 port) netconn_connect struct netconn * conn struct ip_addr * addr uInt16 port API_MSG_CONNECT api_msg_post api_msg_msg::bc api_msg_msg::conn netconn::err ERR_MEM ERR_VAL kprintf netconn::mbox MEMP_API_MSG memp_freep memp_mallocp api_msg::msg api_msg_msg::msg NULL netconn::recvmbox sys_mbox_fetch sys_mbox_new SYS_MBOX_NULL bot_thread lwip_connect lwip_sendto udpecho_thread
err_t err_t netconn_delete (struct netconn *conn) netconn_delete struct netconn * conn netconn::acceptmbox API_MSG_DELCONN api_msg_post api_msg_msg::conn ERR_MEM ERR_OK netconn::mbox MEMP_API_MSG memp_free memp_freep memp_mallocp MEMP_NETCONN api_msg::msg api_msg_msg::msg netbuf_delete netconn_delete NETCONN_TCP NULL pbuf_free netconn::recvmbox netconn::sem sys_arch_mbox_fetch sys_mbox_fetch sys_mbox_free SYS_MBOX_NULL sys_sem_free SYS_SEM_NULL netconn::type lwip_accept lwip_close lwip_socket netconn_delete
err_t err_t netconn_err (struct netconn *conn) netconn_err struct netconn * conn netconn::err
err_t err_t netconn_listen (struct netconn *conn) netconn_listen struct netconn * conn netconn::acceptmbox API_MSG_LISTEN api_msg_post api_msg_msg::conn netconn::err ERR_MEM ERR_VAL netconn::mbox MEMP_API_MSG memp_freep memp_mallocp api_msg::msg api_msg_msg::msg NULL sys_mbox_fetch sys_mbox_new SYS_MBOX_NULL lwip_listen shell_thread
netconn * struct netconn* netconn_new (enum netconn_type type) netconn_new enum netconn_type type netconn::acceptmbox netconn::mbox memp_freep memp_mallocp MEMP_NETCONN NETCONN_NONE NULL netconn::pcb netconn::recvmbox netconn::sem netconn::state sys_mbox_new SYS_MBOX_NULL SYS_SEM_NULL netconn::tcp netconn::type bot_thread lwip_socket shell_thread udpecho_thread
err_t err_t netconn_peer (struct netconn *conn, struct ip_addr **addr, uInt16 *port) netconn_peer struct netconn * conn struct ip_addr ** addr uInt16 * port netconn::err ERR_OK NETCONN_TCP NETCONN_UDP NETCONN_UDPLITE NETCONN_UDPNOCHKSUM netconn::pcb udp_pcb::remote_ip tcp_pcb::remote_ip udp_pcb::remote_port tcp_pcb::remote_port netconn::tcp netconn::type netconn::udp lwip_accept lwip_sendto
netbuf * struct netbuf* netconn_recv (struct netconn *conn) netconn_recv struct netconn * conn API_LIB_DEBUG api_msg_post API_MSG_RECV api_msg_msg::conn DEBUGF netconn::err ERR_CONN ERR_MEM ERR_OK netbuf::fromaddr netbuf::fromport api_msg_msg::len LISTEN netconn::mbox MEMP_API_MSG memp_freep memp_mallocp MEMP_NETBUF api_msg::msg api_msg_msg::msg NETCONN_TCP NULL netbuf::p netconn::pcb netbuf::ptr netconn::recvmbox tcp_pcb::state sys_mbox_fetch sys_mbox_free SYS_MBOX_NULL netconn::tcp pbuf::tot_len netconn::type api_msg::type bot_thread lwip_recvfrom shell_main udpecho_thread
err_t err_t netconn_send (struct netconn *conn, struct netbuf *buf) netconn_send struct netconn * conn struct netbuf * buf API_LIB_DEBUG api_msg_post API_MSG_SEND api_msg_msg::conn DEBUGF netconn::err ERR_MEM ERR_OK ERR_VAL netconn::mbox MEMP_API_MSG memp_freep memp_mallocp api_msg::msg api_msg_msg::msg NULL netbuf::p api_msg_msg::p sys_mbox_fetch pbuf::tot_len lwip_send udpecho_thread
enum netconn_type enum netconn_type netconn_type (struct netconn *conn) netconn_type struct netconn * conn netconn::type lwip_recvfrom lwip_send lwip_write
err_t err_t netconn_write (struct netconn *conn, void *dataptr, uInt16 size, uInt8 copy) netconn_write struct netconn * conn void * dataptr uInt16 size uInt8 copy API_LIB_DEBUG api_msg_post API_MSG_WRITE api_msg_msg::conn DEBUGF netconn::err ERR_MEM ERR_OK ERR_VAL netconn::mbox MEMP_API_MSG memp_freep memp_mallocp api_msg::msg api_msg_msg::msg NETCONN_NONE NETCONN_TCP NETCONN_WRITE NULL netconn::pcb netconn::sem netconn::state sys_mbox_fetch sys_sem_free sys_sem_new SYS_SEM_NULL sys_sem_wait netconn::tcp tcp_sndbuf netconn::type api_msg_msg::w lwip_send lwip_write sendstr

    /*
    *Copyright(c)2001,SwedishInstituteofComputerScience.
    *Allrightsreserved.
    *
    *Redistributionanduseinsourceandbinaryforms,withorwithout
    *modification,arepermittedprovidedthatthefollowingconditions
    *aremet:
    *1.Redistributionsofsourcecodemustretaintheabovecopyright
    *notice,thislistofconditionsandthefollowingdisclaimer.
    *2.Redistributionsinbinaryformmustreproducetheabovecopyright
    *notice,thislistofconditionsandthefollowingdisclaimerinthe
    *documentationand/orothermaterialsprovidedwiththedistribution.
    *3.NeitherthenameoftheInstitutenorthenamesofitscontributors
    *maybeusedtoendorseorpromoteproductsderivedfromthissoftware
    *withoutspecificpriorwrittenpermission.
    *
    *THISSOFTWAREISPROVIDEDBYTHEINSTITUTEANDCONTRIBUTORS``ASIS''AND
    *ANYEXPRESSORIMPLIEDWARRANTIES,INCLUDING,BUTNOTLIMITEDTO,THE
    *IMPLIEDWARRANTIESOFMERCHANTABILITYANDFITNESSFORAPARTICULARPURPOSE
    *AREDISCLAIMED.INNOEVENTSHALLTHEINSTITUTEORCONTRIBUTORSBELIABLE
    *FORANYDIRECT,INDIRECT,INCIDENTAL,SPECIAL,EXEMPLARY,ORCONSEQUENTIAL
    *DAMAGES(INCLUDING,BUTNOTLIMITEDTO,PROCUREMENTOFSUBSTITUTEGOODS
    *ORSERVICES;LOSSOFUSE,DATA,ORPROFITS;ORBUSINESSINTERRUPTION)
    *HOWEVERCAUSEDANDONANYTHEORYOFLIABILITY,WHETHERINCONTRACT,STRICT
    *LIABILITY,ORTORT(INCLUDINGNEGLIGENCEOROTHERWISE)ARISINGINANYWAY
    *OUTOFTHEUSEOFTHISSOFTWARE,EVENIFADVISEDOFTHEPOSSIBILITYOF
    *SUCHDAMAGE.
    *
    *ThisfileispartofthelwIPTCP/IPstack.
    *
    *Author:AdamDunkels<adam@sics.se>
    *
    *$Id: api_8h.xml 88 2016-01-12 00:11:29Z reddawg $
    */
    #ifndef__LWIP_API_H__
    #define__LWIP_API_H__

    #include"net/opt.h"
    #include"net/pbuf.h"
    #include"net/sys.h"

    #include"net/ipv4/ip.h"

    #include"net/udp.h"
    #include"net/tcp.h"

    #include"net/err.h"

    #defineNETCONN_NOCOPY0x00
    #defineNETCONN_COPY0x01

    enumnetconn_type{
    NETCONN_TCP,
    NETCONN_UDP,
    NETCONN_UDPLITE,
    NETCONN_UDPNOCHKSUM
    };

    enumnetconn_state{
    NETCONN_NONE,
    NETCONN_WRITE,
    NETCONN_ACCEPT,
    NETCONN_RECV,
    NETCONN_CONNECT,
    NETCONN_CLOSE
    };

    structnetbuf{
    structpbuf*p,*ptr;
    structip_addr*fromaddr;
    uInt16fromport;
    err_terr;
    };

    structnetconn{
    enumnetconn_typetype;
    enumnetconn_statestate;
    union{
    structtcp_pcb*tcp;
    structudp_pcb*udp;
    }pcb;
    err_terr;
    sys_mbox_tmbox;
    sys_mbox_trecvmbox;
    sys_mbox_tacceptmbox;
    sys_sem_tsem;
    };

    /*Networkbufferfunctions:*/
    structnetbuf*netbuf_new(void);
    voidnetbuf_delete(structnetbuf*buf);
    void*netbuf_alloc(structnetbuf*buf,uInt16size);
    voidnetbuf_free(structnetbuf*buf);
    voidnetbuf_ref(structnetbuf*buf,
    void*dataptr,uInt16size);
    voidnetbuf_chain(structnetbuf*head,
    structnetbuf*tail);

    uInt16netbuf_len(structnetbuf*buf);
    err_tnetbuf_data(structnetbuf*buf,
    void**dataptr,uInt16*len);
    Int8netbuf_next(structnetbuf*buf);
    voidnetbuf_first(structnetbuf*buf);

    voidnetbuf_copy(structnetbuf*buf,
    void*dataptr,uInt16len);
    structip_addr*netbuf_fromaddr(structnetbuf*buf);
    uInt16netbuf_fromport(structnetbuf*buf);

    /*Networkconnectionfunctions:*/
    structnetconn*netconn_new(enumnetconn_typetype);
    err_tnetconn_delete(structnetconn*conn);
    enumnetconn_typenetconn_type(structnetconn*conn);
    err_tnetconn_peer(structnetconn*conn,
    structip_addr**addr,
    uInt16*port);
    err_tnetconn_addr(structnetconn*conn,
    structip_addr**addr,
    uInt16*port);
    err_tnetconn_bind(structnetconn*conn,
    structip_addr*addr,
    uInt16port);
    err_tnetconn_connect(structnetconn*conn,
    structip_addr*addr,
    uInt16port);
    err_tnetconn_listen(structnetconn*conn);
    structnetconn*netconn_accept(structnetconn*conn);
    structnetbuf*netconn_recv(structnetconn*conn);
    err_tnetconn_send(structnetconn*conn,
    structnetbuf*buf);
    err_tnetconn_write(structnetconn*conn,
    void*dataptr,uInt16size,
    uInt8copy);
    err_tnetconn_close(structnetconn*conn);

    err_tnetconn_err(structnetconn*conn);

    voidnetbuf_copy_partial(structnetbuf*buf,void*dataptr,uInt16len,uInt16offset);

    #endif/*__LWIP_API_H__*/