Click or drag to resize

ProtocolSocket Methods

The ProtocolSocket type exposes the following members.

Methods
  NameDescription
Public methodAddAspect
Adds an aspect to a socket.
Public methodAddOrUpdateAspect
Adds or updates an aspect of the socket.
Public methodBeginEditAsync
Start batch editing.
Public methodEndEditAsync
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, String)
Returns an object that implements a specific API, or null. For example, an IO API such as IPacketIOService.
Public methodFindServiceT(ServiceBindingFlags, String)
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 methodNotifyEditBegunAsync
Notify EditBegunAsync raised.
Protected methodNotifyEditEndedAsync
Notify EditEndedAsync raised.
Protected methodNotifyPropertyChanged(PropertyChangedEventArgs)
Raises the PropertyChanged event.
Protected methodNotifyPropertyChanged(String)
Raises the PropertyChanged event.
Protected 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 OnOpenedAsync event is fired.
Public methodRemoveAspect
Removes an aspect from a socket.
Public methodSetDownStream
Sets the downstream socket.
Public methodSetLog
Sets the current log.
Public methodShutdown
Forcibly shuts down the socket, without logging an error.
Public methodShutdown(Exception)
Forcibly shuts down the socket, and then logs an error.
Public methodShutdown(String)
Forcibly shuts down the socket, and then logs an error.
Public methodShutdown(LogMessageLogLevel, String, Object)
Forcibly shuts down the socket, and then logs an error.
Public methodToString
Returns a description of this socket.
(Overrides ObjectToString.)
Public methodUnregisterClosing
Unregister a previously registered function.
Public methodUnregisterOpen
Unregister a previously registered function.
Top
See Also