property wodBeepCom.Transport as IBeepTransport
Holds transport interface for the session.

  TypeDescription 
   IBeepTransport Reference to implementation of IBeepTransport interface. 
 

Transport property defines how wodBeep will send messages to the other peer. Typically, this will be socket-type transport over TCP connection (implemented by wodBeep package), but you can define your own transport as well: over UDP, SMTP/POP3, other Beep session, or any other type you need. Only thing required to define your own transport is that transport is two-sided, allowing both sides to send and receive structured messages.

To implement your own transport, you need to implement these methods:

Notifications - to hold reference to IBeepTransportNotifications object,
Reset - method that will reset state of the transport,
Send - method that will send data over transport engine,
Start - method that will start the transport (connect with remote peer, etc..),
State - method that will return current state of the transport,
Stop - method that will stop the transport.
 

Once you implement these methods, you will notify parent object (usually wodBeep) when connection is established, message received, state changes etc..

Typically, to initialize transport engine and pass its reference to wodBeep you need to do something like this (VB sample):
 

Dim tcp As BeepTransportTCP  'or any other transport you like
Set tcp = New BeepTransportTCP 'initialize new instance
tcp.DebugFile = "C:\debug.txt" 'implementation-specific properties below
tcp.HostName = "other.beep.peer.com"
tcp.Port = 2552

Set Beep1.Transport = tcp
'pass our reference to wodBeep