Changeset 178 in flair-src for trunk/lib/FlairCore/src/UdpSocket_impl.cpp
- Timestamp:
- 05/19/17 16:15:52 (6 years ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/FlairCore/src/UdpSocket_impl.cpp
r177 r178 15 15 // 16 16 /*********************************************************************/ 17 #include " Socket_impl.h"18 #include " Socket.h"17 #include "UdpSocket_impl.h" 18 #include "UdpSocket.h" 19 19 #include "FrameworkManager.h" 20 20 #include <fcntl.h> … … 29 29 using namespace flair::core; 30 30 31 Socket_impl::Socket_impl(constSocket *self, string name, uint16_t port) {31 UdpSocket_impl::UdpSocket_impl(const UdpSocket *self, string name, uint16_t port) { 32 32 this->self = self; 33 33 this->port = port; … … 37 37 } 38 38 39 Socket_impl::Socket_impl(constSocket *self, string name, string address,39 UdpSocket_impl::UdpSocket_impl(const UdpSocket *self, string name, string address, 40 40 bool broadcast) { 41 41 this->self = self; … … 51 51 } 52 52 53 void Socket_impl::Init(void) {53 void UdpSocket_impl::Init(void) { 54 54 int yes = 1; 55 55 … … 143 143 } 144 144 145 Socket_impl::~Socket_impl() {145 UdpSocket_impl::~UdpSocket_impl() { 146 146 #ifdef __XENO__ 147 147 is_running = false; … … 157 157 } 158 158 159 void Socket_impl::SendMessage(const char *src, size_t src_len) {159 void UdpSocket_impl::SendMessage(const char *src, size_t src_len) { 160 160 ssize_t written; 161 161 string to_send; … … 189 189 } 190 190 191 void Socket_impl::SendMessage(string message) {191 void UdpSocket_impl::SendMessage(string message) { 192 192 ssize_t written; 193 193 … … 214 214 } 215 215 216 ssize_t Socket_impl::RecvMessage(char *msg, size_t msg_len, Time timeout,216 ssize_t UdpSocket_impl::RecvMessage(char *msg, size_t msg_len, Time timeout, 217 217 char *src, size_t *src_len) { 218 218 ssize_t nb_read; … … 291 291 292 292 #ifdef __XENO__ 293 void * Socket_impl::user(void *arg) {294 Socket_impl *caller = (Socket_impl *)arg;293 void *UdpSocket_impl::user(void *arg) { 294 UdpSocket_impl *caller = (UdpSocket_impl *)arg; 295 295 int pipe_fd = -1; 296 296 string devname;
Note:
See TracChangeset
for help on using the changeset viewer.