@@ -37,24 +37,23 @@ class Message {
3737
3838class SubSocket {
3939public:
40- virtual int connect (Context *context, std::string endpoint, std::string address, bool conflate=false , bool check_endpoint=true ) = 0;
40+ virtual int connect (Context *context, std::string endpoint, std::string address, bool conflate=false , bool check_endpoint=true , size_t segment_size= 0 ) = 0;
4141 virtual void setTimeout (int timeout) = 0;
4242 virtual Message *receive (bool non_blocking=false ) = 0;
4343 virtual void * getRawSocket () = 0;
4444 static SubSocket * create ();
45- static SubSocket * create (Context * context, std::string endpoint, std::string address=" 127.0.0.1" , bool conflate=false , bool check_endpoint=true );
45+ static SubSocket * create (Context * context, std::string endpoint, std::string address=" 127.0.0.1" , bool conflate=false , bool check_endpoint=true , size_t segment_size= 0 );
4646 virtual ~SubSocket (){}
4747};
4848
4949class PubSocket {
5050public:
51- virtual int connect (Context *context, std::string endpoint, bool check_endpoint=true ) = 0;
51+ virtual int connect (Context *context, std::string endpoint, bool check_endpoint=true , size_t segment_size= 0 ) = 0;
5252 virtual int sendMessage (Message *message) = 0;
5353 virtual int send (char *data, size_t size) = 0;
5454 virtual bool all_readers_updated () = 0;
5555 static PubSocket * create ();
56- static PubSocket * create (Context * context, std::string endpoint, bool check_endpoint=true );
57- static PubSocket * create (Context * context, std::string endpoint, int port, bool check_endpoint=true );
56+ static PubSocket * create (Context * context, std::string endpoint, bool check_endpoint=true , size_t segment_size=0 );
5857 virtual ~PubSocket (){}
5958};
6059
0 commit comments