{"id":1921,"date":"2012-08-02T22:40:06","date_gmt":"2012-08-02T20:40:06","guid":{"rendered":"http:\/\/blog.fh-kaernten.at\/wehr\/?p=1921"},"modified":"2012-08-02T22:44:58","modified_gmt":"2012-08-02T20:44:58","slug":"fixing-error-httpserver-cpp-read-write-was-not-declared-in-this-scope-on-building-vpl_xmlrpc_jail-1-2-under-latest-debian","status":"publish","type":"post","link":"https:\/\/blog.fh-kaernten.at\/wehr\/2012\/08\/02\/fixing-error-httpserver-cpp-read-write-was-not-declared-in-this-scope-on-building-vpl_xmlrpc_jail-1-2-under-latest-debian\/","title":{"rendered":"Fixing error &#8220;httpServer.cpp read, write was not declared in this scope&#8221; on building vpl_xmlrpc_jail-1.2 under latest Debian"},"content":{"rendered":"<p id=\"top\" \/>For all which also got this errors,<\/p>\n<pre class=\"brush: bash; gutter: true; first-line: 1\">httpServer.cpp: In member function \"std::string HttpJailServer::receive(int, e_t, size_t)\":\r\nhttpServer.cpp:145:36: error: \"read\"was not declared in this scope\r\nhttpServer.cpp: In member function \"void HttpJailServer::sendRaw(const char*,ze_t)\":\r\nhttpServer.cpp:216:49: error: \"write\" was not declared in this scope\r\nhttpServer.cpp: In member function \"void HttpJailServer::send(int, const stri, const string&amp;)\":\r\nhttpServer.cpp:250:15: error: \"close\" was not declared in this scope<\/pre>\n<p>on building <strong>vpl_xmlrpc_jail-1.2<\/strong> for <a href=\"http:\/\/moodle.org\/\">Moodle<\/a> <a href=\"http:\/\/vpl.dis.ulpgc.es\/\">VPL <\/a>module, there seems to be a missing include for these methods.<\/p>\n<p>Just add,<\/p>\n<p>#include &lt;unistd.h&gt;<\/p>\n<p>to the httpServer.cpp, these should fix it.<\/p>\n<p>have fun<\/p>\n<p>Mario<\/p>\n","protected":false},"excerpt":{"rendered":"<p>For all which also got this errors, httpServer.cpp: In member function &#8220;std::string HttpJailServer::receive(int, e_t, size_t)&#8221;: httpServer.cpp:145:36: error: &#8220;read&#8221;was not declared in this scope httpServer.cpp: In member function &#8220;void HttpJailServer::sendRaw(const char*,ze_t)&#8221;: httpServer.cpp:216:49: error: &#8220;write&#8221; was not declared in this scope httpServer.cpp: In member function &#8220;void HttpJailServer::send(int, const stri, const string&amp;)&#8221;: httpServer.cpp:250:15: error: &#8220;close&#8221; was not declared &hellip; <a href=\"https:\/\/blog.fh-kaernten.at\/wehr\/2012\/08\/02\/fixing-error-httpserver-cpp-read-write-was-not-declared-in-this-scope-on-building-vpl_xmlrpc_jail-1-2-under-latest-debian\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Fixing error &#8220;httpServer.cpp read, write was not declared in this scope&#8221; on building vpl_xmlrpc_jail-1.2 under latest Debian<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"ngg_post_thumbnail":0,"footnotes":""},"categories":[9],"tags":[15],"class_list":["post-1921","post","type-post","status-publish","format-standard","hentry","category-linux-stuff","tag-fixes"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Fixing error &quot;httpServer.cpp read, write was not declared in this scope&quot; on building vpl_xmlrpc_jail-1.2 under latest Debian - Mario&#039;s TinyLab<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"http:\/\/blog.fh-kaernten.at\/wehr\/2012\/08\/02\/fixing-error-httpserver-cpp-read-write-was-not-declared-in-this-scope-on-building-vpl_xmlrpc_jail-1-2-under-latest-debian\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Fixing error &quot;httpServer.cpp read, write was not declared in this scope&quot; on building vpl_xmlrpc_jail-1.2 under latest Debian - Mario&#039;s TinyLab\" \/>\n<meta property=\"og:description\" content=\"For all which also got this errors, httpServer.cpp: In member function &quot;std::string HttpJailServer::receive(int, e_t, size_t)&quot;: httpServer.cpp:145:36: error: &quot;read&quot;was not declared in this scope httpServer.cpp: In member function &quot;void HttpJailServer::sendRaw(const char*,ze_t)&quot;: httpServer.cpp:216:49: error: &quot;write&quot; was not declared in this scope httpServer.cpp: In member function &quot;void HttpJailServer::send(int, const stri, const string&amp;)&quot;: httpServer.cpp:250:15: error: &quot;close&quot; was not declared &hellip; Continue reading Fixing error &#8220;httpServer.cpp read, write was not declared in this scope&#8221; on building vpl_xmlrpc_jail-1.2 under latest Debian &rarr;\" \/>\n<meta property=\"og:url\" content=\"http:\/\/blog.fh-kaernten.at\/wehr\/2012\/08\/02\/fixing-error-httpserver-cpp-read-write-was-not-declared-in-this-scope-on-building-vpl_xmlrpc_jail-1-2-under-latest-debian\/\" \/>\n<meta property=\"og:site_name\" content=\"Mario&#039;s TinyLab\" \/>\n<meta property=\"article:published_time\" content=\"2012-08-02T20:40:06+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2012-08-02T20:44:58+00:00\" \/>\n<meta name=\"author\" content=\"Mario Wehr\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Mario Wehr\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"http:\\\/\\\/blog.fh-kaernten.at\\\/wehr\\\/2012\\\/08\\\/02\\\/fixing-error-httpserver-cpp-read-write-was-not-declared-in-this-scope-on-building-vpl_xmlrpc_jail-1-2-under-latest-debian\\\/#article\",\"isPartOf\":{\"@id\":\"http:\\\/\\\/blog.fh-kaernten.at\\\/wehr\\\/2012\\\/08\\\/02\\\/fixing-error-httpserver-cpp-read-write-was-not-declared-in-this-scope-on-building-vpl_xmlrpc_jail-1-2-under-latest-debian\\\/\"},\"author\":{\"name\":\"Mario Wehr\",\"@id\":\"https:\\\/\\\/blog.fh-kaernten.at\\\/wehr\\\/#\\\/schema\\\/person\\\/8761b4d788b13b547de9ccd6504ce62d\"},\"headline\":\"Fixing error &#8220;httpServer.cpp read, write was not declared in this scope&#8221; on building vpl_xmlrpc_jail-1.2 under latest Debian\",\"datePublished\":\"2012-08-02T20:40:06+00:00\",\"dateModified\":\"2012-08-02T20:44:58+00:00\",\"mainEntityOfPage\":{\"@id\":\"http:\\\/\\\/blog.fh-kaernten.at\\\/wehr\\\/2012\\\/08\\\/02\\\/fixing-error-httpserver-cpp-read-write-was-not-declared-in-this-scope-on-building-vpl_xmlrpc_jail-1-2-under-latest-debian\\\/\"},\"wordCount\":64,\"commentCount\":0,\"keywords\":[\"fixes\"],\"articleSection\":[\"Linux Stuff\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"http:\\\/\\\/blog.fh-kaernten.at\\\/wehr\\\/2012\\\/08\\\/02\\\/fixing-error-httpserver-cpp-read-write-was-not-declared-in-this-scope-on-building-vpl_xmlrpc_jail-1-2-under-latest-debian\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"http:\\\/\\\/blog.fh-kaernten.at\\\/wehr\\\/2012\\\/08\\\/02\\\/fixing-error-httpserver-cpp-read-write-was-not-declared-in-this-scope-on-building-vpl_xmlrpc_jail-1-2-under-latest-debian\\\/\",\"url\":\"http:\\\/\\\/blog.fh-kaernten.at\\\/wehr\\\/2012\\\/08\\\/02\\\/fixing-error-httpserver-cpp-read-write-was-not-declared-in-this-scope-on-building-vpl_xmlrpc_jail-1-2-under-latest-debian\\\/\",\"name\":\"Fixing error \\\"httpServer.cpp read, write was not declared in this scope\\\" on building vpl_xmlrpc_jail-1.2 under latest Debian - Mario&#039;s TinyLab\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/blog.fh-kaernten.at\\\/wehr\\\/#website\"},\"datePublished\":\"2012-08-02T20:40:06+00:00\",\"dateModified\":\"2012-08-02T20:44:58+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/blog.fh-kaernten.at\\\/wehr\\\/#\\\/schema\\\/person\\\/8761b4d788b13b547de9ccd6504ce62d\"},\"breadcrumb\":{\"@id\":\"http:\\\/\\\/blog.fh-kaernten.at\\\/wehr\\\/2012\\\/08\\\/02\\\/fixing-error-httpserver-cpp-read-write-was-not-declared-in-this-scope-on-building-vpl_xmlrpc_jail-1-2-under-latest-debian\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\\\/\\\/blog.fh-kaernten.at\\\/wehr\\\/2012\\\/08\\\/02\\\/fixing-error-httpserver-cpp-read-write-was-not-declared-in-this-scope-on-building-vpl_xmlrpc_jail-1-2-under-latest-debian\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\\\/\\\/blog.fh-kaernten.at\\\/wehr\\\/2012\\\/08\\\/02\\\/fixing-error-httpserver-cpp-read-write-was-not-declared-in-this-scope-on-building-vpl_xmlrpc_jail-1-2-under-latest-debian\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/blog.fh-kaernten.at\\\/wehr\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Fixing error &#8220;httpServer.cpp read, write was not declared in this scope&#8221; on building vpl_xmlrpc_jail-1.2 under latest Debian\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/blog.fh-kaernten.at\\\/wehr\\\/#website\",\"url\":\"https:\\\/\\\/blog.fh-kaernten.at\\\/wehr\\\/\",\"name\":\"Mario&#039;s TinyLab\",\"description\":\"About cool\\\/interesting Projects and Technologies\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/blog.fh-kaernten.at\\\/wehr\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/blog.fh-kaernten.at\\\/wehr\\\/#\\\/schema\\\/person\\\/8761b4d788b13b547de9ccd6504ce62d\",\"name\":\"Mario Wehr\",\"url\":\"https:\\\/\\\/blog.fh-kaernten.at\\\/wehr\\\/author\\\/wehr\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Fixing error \"httpServer.cpp read, write was not declared in this scope\" on building vpl_xmlrpc_jail-1.2 under latest Debian - Mario&#039;s TinyLab","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"http:\/\/blog.fh-kaernten.at\/wehr\/2012\/08\/02\/fixing-error-httpserver-cpp-read-write-was-not-declared-in-this-scope-on-building-vpl_xmlrpc_jail-1-2-under-latest-debian\/","og_locale":"en_US","og_type":"article","og_title":"Fixing error \"httpServer.cpp read, write was not declared in this scope\" on building vpl_xmlrpc_jail-1.2 under latest Debian - Mario&#039;s TinyLab","og_description":"For all which also got this errors, httpServer.cpp: In member function \"std::string HttpJailServer::receive(int, e_t, size_t)\": httpServer.cpp:145:36: error: \"read\"was not declared in this scope httpServer.cpp: In member function \"void HttpJailServer::sendRaw(const char*,ze_t)\": httpServer.cpp:216:49: error: \"write\" was not declared in this scope httpServer.cpp: In member function \"void HttpJailServer::send(int, const stri, const string&amp;)\": httpServer.cpp:250:15: error: \"close\" was not declared &hellip; Continue reading Fixing error &#8220;httpServer.cpp read, write was not declared in this scope&#8221; on building vpl_xmlrpc_jail-1.2 under latest Debian &rarr;","og_url":"http:\/\/blog.fh-kaernten.at\/wehr\/2012\/08\/02\/fixing-error-httpserver-cpp-read-write-was-not-declared-in-this-scope-on-building-vpl_xmlrpc_jail-1-2-under-latest-debian\/","og_site_name":"Mario&#039;s TinyLab","article_published_time":"2012-08-02T20:40:06+00:00","article_modified_time":"2012-08-02T20:44:58+00:00","author":"Mario Wehr","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Mario Wehr","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"http:\/\/blog.fh-kaernten.at\/wehr\/2012\/08\/02\/fixing-error-httpserver-cpp-read-write-was-not-declared-in-this-scope-on-building-vpl_xmlrpc_jail-1-2-under-latest-debian\/#article","isPartOf":{"@id":"http:\/\/blog.fh-kaernten.at\/wehr\/2012\/08\/02\/fixing-error-httpserver-cpp-read-write-was-not-declared-in-this-scope-on-building-vpl_xmlrpc_jail-1-2-under-latest-debian\/"},"author":{"name":"Mario Wehr","@id":"https:\/\/blog.fh-kaernten.at\/wehr\/#\/schema\/person\/8761b4d788b13b547de9ccd6504ce62d"},"headline":"Fixing error &#8220;httpServer.cpp read, write was not declared in this scope&#8221; on building vpl_xmlrpc_jail-1.2 under latest Debian","datePublished":"2012-08-02T20:40:06+00:00","dateModified":"2012-08-02T20:44:58+00:00","mainEntityOfPage":{"@id":"http:\/\/blog.fh-kaernten.at\/wehr\/2012\/08\/02\/fixing-error-httpserver-cpp-read-write-was-not-declared-in-this-scope-on-building-vpl_xmlrpc_jail-1-2-under-latest-debian\/"},"wordCount":64,"commentCount":0,"keywords":["fixes"],"articleSection":["Linux Stuff"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["http:\/\/blog.fh-kaernten.at\/wehr\/2012\/08\/02\/fixing-error-httpserver-cpp-read-write-was-not-declared-in-this-scope-on-building-vpl_xmlrpc_jail-1-2-under-latest-debian\/#respond"]}]},{"@type":"WebPage","@id":"http:\/\/blog.fh-kaernten.at\/wehr\/2012\/08\/02\/fixing-error-httpserver-cpp-read-write-was-not-declared-in-this-scope-on-building-vpl_xmlrpc_jail-1-2-under-latest-debian\/","url":"http:\/\/blog.fh-kaernten.at\/wehr\/2012\/08\/02\/fixing-error-httpserver-cpp-read-write-was-not-declared-in-this-scope-on-building-vpl_xmlrpc_jail-1-2-under-latest-debian\/","name":"Fixing error \"httpServer.cpp read, write was not declared in this scope\" on building vpl_xmlrpc_jail-1.2 under latest Debian - Mario&#039;s TinyLab","isPartOf":{"@id":"https:\/\/blog.fh-kaernten.at\/wehr\/#website"},"datePublished":"2012-08-02T20:40:06+00:00","dateModified":"2012-08-02T20:44:58+00:00","author":{"@id":"https:\/\/blog.fh-kaernten.at\/wehr\/#\/schema\/person\/8761b4d788b13b547de9ccd6504ce62d"},"breadcrumb":{"@id":"http:\/\/blog.fh-kaernten.at\/wehr\/2012\/08\/02\/fixing-error-httpserver-cpp-read-write-was-not-declared-in-this-scope-on-building-vpl_xmlrpc_jail-1-2-under-latest-debian\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["http:\/\/blog.fh-kaernten.at\/wehr\/2012\/08\/02\/fixing-error-httpserver-cpp-read-write-was-not-declared-in-this-scope-on-building-vpl_xmlrpc_jail-1-2-under-latest-debian\/"]}]},{"@type":"BreadcrumbList","@id":"http:\/\/blog.fh-kaernten.at\/wehr\/2012\/08\/02\/fixing-error-httpserver-cpp-read-write-was-not-declared-in-this-scope-on-building-vpl_xmlrpc_jail-1-2-under-latest-debian\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/blog.fh-kaernten.at\/wehr\/"},{"@type":"ListItem","position":2,"name":"Fixing error &#8220;httpServer.cpp read, write was not declared in this scope&#8221; on building vpl_xmlrpc_jail-1.2 under latest Debian"}]},{"@type":"WebSite","@id":"https:\/\/blog.fh-kaernten.at\/wehr\/#website","url":"https:\/\/blog.fh-kaernten.at\/wehr\/","name":"Mario&#039;s TinyLab","description":"About cool\/interesting Projects and Technologies","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/blog.fh-kaernten.at\/wehr\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/blog.fh-kaernten.at\/wehr\/#\/schema\/person\/8761b4d788b13b547de9ccd6504ce62d","name":"Mario Wehr","url":"https:\/\/blog.fh-kaernten.at\/wehr\/author\/wehr\/"}]}},"_links":{"self":[{"href":"https:\/\/blog.fh-kaernten.at\/wehr\/wp-json\/wp\/v2\/posts\/1921","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.fh-kaernten.at\/wehr\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.fh-kaernten.at\/wehr\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.fh-kaernten.at\/wehr\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.fh-kaernten.at\/wehr\/wp-json\/wp\/v2\/comments?post=1921"}],"version-history":[{"count":0,"href":"https:\/\/blog.fh-kaernten.at\/wehr\/wp-json\/wp\/v2\/posts\/1921\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.fh-kaernten.at\/wehr\/wp-json\/wp\/v2\/media?parent=1921"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.fh-kaernten.at\/wehr\/wp-json\/wp\/v2\/categories?post=1921"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.fh-kaernten.at\/wehr\/wp-json\/wp\/v2\/tags?post=1921"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}