#ifndef _SYSTEM_NET_SOCKETS_SOCKETASYNCEVENTARGS_ #define _SYSTEM_NET_SOCKETS_SOCKETASYNCEVENTARGS_ #include #include "../Endpoint.h" #include "Socket.h" #include "Enums.h" #include #include namespace System { namespace Net { namespace Sockets { class SocketAsyncEventArgs : public EventArgs { protected: virtual void Oncompleted(SocketAsyncEventArgs* e); virtual ~SocketAsyncEventArgs(); public: byte* getBuffer(); int getBytesTransferred() const; //Exception* getConnectByNameError() const; Socket getConnectSocket() const; int Count(); SocketAsyncOperation_t getLastOperation() const; int getOffset() const; EndPoint* RemoteEndPoint; SocketError_t SocketError; Object* UserToken; EventHandler Completed; SocketAsyncEventArgs(); void Dispose(); static int GetType(); void SetBuffer(const int offset, const int count); void SetBuffer(byte buffer[], const int offset, const int count); }; } } } #endif //_SYSTEM_NET_SOCKETS_SOCKETASYNCEVENTARGS_