Mercurial > code
comparison C++/Socket.cpp @ 282:ea55a3886da0
Socket:
* interface seems to be a reserved word on MS
* include ws2tcpip.h for socklen_t
author | David Demelier <markand@malikania.fr> |
---|---|
date | Mon, 27 Oct 2014 11:20:49 +0100 |
parents | 91eb0583df52 |
children | 9b3270513f40 |
comparison
equal
deleted
inserted
replaced
280:91eb0583df52 | 282:ea55a3886da0 |
---|---|
328 | 328 |
329 if (m_handle == INVALID_SOCKET) | 329 if (m_handle == INVALID_SOCKET) |
330 throw error::Failure("socket", syserror()); | 330 throw error::Failure("socket", syserror()); |
331 } | 331 } |
332 | 332 |
333 Socket::Socket(Handle handle, std::shared_ptr<SocketInterface> interface) | 333 Socket::Socket(Handle handle, std::shared_ptr<SocketInterface> iface) |
334 : m_interface(std::move(interface)) | 334 : m_interface(std::move(iface)) |
335 , m_handle(handle) | 335 , m_handle(handle) |
336 { | 336 { |
337 } | 337 } |
338 | 338 |
339 Socket::Handle Socket::handle() const | 339 Socket::Handle Socket::handle() const |