You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Valery Kreidenko (JIRA)" <ji...@apache.org> on 2010/12/20 16:46:02 UTC
[jira] Created: (THRIFT-1025) C++ ServerSocket should inherit from
Socket with the necessary Ctor to listen on connections from a specific
host (similar to perl library)
C++ ServerSocket should inherit from Socket with the necessary Ctor to listen on connections from a specific host (similar to perl library)
-------------------------------------------------------------------------------------------------------------------------------------------
Key: THRIFT-1025
URL: https://issues.apache.org/jira/browse/THRIFT-1025
Project: Thrift
Issue Type: Improvement
Components: C++ - Library
Environment: any
Reporter: Valery Kreidenko
Perl library ServerSocket inherits from Socket the ctor ServerSocket->new( addr, port) which enables to accept the connections from specified host only (for security reasons for instance).
package Thrift::ServerSocket;
use Socket qw(IPPROTO_TCP TCP_NODELAY);
use base qw( Thrift::Socket Thrift::ServerTransport );
while surprisingly C++ ServerSocket omits inheriting from Socket.
class TServerSocket : public TServerTransport {
Regards.
Valery.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.