History log of /5.5.2/platform/cbsocket/socket.cc (Results 1 - 8 of 8)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
Revision tags: v6.0.3, v5.5.4, v5.5.0, v4.6.5
# f4e59c82 14-Mar-2018 Trond Norbye <trond.norbye@gmail.com>

Add getsockname and getpeername to cbsocket

Get the textual representation of a socket and its peer

Change-Id: I1080057322fb7209560be1057c6d484d2c47e5fc
Reviewed-on: http://revi

Add getsockname and getpeername to cbsocket

Get the textual representation of a socket and its peer

Change-Id: I1080057322fb7209560be1057c6d484d2c47e5fc
Reviewed-on: http://review.couchbase.org/90918
Reviewed-by: Tim Bradgate <tim.bradgate@couchbase.com>
Tested-by: Build Bot <build@couchbase.com>

show more ...


# 0f8ec9fb 09-Mar-2018 Tim Bradgate <tim.bradgate@couchbase.com>

MB-27661 [Refactor]: Change signature of cb::net::connect

Due to Windows, change the signature of cb::net::connect to take
a size_t as the name length argument, and then narrow this on U

MB-27661 [Refactor]: Change signature of cb::net::connect

Due to Windows, change the signature of cb::net::connect to take
a size_t as the name length argument, and then narrow this on Unix
for the ::connect call.

Change-Id: Ieec5800dcfdf9923e299dd97e30dd7c408bc5f34
Reviewed-on: http://review.couchbase.org/90747
Reviewed-by: Paolo Cocchi <paolo.cocchi@couchbase.com>
Reviewed-by: Dave Rigby <daver@couchbase.com>
Tested-by: Build Bot <build@couchbase.com>

show more ...


# ba000bbf 09-Mar-2018 Tim Bradgate <tim.bradgate@couchbase.com>

MB-27661 [Refactor]: Narrow the length argument of socket send and recv

Change-Id: I9da0c78bdae0fe507b18d5597bd163bafa372a1c
Reviewed-on: http://review.couchbase.org/90737
Reviewed-b

MB-27661 [Refactor]: Narrow the length argument of socket send and recv

Change-Id: I9da0c78bdae0fe507b18d5597bd163bafa372a1c
Reviewed-on: http://review.couchbase.org/90737
Reviewed-by: Dave Rigby <daver@couchbase.com>
Tested-by: Build Bot <build@couchbase.com>

show more ...


# a4156108 09-Mar-2018 Trond Norbye <trond.norbye@gmail.com>

Remove C interface to cbsocket

Our code should be C++

Change-Id: I6dc4101e51f8d93a15a4aa38a1bd0008950abe29
Reviewed-on: http://review.couchbase.org/90724
Tested-by: Build Bo

Remove C interface to cbsocket

Our code should be C++

Change-Id: I6dc4101e51f8d93a15a4aa38a1bd0008950abe29
Reviewed-on: http://review.couchbase.org/90724
Tested-by: Build Bot <build@couchbase.com>
Reviewed-by: Tim Bradgate <tim.bradgate@couchbase.com>

show more ...


# 341d07b5 09-Mar-2018 Trond Norbye <trond.norbye@gmail.com>

Drop logging functionality from cbsocket

This leaves the library as a pure wrapping to BSD sockets so
that we have a "stable" API we may use on all platforms without
having to #ifdef

Drop logging functionality from cbsocket

This leaves the library as a pure wrapping to BSD sockets so
that we have a "stable" API we may use on all platforms without
having to #ifdef parameters to the varius functions all over the
place

Change-Id: I89be0dcfa8b355bccdbc77a188a301500d049467
Reviewed-on: http://review.couchbase.org/90720
Tested-by: Build Bot <build@couchbase.com>
Reviewed-by: Tim Bradgate <tim.bradgate@couchbase.com>
Reviewed-by: Jim Walker <jim@couchbase.com>

show more ...


Revision tags: v5.0.0
# 11d8eb5f 29-May-2017 Trond Norbye <trond.norbye@gmail.com>

cbsocket enhancements

* Add missing constants for shutdown (win32 use different names)
* Add [gs]etsockopt
* Change on-disk format to use a single file

Change-Id: I1c28e7283

cbsocket enhancements

* Add missing constants for shutdown (win32 use different names)
* Add [gs]etsockopt
* Change on-disk format to use a single file

Change-Id: I1c28e72838bc82035b618133d23fefd0f20a5892
Reviewed-on: http://review.couchbase.org/78701
Reviewed-by: Dave Rigby <daver@couchbase.com>
Tested-by: Build Bot <build@couchbase.com>

show more ...


# c29955ea 26-May-2017 Trond Norbye <trond.norbye@gmail.com>

Enhancements to cb:net::socket

* Add socketpair
* Add set_socket_noblocking
* Add handlers to filter which sockets to log
* Add handlers to when sockets are closed
* Use a se

Enhancements to cb:net::socket

* Add socketpair
* Add set_socket_noblocking
* Add handlers to filter which sockets to log
* Add handlers to when sockets are closed
* Use a sequence number for the file names to allow overwriting
the same file if the socket descriptor is reused.

Change-Id: I625fc1b0c18086cf523effc3bf405cc3c6849624
Reviewed-on: http://review.couchbase.org/78630
Tested-by: Build Bot <build@couchbase.com>
Reviewed-by: Jim Walker <jim@couchbase.com>

show more ...


# c6290174 24-May-2017 Trond Norbye <trond.norbye@gmail.com>

Create cbsockets (cb::net) containing socket wrappers

This is a wrapping layer on top of BSD sockets to allow for logging all
of the data being transferred. It was initially created in o

Create cbsockets (cb::net) containing socket wrappers

This is a wrapping layer on top of BSD sockets to allow for logging all
of the data being transferred. It was initially created in order to
track down why one of the pipes in moxi seemed to get out of sync
protocol wise, but may be useful in the future. This extra layer cause
an extra lookup of an atomic variable to determine if logging should
be performed or not which shouldn't affect the performance too much.

As it was initially created for locating a bug in moxi, a C API exists
with a 'cb_' prefix. It all wraps into methods in cb::net namespace.

Each method works as documented in the in the OS.

@todo open up for a callback to be called to allow the app to
determine if a particular socket should be logged or not (only if
the global logger flag is set)

@todo As each application may open and close a lot of sockets during
its lifetime, the current version _deletes_ the files when the application
close the socket. The use case when I developed this was that the program
would crash and generate a coredump (but it could open/send-receive/close
a lot of data which could generate tens of GB of data first).

One could use tcpdump to collect the same info, but I failed to get
tcpdump create a pcap file I know how to parse when using the loopback
interface. Whipping up this seemed a lot easier ;-)

Change-Id: I9f68912c61fdc8d20998bf3e6a9e147b7d77063b
Reviewed-on: http://review.couchbase.org/78518
Reviewed-by: Dave Rigby <daver@couchbase.com>
Tested-by: Build Bot <build@couchbase.com>

show more ...