|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.walluck.oscar.SNAC
public class SNAC
A SNAC is the basic communications unit that is exchanged between clients and servers. The SNAC communication layer sits on top of the FLAP layer. The SNAC flags for the client are always 0x0000. From the server, they can be 0x8000, 0x1000, or possibly others.
Constructor Summary | |
---|---|
SNAC()
Creates a new empty SNAC. |
|
SNAC(int family,
int subtype,
short flags,
int id)
Creates a new server SNAC. |
|
SNAC(int family,
int subtype,
short flags,
Object data,
boolean wantResponse)
Creates a new client SNAC. |
Method Summary | |
---|---|
Object |
getData()
Get the value of data. |
int |
getFamily()
Get the value of family. |
short |
getFlags()
Get the value of flags. |
int |
getId()
Get the value of id. |
long |
getIssueTime()
Get the value of issueTime. |
int |
getSubtype()
Get the value of subtype. |
int |
getVersion()
Get the value of version. |
void |
setData(Object data)
Set the value of data. |
void |
setFamily(int family)
Set the value of family. |
void |
setFlags(short flags)
Set the value of flags. |
void |
setId(int id)
Set the value of id. |
void |
setIssueTime(long issueTime)
Set the value of issueTime. |
void |
setSubtype(int subtype)
Set the value of subtype. |
void |
setVersion(int version)
Set the value of version. |
void |
setWantResponse(boolean wantResponse)
Set the value of wantResponse. |
boolean |
wantResponse()
Get the value of wantResponse. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SNAC()
public SNAC(int family, int subtype, short flags, Object data, boolean wantResponse)
family
- the SNAC familysubtype
- the SNAC subtypeflags
- the SNAC flags (normally 0x0000)data
- the data to store with this SNACwantResponse
- whether or not we expect a response for
this SNACpublic SNAC(int family, int subtype, short flags, int id)
family
- the SNAC familysubtype
- the SNAC subtypeflags
- the SNAC flags (normally 0x0000)id
- the SNAC IDMethod Detail |
---|
public int getFamily()
public void setFamily(int family)
family
- Value to assign to family.public int getSubtype()
public void setSubtype(int subtype)
subtype
- Value to assign to subtype.public short getFlags()
public void setFlags(short flags)
flags
- Value to assign to flags.public int getId()
public void setId(int id)
id
- Value to assign to id.public Object getData()
public void setData(Object data)
data
- Value to assign to data.public boolean wantResponse()
public void setWantResponse(boolean wantResponse)
wantResponse
- Value to assign to wantResponse.public long getIssueTime()
public void setIssueTime(long issueTime)
issueTime
- Value to assign to issueTime.public int getVersion()
public void setVersion(int version)
version
- Value to assign to version.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |