Asposecpplib
System::Net::Sockets::Socket Class Reference

Inherits System::IDisposable.

Public Types

typedef std::shared_ptr< System::Details::socket_impl > ImplPtr
 
- Public Types inherited from System::Object
typedef SmartPtr< Objectptr
 Alias for smart pointer type. More...
 
typedef System::Details::SharedMembersType shared_members_type
 structure to keep list of shared pointers contained in object. More...
 

Public Member Functions

ASPOSECPP_SHARED_API int32_t get_Available ()
 
ASPOSECPP_SHARED_API System::SharedPtr< EndPointget_LocalEndPoint ()
 
ASPOSECPP_SHARED_API System::SharedPtr< EndPointget_RemoteEndPoint ()
 
ASPOSECPP_SHARED_API bool get_Blocking ()
 
ASPOSECPP_SHARED_API void set_Blocking (bool value)
 
ASPOSECPP_SHARED_API bool get_Connected ()
 
ASPOSECPP_SHARED_API System::Net::Sockets::AddressFamily get_AddressFamily ()
 
ASPOSECPP_SHARED_API System::Net::Sockets::SocketType get_SocketType ()
 
ASPOSECPP_SHARED_API System::Net::Sockets::ProtocolType get_ProtocolType ()
 
ASPOSECPP_SHARED_API bool get_IsBound ()
 
ASPOSECPP_SHARED_API bool get_ExclusiveAddressUse ()
 
ASPOSECPP_SHARED_API void set_ExclusiveAddressUse (bool value)
 
ASPOSECPP_SHARED_API int32_t get_ReceiveBufferSize ()
 
ASPOSECPP_SHARED_API void set_ReceiveBufferSize (int32_t value)
 
ASPOSECPP_SHARED_API int32_t get_SendBufferSize ()
 
ASPOSECPP_SHARED_API void set_SendBufferSize (int32_t value)
 
ASPOSECPP_SHARED_API int32_t get_ReceiveTimeout ()
 
ASPOSECPP_SHARED_API void set_ReceiveTimeout (int32_t value)
 
ASPOSECPP_SHARED_API int32_t get_SendTimeout ()
 
ASPOSECPP_SHARED_API void set_SendTimeout (int32_t value)
 
ASPOSECPP_SHARED_API System::SharedPtr< LingerOptionget_LingerState ()
 
ASPOSECPP_SHARED_API void set_LingerState (System::SharedPtr< LingerOption > value)
 
ASPOSECPP_SHARED_API bool get_NoDelay ()
 
ASPOSECPP_SHARED_API void set_NoDelay (bool value)
 
ASPOSECPP_SHARED_API int16_t get_Ttl ()
 
ASPOSECPP_SHARED_API void set_Ttl (int16_t value)
 
ASPOSECPP_SHARED_API bool get_DontFragment ()
 
ASPOSECPP_SHARED_API void set_DontFragment (bool value)
 
ASPOSECPP_SHARED_API bool get_MulticastLoopback ()
 
ASPOSECPP_SHARED_API void set_MulticastLoopback (bool value)
 
ASPOSECPP_SHARED_API bool get_EnableBroadcast ()
 
ASPOSECPP_SHARED_API void set_EnableBroadcast (bool value)
 
ASPOSECPP_SHARED_API bool get_DualMode ()
 
ASPOSECPP_SHARED_API void set_DualMode (bool value)
 
ASPOSECPP_SHARED_API Socket (System::Net::Sockets::SocketType socketType, System::Net::Sockets::ProtocolType protocolType)
 
ASPOSECPP_SHARED_API Socket (System::Net::Sockets::AddressFamily addressFamily, System::Net::Sockets::SocketType socketType, System::Net::Sockets::ProtocolType protocolType)
 
ASPOSECPP_SHARED_API System::SharedPtr< IAsyncResultBeginSend (System::ArrayPtr< uint8_t > buffer, int32_t offset, int32_t size, SocketFlags socketFlags, AsyncCallback callback, System::SharedPtr< Object > state)
 
ASPOSECPP_SHARED_API int32_t EndSend (System::SharedPtr< IAsyncResult > asyncResult)
 
ASPOSECPP_SHARED_API int32_t EndSend (System::SharedPtr< IAsyncResult > asyncResult, SocketError &errorCode)
 
ASPOSECPP_SHARED_API System::SharedPtr< IAsyncResultBeginReceive (System::ArrayPtr< uint8_t > buffer, int32_t offset, int32_t size, SocketFlags socketFlags, AsyncCallback callback, System::SharedPtr< Object > state)
 
ASPOSECPP_SHARED_API int32_t EndReceive (System::SharedPtr< IAsyncResult > asyncResult)
 
ASPOSECPP_SHARED_API int32_t EndReceive (System::SharedPtr< IAsyncResult > asyncResult, SocketError &errorCode)
 
