Click or drag to resize

Connection Class

A client connection to a peer.
Inheritance Hierarchy

Namespace:  Demo3D.Net
Assembly:  Demo3D.IO (in Demo3D.IO.dll) Version: 15.0.2.11458
Syntax
C#
public class Connection : ProtocolSocket

The Connection type exposes the following members.

Properties
  NameDescription
Public propertyAddress
The address used to create this socket.
(Inherited from ProtocolSocket.)
Public propertyDownStream
The downstream socket.
(Inherited from ProtocolSocket.)
Public propertyID
A description of this socket.
(Inherited from ProtocolSocket.)
Public propertyLog
Log messages.
(Inherited from ProtocolSocket.)
Public propertyLogShutdownMessages
Controls whether shutdown messages should be logged to the message log.
Public propertyCode exampleProperties
Protocol and service properties.
(Inherited from ProtocolSocket.)
Public propertyStatic memberRegistry
A register of all open sockets.
Public propertyRunning
Returns whether the socket is still running.
(Overrides ProtocolSocketRunning.)
Public propertyShutdownMessage
Returns information logged when the socket was last shutdown, or null if the socket is open or was closed normally.
Top
Methods
  NameDescription
Public methodAddAspect
Adds an aspect to a socket.
(Inherited from ProtocolSocket.)
Public methodAddOrUpdateAspect
Adds or updates an aspect of the socket.
(Inherited from ProtocolSocket.)
Public methodBeginEditAsync
Start batch editing.
(Inherited from ProtocolSocket.)
Public methodClose
Closes the socket.
(Overrides ProtocolSocket.Close.)
Public methodEndEditAsync
End batch editing.
(Inherited from ProtocolSocket.)
Public methodFindAspect(Type)
Returns an aspect of the given type, or return null.
(Inherited from ProtocolSocket.)
Public methodFindAspectT
Returns an aspect of the given type, or return null.
(Inherited from ProtocolSocket.)
Public methodFindService(Type, ServiceBindingFlags, String)
Returns an object that implements a specific API, or null. For example, an IO API such as IPacketIOService.
(Inherited from ProtocolSocket.)
Public methodFindServiceT(ServiceBindingFlags, String)
Returns an object that implements a specific API, or null. For example, an IO API such as IPacketIOService.
(Inherited from ProtocolSocket.)
Protected methodGetDownStream
Returns the downstream socket.
(Inherited from ProtocolSocket.)
Public methodGetHead
Returns the protocol head.
(Overrides ProtocolSocketGetHead.)
Public methodGetOrAddAspect
Adds an aspect to a socket by using the specified function, if the key does not already exist.
(Inherited from ProtocolSocket.)
Public methodGetServiceT
Returns an object that implements a specific API, or throws an exception. For example, an IO API such as IPacketIOService.
(Inherited from ProtocolSocket.)
Public methodGetStream
Returns the head of the protocol stream (the first protocol instance).
(Inherited from ProtocolSocket.)
Protected methodInitializeAsync
When overridden in a derived class, initializes the socket.
(Inherited from ProtocolSocket.)
Public methodLink
Adds a 'link' reference.
Protected methodNotifyEditBegunAsync
Notify EditBegunAsync raised.
(Inherited from ProtocolSocket.)
Protected methodNotifyEditEndedAsync
Notify EditEndedAsync raised.
(Inherited from ProtocolSocket.)
Protected methodNotifyPropertyChanged(PropertyChangedEventArgs)
Raises the PropertyChanged event.
(Inherited from ProtocolSocket.)
Protected methodNotifyPropertyChanged(String)
Raises the PropertyChanged event.
(Inherited from ProtocolSocket.)
Public methodCode exampleOpen(OpenFlags)
Opens (or reopens) the socket.
Public methodStatic memberOpen(OpenParams)
Opens a socket.
Public methodStatic memberOpen(ProtocolAddress, Flags)
Opens a socket.
Public methodStatic memberOpen(ProtocolAddress, IEnumerableType, Flags)
Opens a socket.
Public methodStatic memberOpen(ProtocolAddress, Type, Flags)
Opens a socket.
Protected methodOpenAsync(Boolean, Flags)
Opens the socket.
(Overrides ProtocolSocketOpenAsync(Boolean, Flags).)
Public methodOpenAsync(Boolean, OpenFlags)
Opens the socket.
Public methodStatic memberOpenAsync(Boolean, OpenParams)
Opens a socket.
Public methodStatic memberOpenAsync(Boolean, ProtocolAddress, Flags)
Opens a socket.
Public methodStatic memberOpenAsync(Boolean, ProtocolAddress, IEnumerableType, Flags)
Opens a socket.
Public methodStatic memberOpenAsync(Boolean, ProtocolAddress, Type, Flags)
Opens a socket.
Public methodRegisterClosing
Registers a function to call when Close has been called but before the socket has been closed.
(Inherited from ProtocolSocket.)
Public methodRegisterOpen
Registers a function to call after the socket is opened, but before the OnOpenedAsync event is fired.
(Inherited from ProtocolSocket.)
Public methodRemoveAspect
Removes an aspect from a socket.
(Inherited from ProtocolSocket.)
Public methodSetDownStream
Sets the downstream socket.
(Inherited from ProtocolSocket.)
Public methodSetLog
Sets the current log.
(Inherited from ProtocolSocket.)
Public methodShutdown
Forcibly shuts down the socket, without logging an error.
(Inherited from ProtocolSocket.)
Public methodShutdown(Exception)
Forcibly shuts down the socket, and then logs an error.
(Inherited from ProtocolSocket.)
Public methodShutdown(String)
Forcibly shuts down the socket, and then logs an error.
(Inherited from ProtocolSocket.)
Public methodShutdown(LogMessageLogLevel, String, Object)
Forcibly shuts down the socket, and then logs an error.
(Inherited from ProtocolSocket.)
Public methodToString
Returns a description of this socket.
(Inherited from ProtocolSocket.)
Public methodUnlink
Remove a 'link' reference count.
Public methodUnlinkRequest
Raises the OnUnlinkRequest event.
Public methodUnregisterClosing
Unregister a previously registered function.
(Inherited from ProtocolSocket.)
Public methodUnregisterOpen
Unregister a previously registered function.
(Inherited from ProtocolSocket.)
Top
Events
  NameDescription
Public eventEditBegunAsync
Raised on the first call to BeginEdit.
(Inherited from ProtocolSocket.)
Public eventEditEndedAsync
Raised on the last call to EndEdit.
(Inherited from ProtocolSocket.)
Public eventOnClosed
Occurs after the socket is closed.
(Inherited from ProtocolSocket.)
Public eventOnDisposed
Occurs when the socket is disposed. A socket is disposed when it's closed and uncached from the connection registry. User script may retain a reference, and may resurrect the socket by calling OpenAsync(Boolean, OpenFlags).
(Inherited from ProtocolSocket.)
Public eventOnLinked
Occurs when a link is made to this socket.
Public eventOnOpenedAsync
Occurs after the socket is opened.
(Inherited from ProtocolSocket.)
Public eventOnShutdown
Occurs after the socket is shutdown.
(Inherited from ProtocolSocket.)
Public eventOnUnlinked
Occurs when a link is removed from this socket.
Public eventOnUnlinkRequest
Occurs when an object is requested to unlink from this socket.
Public eventPropertyChanged
Occurs when a property value changes.
(Inherited from ProtocolSocket.)
Top
See Also