Network Data Structures & Functions - Chad Salinas ::: Data Scientist
Life and times of Chad Salinas
Chad Salinas, golf caddy, data scientist, chad rPubs, recovering chess addict, daddy caddy
1192
post-template-default,single,single-post,postid-1192,single-format-standard,qode-listing-1.0.1,qode-social-login-1.0,qode-news-1.0,qode-quick-links-1.0,qode-restaurant-1.0,ajax_fade,page_not_loaded,,qode-title-hidden,qode_grid_1300,qode-theme-ver-12.0.1,qode-theme-bridge,bridge,wpb-js-composer js-comp-ver-5.4.2,vc_responsive

Network Data Structures & Functions

Network Data Structures & Functions

http response codes
http header
http payload
Network Data Structures
// in ipV4
struct hostent {
    char* h_name;
    char** h_aliases;
    int h_addrtype;
    int h_length;
    char** h_addr_list;
};
struct in_addr {
    int s_addr;
};
Network Functions
struct hostent* getHostByName(const char* name);
struct hostent* getHostByAddr(const char* addr, int type, int length);
Abstractions with increasing modularity
  • function call – no modularity with caller/callee stack discipline
  • system call – enforced modularity – caller can’t access to the ghost of the stack space for system calls
  • pipe
  • network

No Comments

Sorry, the comment form is closed at this time.