|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Thread
madkit.communicator.TwoChannelsSocketExtremity
public class TwoChannelsSocketExtremity
Thomas Cahuzac. Une instance de cette classe par Kernel distant
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.lang.Thread |
|---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
| Field Summary | |
|---|---|
java.io.DataInputStream |
in
|
protected short |
maxDataSize
|
protected short |
messageNumber
|
java.io.DataOutputStream |
out
|
java.net.Socket |
socket
|
protected java.util.Hashtable |
tableClient
|
| Fields inherited from class java.lang.Thread |
|---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
|---|---|
TwoChannelsSocketExtremity(java.net.DatagramSocket dSocket,
java.net.Socket socket,
TransportLayer pere,
java.util.Hashtable tableClient)
|
|
| Method Summary | |
|---|---|
protected void |
closeSocket()
|
java.lang.Object |
decode(byte[] rawobj)
Telecharge les objets mobiles arrivant sur le port. |
byte[] |
encode(java.lang.Object o,
java.io.ByteArrayOutputStream byteout)
|
void |
run()
|
void |
sendWithTCP(java.lang.Object object)
|
void |
sendWithUDP(java.lang.Object o)
|
| Methods inherited from class java.lang.Thread |
|---|
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected short messageNumber
protected short maxDataSize
public java.net.Socket socket
public java.io.DataInputStream in
public java.io.DataOutputStream out
protected java.util.Hashtable tableClient
| Constructor Detail |
|---|
public TwoChannelsSocketExtremity(java.net.DatagramSocket dSocket,
java.net.Socket socket,
TransportLayer pere,
java.util.Hashtable tableClient)
| Method Detail |
|---|
protected void closeSocket()
public java.lang.Object decode(byte[] rawobj)
throws java.io.IOException
java.io.IOExceptionpublic void run()
run in interface java.lang.Runnablerun in class java.lang.Thread
public byte[] encode(java.lang.Object o,
java.io.ByteArrayOutputStream byteout)
throws java.io.IOException
java.io.IOExceptionpublic void sendWithTCP(java.lang.Object object)
public void sendWithUDP(java.lang.Object o)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||