Made shared memory or shared files implementation a compile flag, fixed various compile warnings.
This commit is contained in:
parent
6d41cb96d5
commit
6a61b3be08
11 changed files with 102 additions and 139 deletions
|
@ -526,6 +526,7 @@ unsigned int Socket::Connection::iwrite(const void * buffer, int len) {
|
|||
/// returning the amount of bytes it actually read.
|
||||
/// \param buffer Location of the buffer to read to.
|
||||
/// \param len Amount of bytes to read.
|
||||
/// \param flags Flags to use in the recv call. Ignored on fake sockets.
|
||||
/// \returns The amount of bytes actually read.
|
||||
int Socket::Connection::iread(void * buffer, int len, int flags) {
|
||||
if (!connected() || len < 1) {
|
||||
|
@ -570,6 +571,7 @@ int Socket::Connection::iread(void * buffer, int len, int flags) {
|
|||
/// Data is read using iread (which is nonblocking if the Socket::Connection itself is),
|
||||
/// then appended to end of buffer.
|
||||
/// \param buffer Socket::Buffer to append data to.
|
||||
/// \param flags Flags to use in the recv call. Ignored on fake sockets.
|
||||
/// \return True if new data arrived, false otherwise.
|
||||
bool Socket::Connection::iread(Buffer & buffer, int flags) {
|
||||
char cbuffer[BUFFER_BLOCKSIZE];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue