Click or drag to resize

ProtocolSocket Class

A connection to a peer (either a client or a server connection), or a protocol server.
Inheritance Hierarchy
SystemObject
  Demo3D.NetProtocolSocket
    Demo3D.NetConnection
    Demo3D.NetProtocolHead
    Demo3D.NetProtocolInstance

Namespace:  Demo3D.Net
Assembly:  Demo3D.IO (in Demo3D.IO.dll) Version: 10.0.0.0 (10.0.0.0)
Syntax
C#
[TypeConverterAttribute(typeof(ExpandableObjectConverter))]
public abstract class ProtocolSocket : IServiceProvider, 
	INotifyPropertyChanged

The ProtocolSocket type exposes the following members.

Constructors
  NameDescription
Protected methodProtocolSocket
Constructs a ProtocolSocket.
Top
Properties
  NameDescription
Public propertyAddress
The address used to create this socket.
Public propertyDownStream
The downstream socket.
Public propertyEditing
True if batch editing.
Public propertyID
A description of this socket.
Public propertyCode exampleProperties
Protocol and service properties.
Public propertyRunning
Returns whether the socket is still running.
Top
Methods
  NameDescription
Public methodAddAspect
Adds an aspect to a socket.
Public methodAddOrUpdateAspect
Adds or updates an aspect of the socket.
Public methodBeginEdit
Start batch editing.
Public methodClose
Closes the socket.
Public methodClose(Exception)
Logs an error, and then closes the socket.
Public methodClose(String)
Logs an error, and then closes the socket.
Public methodClose(String, String, Object)
Logs an error, and then closes the socket.
Public methodEndEdit
End batch editing.
Public methodFindAspect(Type)
Returns an aspect of the given type, or return null.
Public methodFindAspectT
Returns an aspect of the given type, or return null.
Public methodFindService(Type, ServiceBindingFlags)
Returns an object that implements a specific API, or null. For example, an IO API such as IPacketIOService.
Public methodFindServiceT(ServiceBindingFlags)
Returns an object that implements a specific API, or null. For example, an IO API such as IPacketIOService.
Protected methodGetDownStream
Returns the downstream socket.
Public methodGetHead
Returns the protocol head.
Public methodGetOrAddAspect
Adds an aspect to a socket by using the specified function, if the key does not already exist.
Public methodGetServiceT
Returns an object that implements a specific API, or throws an exception. For example, an IO API such as IPacketIOService.
Public methodGetStream
Returns the head of the protocol stream (the first protocol instance).
Protected methodInitializeAsync
When overridden in a derived class, initializes the socket.
Protected methodNotifyPropertyChanged(PropertyChangedEventArgs)
Raises the PropertyChanged event.
Protected methodNotifyPropertyChanged(String)
Raises the PropertyChanged event.
Public methodCode exampleOpen
Opens (or reopens) the socket.
Public methodOpenAsync
Opens (or reopens) the socket.
Public methodRegisterClosing
Registers a function to call when Close has been called but before the socket has been closed.
Public methodRegisterOpen
Registers a function to call after the socket is opened, but before the OnOpened event is fired.
Public methodRemoveAspect
Removes an aspect from a socket.
Public methodSetDownStream
Sets the downstream socket.
Public methodShutdown
Forcibly shuts down the socket.
Public methodShutdown(Exception)
Logs an error, and then shuts down the socket.
Public methodShutdown(String)
Logs an error, and then shuts down the socket.
Public methodShutdown(String, String, Object)
Logs an error, and then shuts down the socket.
Public methodToString
Returns a description of this socket.
(Overrides ObjectToString.)
Public methodTryFindServiceT
Searches for an object that implements a specific API, or null. Only searches on this ProtocolInstance, and does not create the service if it hasn't already been created.
Public methodUnregisterClosing
Unregister a previously registered function.
Public methodUnregisterOpen
Unregister a previously registered function.
Top
Events
  NameDescription
Public eventEditBegun
Raised on the first call to BeginEdit.
Public eventEditEnded
Raised on the last call to EndEdit.
Public eventOnClosed
Occurs after the socket is closed.
Public eventOnOpened
Occurs after the socket is opened.
Public eventOnShutdown
Occurs after the socket is shutdown.
Public eventPropertyChanged
Occurs when a property value changes.
Top
See Also