Changes between Initial Version and Version 1 of import_pasv


Ignore:
Timestamp:
03/18/12 16:19:26 (8 years ago)
Author:
branden
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • import_pasv

    v1 v1  
     1[[PageOutline]] 
     2 
     3= [wiki:Earthworm Earthworm] Module: import_pasv = 
     4'''Contributed by: ''' 
     5 
     6== Function == 
     7Imports EARTHWORM messages over Internet (partner to export_generic) 
     8 
     9== Details == 
     10[wiki:Import-Export Import-Export Overview] 
     11 
     12=== EXAMPLE CONFIGURATION FILE === 
     13 
     14{{{ 
     15# 
     16# import_gen_pasv configuration file 
     17# 
     18# The intent is that specific import_xxx modules can be cloned from this. 
     19# This program includes a site-specific routine "import_filter" which 
     20# determines what to do with the received messages. The default 
     21# "import_filter" routine assumes that the message originated from 
     22# an  "export_gen_pasv" with a default "export_filter" routine: That routine 
     23# attaches the logo of the originating message as the first nine characters 
     24# (3 groups of 3) of the outgoing message, and exports it. 
     25# The local "import_filter" removes this logo from the message, decodes it, 
     26# and broadcasts the message onto its ring under this logo. 
     27 
     28 MyModuleId     MOD_IMPORT_GEN_PASV  # module id for this import, 
     29 RingName       WAVE_RING            # transport ring to use for input/output, 
     30 HeartBeatInt   30                   # internal heartbeat interval in seconds 
     31# 
     32 LogFile        1                    # If 0, don't write logfile at all, 
     33 
     34 MaxMsgSize     65000                    # max size (bytes) for input/output msgs 
     35 
     36# Note: Messages are assumed to terminate with two newline '\n\n' 
     37#       characters. The '\n\n' are both removed, and replaced by a zero byte. 
     38#       Someday this should be an option defined in this file... 
     39# Note: If an oversized message is received, it will be discarded, the 
     40#       socket will be closed, log an error, and it will connect and try 
     41#       again. This might flood the log file if all incoming messages are 
     42#       too long. Maybe it should terminate instead... 
     43 
     44 MyAliveString      "RCValive"       # heartbeat text to foreign server machine 
     45 MyAliveInt         120              # seconds between alive msgs sent to server 
     46                                     # 0 => no alive messages to sending machine 
     47 
     48 ReceiverIpAdr      128.110.129.13   # Import data through this ethernet card 
     49 ReceiverPort       16005            # IP port to set up for connections 
     50 
     51### Sender description follows: 
     52 
     53 SenderIpAdr        134.20.200.137   # The IP address of the export host 
     54 
     55 SenderHeartRate    60               # Sender's heart beat interval in seconds 
     56                                                             # 0 => no heartbeat expected 
     57 SenderHeartText    "SNDalive"       # Sender's heartbeat text 
     58 SocketTimeout      60000            # Timeout for Socket_ew calls in mili secs 
     59                                     # Should be atleast the SenderHeartRate 
     60 HeartbeatDebug     0                # Optional: 1 = to get heartbeat debug msgs. 
     61 SocketDebug        0                # Optional: 1 = to get socket debug msgs. 
     62}}} 
     63 
     64== Helpful Hints ==