ASPOSECPP_SHARED_API void Bind (System::SharedPtr< EndPoint > localEP)
 
ASPOSECPP_SHARED_API void Connect (System::SharedPtr< EndPoint > remoteEP)
 
ASPOSECPP_SHARED_API void Connect (System::SharedPtr< IPAddress > address, int32_t port)
 
ASPOSECPP_SHARED_API void Connect (String host, int32_t port)
 
ASPOSECPP_SHARED_API void Connect (System::ArrayPtr< System::SharedPtr< IPAddress >> addresses, int32_t port)
 
ASPOSECPP_SHARED_API System::SharedPtr< IAsyncResultBeginConnect (System::SharedPtr< EndPoint > remoteEP, AsyncCallback callback, System::SharedPtr< Object > state)
 
ASPOSECPP_SHARED_API System::SharedPtr< IAsyncResultBeginConnect (String host, int32_t port, AsyncCallback requestCallback, System::SharedPtr< Object > state)
 
ASPOSECPP_SHARED_API System::SharedPtr< IAsyncResultBeginConnect (System::SharedPtr< IPAddress > address, int32_t port, AsyncCallback requestCallback, System::SharedPtr< Object > state)
 
ASPOSECPP_SHARED_API System::SharedPtr< IAsyncResultBeginConnect (System::ArrayPtr< System::SharedPtr< IPAddress >> addresses, int32_t port, AsyncCallback requestCallback, System::SharedPtr< Object > state)
 
ASPOSECPP_SHARED_API void Close ()
 
ASPOSECPP_SHARED_API void Close (int timeout)
 
ASPOSECPP_SHARED_API int32_t EndConnect (System::SharedPtr< IAsyncResult > asyncResult)
 
ASPOSECPP_SHARED_API void Listen (int32_t backlog)
 
ASPOSECPP_SHARED_API System::SharedPtr< SocketAccept ()
 
ASPOSECPP_SHARED_API int32_t Send (System::ArrayPtr< uint8_t > buffer, int32_t size, SocketFlags socketFlags)
 
ASPOSECPP_SHARED_API int32_t Send (System::ArrayPtr< uint8_t > buffer, SocketFlags socketFlags)
 
ASPOSECPP_SHARED_API int32_t Send (System::ArrayPtr< uint8_t > buffer)
 
ASPOSECPP_SHARED_API int32_t Send (System::SharedPtr< Collections::Generic::IList< ArraySegment< uint8_t >>> buffers)
 
ASPOSECPP_SHARED_API int32_t Send (System::SharedPtr< Collections::Generic::IList< ArraySegment< uint8_t >>> buffers, SocketFlags socketFlags)
 
ASPOSECPP_SHARED_API int32_t Send (System::SharedPtr< Collections::Generic::IList< ArraySegment< uint8_t >>> buffers, SocketFlags socketFlags, SocketError &errorCode)
 
ASPOSECPP_SHARED_API int32_t Send (System::ArrayPtr< uint8_t > buffer, int32_t offset, int32_t size, SocketFlags socketFlags)
 
ASPOSECPP_SHARED_API int32_t Send (System::ArrayPtr< uint8_t > buffer, int32_t offset, int32_t size, SocketFlags socketFlags, SocketError &errorCode)
 
ASPOSECPP_SHARED_API int32_t SendTo (System::ArrayPtr< uint8_t > buffer, int32_t offset, int32_t size, SocketFlags socketFlags, System::SharedPtr< EndPoint > remoteEP)
 
ASPOSECPP_SHARED_API int32_t SendTo (System::ArrayPtr< uint8_t > buffer, int32_t size, SocketFlags socketFlags, System::SharedPtr< EndPoint > remoteEP)
 
ASPOSECPP_SHARED_API int32_t SendTo (System::ArrayPtr< uint8_t > buffer, SocketFlags socketFlags, System::SharedPtr< EndPoint > remoteEP)
 
ASPOSECPP_SHARED_API int32_t SendTo (System::ArrayPtr< uint8_t > buffer, System::SharedPtr< EndPoint > remoteEP)
 
ASPOSECPP_SHARED_API int32_t Receive (System::ArrayPtr< uint8_t > buffer, int32_t size, SocketFlags socketFlags)
 
ASPOSECPP_SHARED_API int32_t Receive (System::ArrayPtr< uint8_t > buffer, SocketFlags socketFlags)
 
ASPOSECPP_SHARED_API int32_t Receive (System::ArrayPtr< uint8_t > buffer)
 
ASPOSECPP_SHARED_API int32_t Receive (System::ArrayPtr< uint8_t > buffer, int32_t offset, int32_t size, SocketFlags socketFlags)
 
ASPOSECPP_SHARED_API int32_t Receive (System::ArrayPtr< uint8_t > buffer, int32_t offset, int32_t size, SocketFlags socketFlags, SocketError &errorCode)
 
ASPOSECPP_SHARED_API int32_t Receive (System::SharedPtr< Collections::Generic::IList< ArraySegment< uint8_t >>> buffers)
 
ASPOSECPP_SHARED_API int32_t Receive (System::SharedPtr< Collections::Generic::IList< ArraySegment< uint8_t >>> buffers, SocketFlags socketFlags)
 
ASPOSECPP_SHARED_API int32_t Receive (System::SharedPtr< Collections::Generic::IList< ArraySegment< uint8_t >>> buffers, SocketFlags socketFlags, SocketError &errorCode)
 
ASPOSECPP_SHARED_API int32_t ReceiveMessageFrom (System::ArrayPtr< uint8_t > buffer, int32_t offset, int32_t size, SocketFlags &socketFlags, System::SharedPtr< EndPoint > &remoteEP, IPPacketInformation &ipPacketInformation)
 
ASPOSECPP_SHARED_API int32_t ReceiveFrom (System::ArrayPtr< uint8_t > buffer, int32_t offset, int32_t size, SocketFlags socketFlags, System::SharedPtr< EndPoint > &remoteEP)
 
ASPOSECPP_SHARED_API int32_t ReceiveFrom (System::ArrayPtr< uint8_t > buffer, int32_t size, SocketFlags socketFlags, System::SharedPtr< EndPoint > &remoteEP)
 
ASPOSECPP_SHARED_API int32_t ReceiveFrom (System::ArrayPtr< uint8_t > buffer, SocketFlags socketFlags, System::SharedPtr< EndPoint > &remoteEP)
 
ASPOSECPP_SHARED_API int32_t ReceiveFrom (System::ArrayPtr< uint8_t > buffer, System::SharedPtr< EndPoint > &remoteEP)
 
ASPOSECPP_SHARED_API int32_t IOControl (int32_t ioControlCode, System::ArrayPtr< uint8_t > optionInValue, System::ArrayPtr< uint8_t > optionOutValue)
 
ASPOSECPP_SHARED_API int32_t IOControl (IOControlCode ioControlCode, System::ArrayPtr< uint8_t > optionInValue, System::ArrayPtr< uint8_t > optionOutValue)
 
ASPOSECPP_SHARED_API void SetSocketOption (SocketOptionLevel optionLevel, SocketOptionName optionName, int32_t optionValue)
 
ASPOSECPP_SHARED_API void SetSocketOption (SocketOptionLevel optionLevel, SocketOptionName optionName, System::ArrayPtr< uint8_t > optionValue)
 
ASPOSECPP_SHARED_API void SetSocketOption (SocketOptionLevel optionLevel, SocketOptionName optionName, bool optionValue)
 
ASPOSECPP_SHARED_API void SetSocketOption (SocketOptionLevel optionLevel, SocketOptionName optionName, System::SharedPtr< Object > optionValue)
 
ASPOSECPP_SHARED_API System::SharedPtr< ObjectGetSocketOption (SocketOptionLevel optionLevel, SocketOptionName optionName)
 
ASPOSECPP_SHARED_API void GetSocketOption (SocketOptionLevel optionLevel, SocketOptionName optionName, System::ArrayPtr< uint8_t > optionValue)
 
ASPOSECPP_SHARED_API System::ArrayPtr< uint8_t > GetSocketOption (SocketOptionLevel optionLevel, SocketOptionName optionName, int32_t optionLength)
 
ASPOSECPP_SHARED_API bool Poll (int32_t microSeconds, SelectMode mode)
 
ASPOSECPP_SHARED_API void Shutdown (SocketShutdown how)
 
ASPOSECPP_SHARED_API void Dispose () override
 Does nothing. More...
 
virtual ASPOSECPP_SHARED_API ~Socket ()
 
ImplPtr GetImpl () const
 
- Public Member Functions inherited from System::Object
ASPOSECPP_SHARED_API Object ()
 Creates object. Initializes all internal data structures. More...
 
virtual ASPOSECPP_SHARED_API ~Object ()
 Destroys object. Frees all internal data structures. More...
 
ASPOSECPP_SHARED_API Object (Object const &x)
 Copy constructor. Doesn't copy anything, really, just initializes new object and enables copy constructing subclasses. More...
 
Objectoperator= (Object const &x)
 Assignment operator. Doesn't copy anything, really, just initializes new object and enables copy constructing subclasses. More...
 
ObjectSharedRefAdded ()
 Increments shared reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
 
int SharedRefRemovedSafe ()
 Decrements and returns shared reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
 
int RemovedSharedRefs (int count)
 Decreases shared reference count by specified value. More...
 
Detail::SmartPtrCounter * WeakRefAdded ()
 Increments weak reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
 
void WeakRefRemoved ()
 Decrements weak reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
 
Detail::SmartPtrCounter * GetCounter ()
 Gets reference counter data structure associated with the object. More...
 
int SharedCount () const
 Gets current value of shared refernce counter. More...
 
ASPOSECPP_SHARED_API void Lock ()
 Implements C# lock() statement locking. Call directly or use LockContext sentry object. More...
 
ASPOSECPP_SHARED_API void Unlock ()
 Implements C# lock() statement unlocking. Call directly or use LockContext sentry object. More...
 
virtual ASPOSECPP_SHARED_API bool Equals (ptr obj)
 Compares objects using C# Object.Equals semantics. More...
 
virtual ASPOSECPP_SHARED_API int GetHashCode () const
 Analog of C# Object.GetHashCode() method. Enables hashing of custom objects. More...
 
virtual ASPOSECPP_SHARED_API String ToString () const
 Analog of C# Object.ToString() method. Enables converting custom objects to string. More...
 
virtual ASPOSECPP_SHARED_API ptr MemberwiseClone () const
 Analog of C# Object.MemberwiseClone() method. Enables cloning custom types. More...
 
virtual ASPOSECPP_SHARED_API const TypeInfoGetType () const
 Gets actual type of object. Analog of C# System.Object.GetType() call. More...
 
virtual ASPOSECPP_SHARED_API bool Is (const TypeInfo &targetType) const
 Check if object represents an instance of type described by targetType. Analog of C# 'is' operator. More...
 
virtual ASPOSECPP_SHARED_API void SetTemplateWeakPtr (unsigned int argument)
 Set n'th template argument a weak pointer (rather than shared). Allows switching pointers in containers to weak mode. More...
 
template<>
bool ReferenceEquals (String const &str, std::nullptr_t)
 Specialization of Object::ReferenceEquals for case of string and nullptr. More...
 
template<>
bool ReferenceEquals (String const &str1, String const &str2)
 Specialization of Object::ReferenceEquals for case of strings. More...
 

Static Public Member Functions

static ASPOSECPP_SHARED_API bool get_SupportsIPv4 ()
 
static ASPOSECPP_SHARED_API bool get_OSSupportsIPv4 ()
 
static ASPOSECPP_SHARED_API bool get_OSSupportsIPv6 ()
 
- Static Public Member Functions inherited from System::Object
static bool ReferenceEquals (ptr const &objA, ptr const &objB)
 Compares objects by reference. More...
 
template<typename T >
static std::enable_if<!IsSmartPtr< T >::value, bool >::type ReferenceEquals (T const &objA, T const &objB)
 Compares objects by reference. More...
 
template<typename T >
static std::enable_if<!IsSmartPtr< T >::value, bool >::type ReferenceEquals (T const &objA, std::nullptr_t)
 Reference-compares value type object with nullptr. More...
 
template<typename T1 , typename T2 >
static std::enable_if< IsSmartPtr< T1 >::value &&IsSmartPtr< T2 >::value, bool >::type Equals (T1 const &objA, T2 const &objB)
 Compares reference type objects in C# style. More...
 
template<typename T1 , typename T2 >
static std::enable_if<!IsSmartPtr< T1 >::value &&!IsSmartPtr< T2 >::value, bool >::type Equals (T1 const &objA, T2 const &objB)
 Compares value type objects in C# style. More...
 
static const TypeInfoType ()
 Impleemnts C# typeof(System.Object) construct. More...
 
template<>
bool Equals (float const &objA, float const &objB)
 Emulates C#-style floating point comparison where two NaNs are considered equal even though according to IEC 60559:1989 NaN is not equal to any value, including NaN. More...
 
template<>
bool Equals (double const &objA, double const &objB)
 Emulates C#-style floating point comparison where two NaNs are considered equal even though according to IEC 60559:1989 NaN is not equal to any value, including NaN. More...
 

Member Typedef Documentation

◆ ImplPtr

typedef std::shared_ptr<System::Details::socket_impl> System::Net::Sockets::Socket::ImplPtr

Constructor & Destructor Documentation

◆ Socket() [1/2]

ASPOSECPP_SHARED_API System::Net::Sockets::Socket::Socket ( System::Net::Sockets::SocketType  socketType,
System::Net::Sockets::ProtocolType  protocolType 
)

◆ Socket() [2/2]

ASPOSECPP_SHARED_API System::Net::Sockets::Socket::Socket ( System::Net::Sockets::AddressFamily  addressFamily,
System::Net::Sockets::SocketType  socketType,
System::Net::Sockets::ProtocolType  protocolType 
)

◆ ~Socket()

virtual ASPOSECPP_SHARED_API System::Net::Sockets::Socket::~Socket ( )
virtual

Member Function Documentation

◆ Accept()

ASPOSECPP_SHARED_API System::SharedPtr<Socket> System::Net::Sockets::Socket::Accept ( )

◆ BeginConnect() [1/4]

ASPOSECPP_SHARED_API System::SharedPtr<IAsyncResult> System::Net::Sockets::Socket::BeginConnect ( String  host,
int32_t  port,
AsyncCallback  requestCallback,
System::SharedPtr< Object state 
)

◆ BeginConnect() [2/4]

ASPOSECPP_SHARED_API System::SharedPtr<IAsyncResult> System::Net::Sockets::Socket::BeginConnect ( System::ArrayPtr< System::SharedPtr< IPAddress >>  addresses,
int32_t  port,
AsyncCallback  requestCallback,
System::SharedPtr< Object state 
)

◆ BeginConnect() [3/4]

ASPOSECPP_SHARED_API System::SharedPtr<IAsyncResult> System::Net::Sockets::Socket::BeginConnect ( System::SharedPtr< EndPoint remoteEP,
AsyncCallback  callback,
System::SharedPtr< Object state 
)

◆ BeginConnect() [4/4]

ASPOSECPP_SHARED_API System::SharedPtr<IAsyncResult> System::Net::Sockets::Socket::BeginConnect ( System::SharedPtr< IPAddress address,
int32_t  port,
AsyncCallback  requestCallback,
System::SharedPtr< Object state 
)

◆ BeginReceive()

ASPOSECPP_SHARED_API System::SharedPtr<IAsyncResult> System::Net::Sockets::Socket::BeginReceive ( System::ArrayPtr< uint8_t >  buffer,
int32_t  offset,
int32_t  size,
SocketFlags  socketFlags,
AsyncCallback  callback,
System::SharedPtr< Object state 
)

◆ BeginSend()

ASPOSECPP_SHARED_API System::SharedPtr<IAsyncResult> System::Net::Sockets::Socket::BeginSend ( System::ArrayPtr< uint8_t >  buffer,
int32_t  offset,
int32_t  size,
SocketFlags  socketFlags,
AsyncCallback  callback,
System::SharedPtr< Object state 
)

◆ Bind()

ASPOSECPP_SHARED_API void System::Net::Sockets::Socket::Bind ( System::SharedPtr< EndPoint localEP)

◆ Close() [1/2]

ASPOSECPP_SHARED_API void System::Net::Sockets::Socket::Close ( )

◆ Close() [2/2]

ASPOSECPP_SHARED_API void System::Net::Sockets::Socket::Close ( int  timeout)

◆ Connect() [1/4]

ASPOSECPP_SHARED_API void System::Net::Sockets::Socket::Connect ( String  host,
int32_t  port 
)

◆ Connect() [2/4]

ASPOSECPP_SHARED_API void System::Net::Sockets::Socket::Connect ( System::ArrayPtr< System::SharedPtr< IPAddress >>  addresses,
int32_t  port 
)

◆ Connect() [3/4]

ASPOSECPP_SHARED_API void System::Net::Sockets::Socket::Connect ( System::SharedPtr< EndPoint remoteEP)

◆ Connect() [4/4]

ASPOSECPP_SHARED_API void System::Net::Sockets::Socket::Connect ( System::SharedPtr< IPAddress address,
int32_t  port 
)

◆ Dispose()

ASPOSECPP_SHARED_API void System::Net::Sockets::Socket::Dispose ( )
overridevirtual

Does nothing.

Reimplemented from System::IDisposable.

◆ EndConnect()

ASPOSECPP_SHARED_API int32_t System::Net::Sockets::Socket::EndConnect ( System::SharedPtr< IAsyncResult asyncResult)

◆ EndReceive() [1/2]

ASPOSECPP_SHARED_API int32_t System::Net::Sockets::Socket::EndReceive ( System::SharedPtr< IAsyncResult asyncResult)

◆ EndReceive() [2/2]

ASPOSECPP_SHARED_API int32_t System::Net::Sockets::Socket::EndReceive ( System::SharedPtr< IAsyncResult asyncResult,
SocketError errorCode 
)

◆ EndSend() [1/2]

ASPOSECPP_SHARED_API int32_t System::Net::Sockets::Socket::EndSend ( System::SharedPtr< IAsyncResult asyncResult)

◆ EndSend() [2/2]

ASPOSECPP_SHARED_API int32_t System::Net::Sockets::Socket::EndSend ( System::SharedPtr< IAsyncResult asyncResult,
SocketError errorCode 
)

◆ get_AddressFamily()

ASPOSECPP_SHARED_API System::Net::Sockets::AddressFamily System::Net::Sockets::Socket::get_AddressFamily ( )

◆ get_Available()

ASPOSECPP_SHARED_API int32_t System::Net::Sockets::Socket::get_Available ( )

◆ get_Blocking()

ASPOSECPP_SHARED_API bool System::Net::Sockets::Socket::get_Blocking ( )

◆ get_Connected()

ASPOSECPP_SHARED_API bool System::Net::Sockets::Socket::get_Connected ( )

◆ get_DontFragment()

ASPOSECPP_SHARED_API bool System::Net::Sockets::Socket::get_DontFragment ( )

◆ get_DualMode()

ASPOSECPP_SHARED_API bool System::Net::Sockets::Socket::get_DualMode ( )

