bug-myserver
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug-myserver] Small fix in src/base/socket/socket.cpp: Socket::bind


From: Giuseppe Scrivano
Subject: Re: [bug-myserver] Small fix in src/base/socket/socket.cpp: Socket::bind
Date: Thu, 26 Mar 2009 10:32:24 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.91 (gnu/linux)

Hi Ivailo,

yes, you should write a different test for every method in the Socket
class.  if you notice that the Socket API is too low level, you can
think of a refactoring too, writing tests helps in this task.

Giuseppe


ivailo ilionov <address@hidden> writes:

> The bind method of class Socket returns 1 for error or returns the value from 
> the bind() from the C socket library which may be -1 on error.Should I write 
> a patch which re-writes the comments for each method for use with doxygen ?
> About the test case for class Socket: should i write a different method for 
> each variety of arguments ? For example:void testGethostbynameAfInet ( );void 
> testGethostbynameAfInet6();// ??




reply via email to

[Prev in Thread] Current Thread [Next in Thread]