OnixS C++ FIX Engine 4.13.0
API Documentation
Loading...
Searching...
No Matches
MulticastClient.h
Go to the documentation of this file.
1#pragma once
2/*
3* Copyright Onix Solutions Limited [OnixS]. All rights reserved.
4*
5* This software owned by Onix Solutions Limited [OnixS] and is protected by copyright law
6* and international copyright treaties.
7*
8* Access to and use of the software is governed by the terms of the applicable OnixS Software
9* Services Agreement (the Agreement) and Customer end user license agreements granting
10* a non-assignable, non-transferable and non-exclusive license to use the software
11* for it's own data processing purposes under the terms defined in the Agreement.
12*
13* Except as otherwise granted within the terms of the Agreement, copying or reproduction of any part
14* of this source code or associated reference material to any other location for further reproduction
15* or redistribution, and any amendments to this copyright notice, are expressly prohibited.
16*
17* Any reproduction or redistribution for sale or hiring of the Software not in accordance with
18* the terms of the Agreement is a violation of copyright law.
19*/
20
21#include <OnixS/FIXEngine/ABI.h>
23
24#include <string>
25
26namespace OnixS {
27namespace Sockets {
31{
32public:
35
38
41 void join(const std::string & ip, int port);
42
45 void join(const std::string & ip, int port, const std::string & networkInterface);
46
48 void drop();
49
56 const Bytes & receive();
57
64 const Bytes & receive(long timeoutInMilliseconds);
65
67 void send(const std::string & packet);
68
70 void send(const void * packet, size_t packetSize);
71
73 enum { MaximumUdpPacketSize = 65535 };
74
75private:
77 MulticastClient & operator = (const MulticastClient &);
78
79 struct Impl;
80 Impl * impl_;
81};
82}
83}
#define ONIXS_FIXENGINE_API
Definition ABI.h:45
Provides the User Datagram Protocol (UDP) multicast mode network services.
const Bytes & receive(long timeoutInMilliseconds)
Receives a multicast packet.
void drop()
Leaves the multicast group.
void send(const std::string &packet)
Sends the given multicast packet.
const Bytes & receive()
Receives a multicast packet.
void send(const void *packet, size_t packetSize)
Sends the given multicast packet.
void join(const std::string &ip, int port, const std::string &networkInterface)
Adds a MulticastClient to the multicast group using the given network interface.
void join(const std::string &ip, int port)
Adds a MulticastClient to the multicast group using all network interfaces.
MulticastClient()
Creates a MulticastClient.
virtual ~MulticastClient()
Finalize the instance.
std::vector< Byte > Bytes
Sequence of bytes.
Definition Definitions.h:43