|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectRvCommand
AbstractRvCmd
AbstractRequestRvCmd
VoiceReqRvCmd
A rendezvous command used to request a voice chat session.
Field Summary | |
static long |
VERSION_DEFAULT
The voice chat protocol version used by WinAIM. |
Fields inherited from class AbstractRequestRvCmd |
FPRESENT_DEFAULT, REQTYPE_INITIALREQUEST, REQTYPE_REDIRECT |
Fields inherited from class RvCommand |
RVSTATUS_ACCEPT, RVSTATUS_DENY, RVSTATUS_REQUEST |
Constructor Summary | |
VoiceReqRvCmd(long version,
RvConnectionInfo connInfo)
Creates a new outgoing voice chat request with the given protocol version and the given connection information block. |
|
VoiceReqRvCmd(RecvRvIcbm icbm)
Creates a new voice chat request command from the given incoming voice chat request RV ICBM. |
|
VoiceReqRvCmd(RvConnectionInfo connInfo)
Creates a new outgoing voice chat request with the given connection information block and a protocol version number of VERSION_DEFAULT .
|
Method Summary | |
RvConnectionInfo |
getConnInfo()
Returns the connection information block sent in this command. |
long |
getVersion()
Returns the voice chat protocol version sent in this command, or -1 if none was sent. |
protected boolean |
hasServiceData()
Returns whether this RV command's TLV list should contain a "service data block" TLV. |
java.lang.String |
toString()
|
protected void |
writeRvTlvs(java.io.OutputStream out)
Writes this RV command's list of rendezvous TLV's to the given stream. |
protected void |
writeServiceData(java.io.OutputStream out)
Writes this RV command's "service data block." |
Methods inherited from class AbstractRequestRvCmd |
getRequestType, isFPresent, writeHeaderRvTlvs |
Methods inherited from class AbstractRvCmd |
getRvTlvs, getServiceData, writeRvData |
Methods inherited from class RvCommand |
getCapabilityBlock, getRvStatus |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final long VERSION_DEFAULT
Constructor Detail |
public VoiceReqRvCmd(RecvRvIcbm icbm)
icbm
- an incoming voice chat request RV ICBM commandpublic VoiceReqRvCmd(RvConnectionInfo connInfo)
VERSION_DEFAULT
.
new VoiceReqRvCmd(VERSION_DEFAULT, connInfo)
.
connInfo
- a block of connection informationpublic VoiceReqRvCmd(long version, RvConnectionInfo connInfo)
version
- a protocol version; normally VERSION_DEFAULT
connInfo
- a connection information block, or null
to
not send any connection information in this commandMethod Detail |
public final long getVersion()
-1
if none was sent. This value is normally VERSION_DEFAULT
.
-1
if none was sentpublic final RvConnectionInfo getConnInfo()
null
; the returned object's
fields will simply be empty if no connection information information
was sent.
protected void writeRvTlvs(java.io.OutputStream out) throws java.io.IOException
AbstractRvCmd
writeRvTlvs
in class AbstractRvCmd
out
- the stream to which to write
java.io.IOException
- if an I/O error occursprotected boolean hasServiceData()
AbstractRvCmd
false
for an object, writeServiceData
will
never be called on that object. The default implementation of this method
returns true
.
hasServiceData
in class AbstractRvCmd
AbstractRvCmd.writeServiceData(java.io.OutputStream)
protected void writeServiceData(java.io.OutputStream out) throws java.io.IOException
AbstractRvCmd
AbstractRvCmd.hasServiceData()
returns false
. The default
implementation of this method does not write any data to the stream.
writeServiceData
in class AbstractRvCmd
out
- the stream to which to write
java.io.IOException
- if an I/O error occurspublic java.lang.String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |