Click or drag to resize

TcpSocket Class

A TCP socket.
Inheritance Hierarchy

Namespace:  FM.IceLink
Assembly:  FM.IceLink (in FM.IceLink.dll) Version: 3.2.2.607 (3.2.2.607)

The TcpSocket type exposes the following members.

Constructors
  NameDescription
Public methodTcpSocket(Boolean, Boolean, Boolean)
Initializes a new instance of the TcpSocket class.
Public methodTcpSocket(Socket, Boolean, Boolean)
Initializes a new instance of the TcpSocket class.
Top
Properties
  NameDescription
Public propertyAdapterSpeed
Gets or sets the adapter speed.
(Inherited from ManagedSocket.)
Public propertyStatic memberCertificate
Gets or sets the certificate to use to secure the socket. This is required for secure server sockets.
Public propertyIPv6
Gets a value indicating whether the socket supports IPv6.
(Overrides ManagedSocketIPv6.)
Public propertyIsClosed
Gets a value indicating whether this instance is closed.
(Overrides ManagedSocketIsClosed.)
Public propertyListenBacklog
Gets or sets the maximum length of the pending connections queue.
Public propertyLocalIPAddress
Gets the local IP address.
(Overrides ManagedSocketLocalIPAddress.)
Public propertyLocalPort
Gets the local port.
(Overrides ManagedSocketLocalPort.)
Public propertyOnReceiveFailure
Gets or sets a callback invoked on failed read from TCP stream.
(Inherited from StreamSocket.)
Public propertyOnReceiveSuccess
Gets or sets a callback invoked on successful read from TCP stream.
(Inherited from StreamSocket.)
Public propertyPublicIPAddress
Gets or sets the public IP address, if known.
(Inherited from ManagedSocket.)
Public propertyRemoteHostname
Gets the remote hostname.
(Overrides StreamSocketRemoteHostname.)
Public propertyRemoteIPAddress
Gets the remote IP address.
(Overrides StreamSocketRemoteIPAddress.)
Public propertyRemotePort
Gets the remote port.
(Overrides StreamSocketRemotePort.)
Public propertySecure
Gets a value indicating whether the socket is secure.
(Overrides StreamSocketSecure.)
Public propertyServer
Gets a value indicating whether the socket can accept incoming connections.
(Overrides StreamSocketServer.)
Public propertySocket
Gets the underlying socket.
Public propertyStream
Gets the underlying stream.
Top
Methods
  NameDescription
Public methodAcceptAsync
Accepts a new socket asynchronously.
(Overrides StreamSocketAcceptAsync(Action0, Action1Exception, Action1StreamSocket).)
Public methodBind
Binds the socket to a local endpoint.
(Overrides ManagedSocketBind(String, Int32, Boolean).)
Public methodClose
Closes the socket.
(Overrides ManagedSocketClose.)
Public methodConnectAsync
Connects the socket asynchronously.
(Overrides StreamSocketConnectAsync(String, String, Int32, Int32, Action0, Action2Exception, Boolean).)
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Protected methodRaiseAcceptFailure
Invokes the accept failure callback.
(Inherited from StreamSocket.)
Protected methodRaiseAcceptSocket
Invokes the accept success callback.
(Inherited from StreamSocket.)
Protected methodRaiseAcceptSuccess
Invokes the accept success callback.
(Inherited from StreamSocket.)
Protected methodRaiseConnectFailure
Invokes the connect failure callback.
(Inherited from StreamSocket.)
Protected methodRaiseConnectSuccess
Invokes the connect success callback.
(Inherited from StreamSocket.)
Protected methodRaiseReceiveFailure
Invokes the receive failure callback.
(Inherited from StreamSocket.)
Protected methodRaiseReceiveSuccess
Invokes the receive success callback.
(Inherited from StreamSocket.)
Protected methodRaiseSendFailure
Invokes the send failure callback.
(Inherited from StreamSocket.)
Protected methodRaiseSendSuccess
Invokes the send success callback.
(Inherited from StreamSocket.)
Public methodReceiveAsync
Receives data asynchronously.
(Overrides StreamSocketReceiveAsync(Int32).)
Public methodSend
Sends data synchronously.
(Overrides StreamSocketSend(DataBuffer).)
Public methodSendAsync
Sends data asynchronously.
(Overrides StreamSocketSendAsync(DataBuffer, Int32, Action0, Action2Exception, Boolean).)
Public methodToString (Inherited from Object.)
Top
Events
  NameDescription
Public eventStatic memberOnSocketCreated
Raised when a socket has been created and initialized.
Top
See Also