Changeset 178 in flair-src for trunk/lib/FlairCore/src/UdpSocket_impl.cpp


Ignore:
Timestamp:
May 19, 2017, 4:15:52 PM (4 years ago)
Author:
Bayard Gildas
Message:

Change Udp socket object name (from "Socket" to "UdpSocket?")

File:
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/lib/FlairCore/src/UdpSocket_impl.cpp

    r177 r178  
    1515//
    1616/*********************************************************************/
    17 #include "Socket_impl.h"
    18 #include "Socket.h"
     17#include "UdpSocket_impl.h"
     18#include "UdpSocket.h"
    1919#include "FrameworkManager.h"
    2020#include <fcntl.h>
     
    2929using namespace flair::core;
    3030
    31 Socket_impl::Socket_impl(const Socket *self, string name, uint16_t port) {
     31UdpSocket_impl::UdpSocket_impl(const UdpSocket *self, string name, uint16_t port) {
    3232  this->self = self;
    3333  this->port = port;
     
    3737}
    3838
    39 Socket_impl::Socket_impl(const Socket *self, string name, string address,
     39UdpSocket_impl::UdpSocket_impl(const UdpSocket *self, string name, string address,
    4040                         bool broadcast) {
    4141  this->self = self;
     
    5151}
    5252
    53 void Socket_impl::Init(void) {
     53void UdpSocket_impl::Init(void) {
    5454  int yes = 1;
    5555
     
    143143}
    144144
    145 Socket_impl::~Socket_impl() {
     145UdpSocket_impl::~UdpSocket_impl() {
    146146#ifdef __XENO__
    147147  is_running = false;
     
    157157}
    158158
    159 void Socket_impl::SendMessage(const char *src, size_t src_len) {
     159void UdpSocket_impl::SendMessage(const char *src, size_t src_len) {
    160160  ssize_t written;
    161161  string to_send;
     
    189189}
    190190
    191 void Socket_impl::SendMessage(string message) {
     191void UdpSocket_impl::SendMessage(string message) {
    192192  ssize_t written;
    193193
     
    214214}
    215215
    216 ssize_t Socket_impl::RecvMessage(char *msg, size_t msg_len, Time timeout,
     216ssize_t UdpSocket_impl::RecvMessage(char *msg, size_t msg_len, Time timeout,
    217217                                 char *src, size_t *src_len) {
    218218  ssize_t nb_read;
     
    291291
    292292#ifdef __XENO__
    293 void *Socket_impl::user(void *arg) {
    294   Socket_impl *caller = (Socket_impl *)arg;
     293void *UdpSocket_impl::user(void *arg) {
     294  UdpSocket_impl *caller = (UdpSocket_impl *)arg;
    295295  int pipe_fd = -1;
    296296  string devname;
Note: See TracChangeset for help on using the changeset viewer.