About: Netconn bind   Sponge Permalink

An Entity of Type : owl:Thing, within Data Space : 134.155.108.49:8890 associated with source dataset(s)

Bind a netconn to a local IP address or to any IP address. Note that if you try to bind the same address and/or port you might get an error (ERR_USE, address in use), even if you delete the netconn. Only after some time (minutes) the resources are completely cleared in the underlying stack due to the need to follow the TCP specification and go through the TCP timewait state. The following function is used to implement a server. netconn_bind can be used for a client too (see example in netconn_connect) but is often omitted if you don't care about the local address and port.

AttributesValues
rdfs:label
  • Netconn bind
rdfs:comment
  • Bind a netconn to a local IP address or to any IP address. Note that if you try to bind the same address and/or port you might get an error (ERR_USE, address in use), even if you delete the netconn. Only after some time (minutes) the resources are completely cleared in the underlying stack due to the need to follow the TCP specification and go through the TCP timewait state. The following function is used to implement a server. netconn_bind can be used for a client too (see example in netconn_connect) but is often omitted if you don't care about the local address and port.
dcterms:subject
abstract
  • Bind a netconn to a local IP address or to any IP address. Note that if you try to bind the same address and/or port you might get an error (ERR_USE, address in use), even if you delete the netconn. Only after some time (minutes) the resources are completely cleared in the underlying stack due to the need to follow the TCP specification and go through the TCP timewait state. The following function is used to implement a server. netconn_bind can be used for a client too (see example in netconn_connect) but is often omitted if you don't care about the local address and port. Example of a server (lwIP v1.4.0): #define TNetConn struct netconn * TNetConn xNetConn = netconn_new ( NETCONN_TCP ); netconn_bind ( xNetConn, IP_ADDR_ANY, cTcpPort ); netconn_listen ( xNetConn ); while ( true ) { TNetConn xNewConn; Int8 xErr = netconn_accept ( xNetConn, &xNewConn ); if ( xErr != ERR_OK ) continue; NetConnServeClient ( xNewConn ); // process client request netconn_delete ( xNewConn ); } (last changed: Sept. 26, 2011)
Alternative Linked Data Views: ODE     Raw Data in: CXML | CSV | RDF ( N-Triples N3/Turtle JSON XML ) | OData ( Atom JSON ) | Microdata ( JSON HTML) | JSON-LD    About   
This material is Open Knowledge   W3C Semantic Web Technology [RDF Data] Valid XHTML + RDFa
OpenLink Virtuoso version 07.20.3217, on Linux (x86_64-pc-linux-gnu), Standard Edition
Data on this page belongs to its respective rights holders.
Virtuoso Faceted Browser Copyright © 2009-2012 OpenLink Software