◆ get_EnableBroadcast()

ASPOSECPP_SHARED_API bool System::Net::Sockets::Socket::get_EnableBroadcast ( )

◆ get_ExclusiveAddressUse()

ASPOSECPP_SHARED_API bool System::Net::Sockets::Socket::get_ExclusiveAddressUse ( )

◆ get_IsBound()

ASPOSECPP_SHARED_API bool System::Net::Sockets::Socket::get_IsBound ( )

◆ get_LingerState()

ASPOSECPP_SHARED_API System::SharedPtr<LingerOption> System::Net::Sockets::Socket::get_LingerState ( )

◆ get_LocalEndPoint()

ASPOSECPP_SHARED_API System::SharedPtr<EndPoint> System::Net::Sockets::Socket::get_LocalEndPoint ( )

◆ get_MulticastLoopback()

ASPOSECPP_SHARED_API bool System::Net::Sockets::Socket::get_MulticastLoopback ( )

◆ get_NoDelay()

ASPOSECPP_SHARED_API bool System::Net::Sockets::Socket::get_NoDelay ( )

◆ get_OSSupportsIPv4()

static ASPOSECPP_SHARED_API bool System::Net::Sockets::Socket::get_OSSupportsIPv4 ( )
static

◆ get_OSSupportsIPv6()

static ASPOSECPP_SHARED_API bool System::Net::Sockets::Socket::get_OSSupportsIPv6 ( )
static

◆ get_ProtocolType()

ASPOSECPP_SHARED_API System::Net::Sockets::ProtocolType System::Net::Sockets::Socket::get_ProtocolType ( )

◆ get_ReceiveBufferSize()

ASPOSECPP_SHARED_API int32_t System::Net::Sockets::Socket::get_ReceiveBufferSize ( )

◆ get_ReceiveTimeout()

ASPOSECPP_SHARED_API int32_t System::Net::Sockets::Socket::get_ReceiveTimeout ( )

◆ get_RemoteEndPoint()

ASPOSECPP_SHARED_API System::SharedPtr<EndPoint> System::Net::Sockets::Socket::get_RemoteEndPoint ( )

◆ get_SendBufferSize()

ASPOSECPP_SHARED_API int32_t System::Net::Sockets::Socket::get_SendBufferSize ( )

◆ get_SendTimeout()

ASPOSECPP_SHARED_API int32_t System::Net::Sockets::Socket::get_SendTimeout ( )

◆ get_SocketType()

ASPOSECPP_SHARED_API System::Net::Sockets::SocketType System::Net::Sockets::Socket::get_SocketType ( )

◆ get_SupportsIPv4()

static ASPOSECPP_SHARED_API bool System::Net::Sockets::Socket::get_SupportsIPv4 ( )
static

◆ get_Ttl()

ASPOSECPP_SHARED_API int16_t System::Net::Sockets::Socket::get_Ttl ( )

◆ GetImpl()

ImplPtr System::Net::Sockets::Socket::GetImpl ( ) const

◆ GetSocketOption() [1/3]

ASPOSECPP_SHARED_API System::SharedPtr<Object> System::Net::Sockets::Socket::GetSocketOption ( SocketOptionLevel  optionLevel,
SocketOptionName  optionName 
)

◆ GetSocketOption() [2/3]

ASPOSECPP_SHARED_API System::ArrayPtr<uint8_t> System::Net::Sockets::Socket::GetSocketOption ( SocketOptionLevel  optionLevel,
SocketOptionName  optionName,
int32_t  optionLength 
)

◆ GetSocketOption() [3/3]

ASPOSECPP_SHARED_API void System::Net::Sockets::Socket::GetSocketOption ( SocketOptionLevel  optionLevel,
SocketOptionName  optionName,
System::ArrayPtr< uint8_t >  optionValue 
)

◆ IOControl() [1/2]

ASPOSECPP_SHARED_API int32_t System::Net::Sockets::Socket::IOControl ( int32_t  ioControlCode,
System::ArrayPtr< uint8_t >  optionInValue,
System::ArrayPtr< uint8_t >  optionOutValue 
)

◆ IOControl() [2/2]

ASPOSECPP_SHARED_API int32_t System::Net::Sockets::Socket::IOControl ( IOControlCode  ioControlCode,
System::ArrayPtr< uint8_t >  optionInValue,
System::ArrayPtr< uint8_t >  optionOutValue 
)

◆ Listen()

ASPOSECPP_SHARED_API void System::Net::Sockets::Socket::Listen ( int32_t  backlog)

◆ Poll()

ASPOSECPP_SHARED_API bool System::Net::Sockets::Socket::Poll ( int32_t  microSeconds,
SelectMode  mode 
)

◆ Receive() [1/8]

ASPOSECPP_SHARED_API int32_t System::Net::Sockets::Socket::Receive ( System::ArrayPtr< uint8_t >  buffer)

◆ Receive() [2/8]

ASPOSECPP_SHARED_API int32_t System::Net::Sockets::Socket::Receive ( System::ArrayPtr< uint8_t >  buffer,
int32_t  offset,
int32_t  size,
SocketFlags  socketFlags 
)

◆ Receive() [3/8]

ASPOSECPP_SHARED_API int32_t System::Net::Sockets::Socket::Receive ( System::ArrayPtr< uint8_t >  buffer,
int32_t  offset,
int32_t  size,
SocketFlags  socketFlags,
SocketError errorCode 
)

◆ Receive() [4/8]

ASPOSECPP_SHARED_API int32_t System::Net::Sockets::Socket::Receive ( System::ArrayPtr< uint8_t >  buffer,
int32_t  size,
SocketFlags  socketFlags 
)

◆ Receive() [5/8]

ASPOSECPP_SHARED_API int32_t System::Net::Sockets::Socket::Receive ( System::ArrayPtr< uint8_t >  buffer,
SocketFlags  socketFlags 
)

◆ Receive() [6/8]

ASPOSECPP_SHARED_API int32_t System::Net::Sockets::Socket::Receive ( System::SharedPtr< Collections::Generic::IList< ArraySegment< uint8_t >>>  buffers)

◆ Receive() [7/8]

ASPOSECPP_SHARED_API int32_t System::Net::Sockets::Socket::Receive ( System::SharedPtr< Collections::Generic::IList< ArraySegment< uint8_t >>>  buffers,
SocketFlags  socketFlags 
)

◆ Receive() [8/8]

ASPOSECPP_SHARED_API int32_t System::Net::Sockets::Socket::Receive ( System::SharedPtr< Collections::Generic::IList< ArraySegment< uint8_t >>>  buffers,
SocketFlags  socketFlags,
SocketError errorCode 
)

◆ ReceiveFrom() [1/4]

ASPOSECPP_SHARED_API int32_t System::Net::Sockets::Socket::ReceiveFrom ( System::ArrayPtr< uint8_t >  buffer,
int32_t  offset,
int32_t  size,
SocketFlags  socketFlags,
System::SharedPtr< EndPoint > &  remoteEP 
)

◆ ReceiveFrom() [2/4]

ASPOSECPP_SHARED_API int32_t System::Net::Sockets::Socket::ReceiveFrom ( System::ArrayPtr< uint8_t >  buffer,
int32_t  size,
SocketFlags  socketFlags,
System::SharedPtr< EndPoint > &  remoteEP 
)

◆ ReceiveFrom() [3/4]

ASPOSECPP_SHARED_API int32_t System::Net::Sockets::Socket::ReceiveFrom ( System::ArrayPtr< uint8_t >  buffer,
SocketFlags  socketFlags,
System::SharedPtr< EndPoint > &  remoteEP 
)

◆ ReceiveFrom() [4/4]

ASPOSECPP_SHARED_API int32_t System::Net::Sockets::Socket::ReceiveFrom ( System::ArrayPtr< uint8_t >  buffer,
System::SharedPtr< EndPoint > &  remoteEP 
)

◆ ReceiveMessageFrom()

ASPOSECPP_SHARED_API int32_t System::Net::Sockets::Socket::ReceiveMessageFrom ( System::ArrayPtr< uint8_t >  buffer,
int32_t  offset,
int32_t  size,
SocketFlags socketFlags,
System::SharedPtr< EndPoint > &  remoteEP,
IPPacketInformation ipPacketInformation 
)

◆ Send() [1/8]

ASPOSECPP_SHARED_API int32_t System::Net::Sockets::Socket::Send ( System::ArrayPtr< uint8_t >  buffer)

◆ Send() [2/8]

ASPOSECPP_SHARED_API int32_t System::Net::Sockets::Socket::Send ( System::ArrayPtr< uint8_t >  buffer,
int32_t  offset,
int32_t  size,
SocketFlags  socketFlags 
)

◆ Send() [3/8]

ASPOSECPP_SHARED_API int32_t System::Net::Sockets::Socket::Send ( System::ArrayPtr< uint8_t >  buffer,
int32_t  offset,
int32_t  size,
SocketFlags  socketFlags,
SocketError errorCode 
)

◆ Send() [4/8]

ASPOSECPP_SHARED_API int32_t System::Net::Sockets::Socket::Send ( System::ArrayPtr< uint8_t >  buffer,
int32_t  size,
SocketFlags  socketFlags 
)

◆ Send() [5/8]

ASPOSECPP_SHARED_API int32_t System::Net::Sockets::Socket::Send ( System::ArrayPtr< uint8_t >  buffer,
SocketFlags  socketFlags 
)

◆ Send() [6/8]

ASPOSECPP_SHARED_API int32_t System::Net::Sockets::Socket::Send ( System::SharedPtr< Collections::Generic::IList< ArraySegment< uint8_t >>>  buffers)

◆ Send() [7/8]

