mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
.cosmetics
git-svn-id: svn://ultimatepp.org/upp/trunk@6702 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
39082cb284
commit
5727c3f633
3 changed files with 11 additions and 10 deletions
|
|
@ -663,10 +663,11 @@ bool TcpSocket::Wait(dword flags)
|
|||
return Wait(flags, GetEndTime());
|
||||
}
|
||||
|
||||
int TcpSocket::Put(const char *s, int length)
|
||||
int TcpSocket::Put(const void *s_, int length)
|
||||
{
|
||||
LLOG("Put " << socket << ": " << length);
|
||||
ASSERT(IsOpen());
|
||||
const char *s = (const char *)s_;
|
||||
if(length < 0 && s)
|
||||
length = (int)strlen(s);
|
||||
if(!s || length <= 0 || IsError() || IsAbort())
|
||||
|
|
@ -690,7 +691,7 @@ int TcpSocket::Put(const char *s, int length)
|
|||
return done;
|
||||
}
|
||||
|
||||
bool TcpSocket::PutAll(const char *s, int len)
|
||||
bool TcpSocket::PutAll(const void *s, int len)
|
||||
{
|
||||
if(Put(s, len) != len) {
|
||||
if(!IsError())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue