#include "socket.h" namespace ns3 { Socket::~Socket () {} int Socket::Close(Callback > closeCompleted) { return DoClose (closeCompleted); } int Socket::Connect(const Address & address, Callback > connectionSucceeded, Callback > connectionFailed, Callback > halfClose) { return DoConnect (address, connectionSucceeded, connectionFailed, halfClose); } int Socket::Accept(Callback, const Address&> connectionRequest, Callback, const Address&> newConnectionCreated, Callback > closeRequested) { return DoAccept (connectionRequest, newConnectionCreated, closeRequested); } int Socket::Send (const uint8_t* buffer, uint32_t size, Callback, uint32_t> dataSent) { return DoSend (buffer, size, dataSent); } int Socket::SendTo(const Address &address, const uint8_t *buffer, uint32_t size, Callback, uint32_t> dataSent) { return DoSendTo (address, buffer, size, dataSent); } void Socket::Recv(Callback, const uint8_t*, uint32_t,const Address&> callback) { DoRecv (callback); } void Socket::RecvDummy(Callback, uint32_t,const Address&> callback) { DoRecvDummy (callback); } bool Socket::RefuseAllConnections (Ptr socket, const Address& address) { return false; } void Socket::DummyCallbackVoidSocket (Ptr socket) {} void Socket::DummyCallbackVoidSocketUi32 (Ptr socket, uint32_t) {} void Socket::DummyCallbackVoidSocketUi32Address (Ptr socket, uint32_t, const Address &) {} void Socket::DummyCallbackVoidSocketBufferUi32Address (Ptr socket, const uint8_t *, uint32_t, const Address &) {} void Socket::DummyCallbackVoidSocketAddress (Ptr socket, const Address &) {} }//namespace ns3