Tea Java Runtime API
Version 3.2.5

com.pdmfc.tea.modules.net
Class SSocketBase

java.lang.Object
  extended by com.pdmfc.tea.modules.tos.STosObj
      extended by com.pdmfc.tea.modules.net.SSocketBase
All Implemented Interfaces:
SObjFunction
Direct Known Subclasses:
SPlainSocketBase, SSslSocketBase

public class SSocketBase
extends STosObj

Represents the TOS object that embodies a socket.


Constructor Summary
SSocketBase(STosClass myClass)
           
 
Method Summary
 java.lang.Object close(SObjFunction obj, SContext context, java.lang.Object[] args)
           
 java.lang.Object connect(SObjFunction obj, SContext context, java.lang.Object[] args)
          Opens the connection to the remote host.
 void connect(java.net.Socket sock)
          Uses the socket received as argument.
 java.lang.Object getInput(SObjFunction obj, SContext context, java.lang.Object[] args)
           
 java.lang.Object getOutput(SObjFunction obj, SContext context, java.lang.Object[] args)
           
 
Methods inherited from class com.pdmfc.tea.modules.tos.STosObj
exec, getTosClass, init, part, selfObj
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SSocketBase

public SSocketBase(STosClass myClass)
            throws STeaException
Throws:
STeaException
Method Detail

connect

public java.lang.Object connect(SObjFunction obj,
                                SContext context,
                                java.lang.Object[] args)
                         throws STeaException
Opens the connection to the remote host.

Throws:
STeaException

connect

public void connect(java.net.Socket sock)
             throws SIOException
Uses the socket received as argument.

Throws:
SIOException

close

public java.lang.Object close(SObjFunction obj,
                              SContext context,
                              java.lang.Object[] args)
                       throws STeaException
Throws:
STeaException

getInput

public java.lang.Object getInput(SObjFunction obj,
                                 SContext context,
                                 java.lang.Object[] args)
                          throws STeaException
Throws:
STeaException

getOutput

public java.lang.Object getOutput(SObjFunction obj,
                                  SContext context,
                                  java.lang.Object[] args)
                           throws STeaException
Throws:
STeaException

Tea Java Runtime API
Version 3.2.5

© 2009 PDM&FC, All Rights Reserved.