ASPOSECPP_SHARED_API int32_t System::Net::Sockets::Socket::Send ( System::SharedPtr< Collections::Generic::IList< ArraySegment< uint8_t >>>  buffers,
SocketFlags  socketFlags 
)

◆ Send() [8/8]

ASPOSECPP_SHARED_API int32_t System::Net::Sockets::Socket::Send ( System::SharedPtr< Collections::Generic::IList< ArraySegment< uint8_t >>>  buffers,
SocketFlags  socketFlags,
SocketError errorCode 
)

◆ SendTo() [1/4]

ASPOSECPP_SHARED_API int32_t System::Net::Sockets::Socket::SendTo ( System::ArrayPtr< uint8_t >  buffer,
int32_t  offset,
int32_t  size,
SocketFlags  socketFlags,
System::SharedPtr< EndPoint remoteEP 
)

◆ SendTo() [2/4]

ASPOSECPP_SHARED_API int32_t System::Net::Sockets::Socket::SendTo ( System::ArrayPtr< uint8_t >  buffer,
int32_t  size,
SocketFlags  socketFlags,
System::SharedPtr< EndPoint remoteEP 
)

◆ SendTo() [3/4]

ASPOSECPP_SHARED_API int32_t System::Net::Sockets::Socket::SendTo ( System::ArrayPtr< uint8_t >  buffer,
SocketFlags  socketFlags,
System::SharedPtr< EndPoint remoteEP 
)

◆ SendTo() [4/4]

ASPOSECPP_SHARED_API int32_t System::Net::Sockets::Socket::SendTo ( System::ArrayPtr< uint8_t >  buffer,
System::SharedPtr< EndPoint remoteEP 
)

◆ set_Blocking()

ASPOSECPP_SHARED_API void System::Net::Sockets::Socket::set_Blocking ( bool  value)

◆ set_DontFragment()

ASPOSECPP_SHARED_API void System::Net::Sockets::Socket::set_DontFragment ( bool  value)

◆ set_DualMode()

ASPOSECPP_SHARED_API void System::Net::Sockets::Socket::set_DualMode ( bool  value)

◆ set_EnableBroadcast()

ASPOSECPP_SHARED_API void System::Net::Sockets::Socket::set_EnableBroadcast ( bool  value)

◆ set_ExclusiveAddressUse()

ASPOSECPP_SHARED_API void System::Net::Sockets::Socket::set_ExclusiveAddressUse ( bool  value)

◆ set_LingerState()

ASPOSECPP_SHARED_API void System::Net::Sockets::Socket::set_LingerState ( System::SharedPtr< LingerOption value)

◆ set_MulticastLoopback()

ASPOSECPP_SHARED_API void System::Net::Sockets::Socket::set_MulticastLoopback ( bool  value)

◆ set_NoDelay()

ASPOSECPP_SHARED_API void System::Net::Sockets::Socket::set_NoDelay ( bool  value)

◆ set_ReceiveBufferSize()

ASPOSECPP_SHARED_API void System::Net::Sockets::Socket::set_ReceiveBufferSize ( int32_t  value)

◆ set_ReceiveTimeout()

ASPOSECPP_SHARED_API void System::Net::Sockets::Socket::set_ReceiveTimeout ( int32_t  value)

◆ set_SendBufferSize()

ASPOSECPP_SHARED_API void System::Net::Sockets::Socket::set_SendBufferSize ( int32_t  value)

◆ set_SendTimeout()

ASPOSECPP_SHARED_API void System::Net::Sockets::Socket::set_SendTimeout ( int32_t  value)

◆ set_Ttl()

ASPOSECPP_SHARED_API void System::Net::Sockets::Socket::set_Ttl ( int16_t  value)

◆ SetSocketOption() [1/4]

ASPOSECPP_SHARED_API void System::Net::Sockets::Socket::SetSocketOption ( SocketOptionLevel  optionLevel,
SocketOptionName  optionName,
bool  optionValue 
)

◆ SetSocketOption() [2/4]

ASPOSECPP_SHARED_API void System::Net::Sockets::Socket::SetSocketOption ( SocketOptionLevel  optionLevel,
SocketOptionName  optionName,
int32_t  optionValue 
)

◆ SetSocketOption() [3/4]

ASPOSECPP_SHARED_API void System::Net::Sockets::Socket::SetSocketOption ( SocketOptionLevel  optionLevel,
SocketOptionName  optionName,
System::ArrayPtr< uint8_t >  optionValue 
)

◆ SetSocketOption() [4/4]

ASPOSECPP_SHARED_API void System::Net::Sockets::Socket::SetSocketOption ( SocketOptionLevel  optionLevel,
SocketOptionName  optionName,
System::SharedPtr< Object optionValue 
)

◆ Shutdown()

ASPOSECPP_SHARED_API void System::Net::Sockets::Socket::Shutdown ( SocketShutdown  how)