X-Git-Url: https://git.saurik.com/cycript.git/blobdiff_plain/c1d3e52e58e86c49f9d04e06ae8e0ece4b98250c..5b4dabb2071e2e09cd70a156beed03b12bec477a:/Network.cpp diff --git a/Network.cpp b/Network.cpp index d9537bc..9e3c6db 100644 --- a/Network.cpp +++ b/Network.cpp @@ -1,5 +1,5 @@ -/* Cycript - Optimizing JavaScript Compiler/Runtime - * Copyright (C) 2009-2015 Jay Freeman (saurik) +/* Cycript - The Truly Universal Scripting Language + * Copyright (C) 2009-2016 Jay Freeman (saurik) */ /* GNU Affero General Public License, Version 3 {{{ */ @@ -26,7 +26,7 @@ #include "Error.hpp" -bool CYRecvAll_(int socket, uint8_t *data, size_t size) { +_visible bool CYRecvAll_(int socket, uint8_t *data, size_t size) { while (size != 0) if (size_t writ = _syscall(recv(socket, data, size, 0))) { data += writ; size -= writ; @@ -35,7 +35,7 @@ bool CYRecvAll_(int socket, uint8_t *data, size_t size) { return true; } -bool CYSendAll_(int socket, const uint8_t *data, size_t size) { +_visible bool CYSendAll_(int socket, const uint8_t *data, size_t size) { while (size != 0) if (size_t writ = _syscall(send(socket, data, size, 0))) { data += writ; size -= writ;