TCPIPReceiver
笔记:可以与之结合使用TCPIPER.。
Receives raw data over TCP/IP. Produces a feature each time a specified number of bytes is received or a particular sequence is detected.
To transport data from one FME process to another: use the TCPIPSender transformer in the source FME workspace to send data to a TCPIPReceiver transformer in the receiving FME workspace.
Input Ports
This transformer has no input ports.
Output Ports
包含已接收的数据的功能通过此端口输出。
Parameters
联系
TheInitiation Sequence指定变压器是否负责建立连接(Establish),或者连接到一个建立主机(Connect). If the TCPIPReceiver is used with a corresponding TCPIPSender, either the sender or receiver can be the establisher.
笔记:The workspace that establishes the transfer mode must be running before the connecting workspace.
This parameter is only needed by the workspace with theInitiation Sequence参数设置为Connect。The TCPIPReceiver inConnect模式可以连接到指定的主机和倾听for data. The establishing host can be another FME workspace, or any application or server that communicates over TCP/IP.
Specify either a port number or a service (for example,http,ftp,telnet,imap,gopher,pop3,www, andSMTP.are services that are typically associated with well-known port numbers).
The default value is 8586.
如果此参数设置为不,TCPIPreCeiver只接受一个连接以接收功能。否则,如果当前客户端已断开连接,则TCPipreCeiver将接受新的客户端连接,直到转换停止。
划定
如果此参数设置为Fixed Data Length, then each feature output by the TCPIPReceiver will contain a maximum number of bytes, specified by theData Lengthparameter. This method is intended for receiving data that always has a fixed length.
如果此参数设置为Receive Data Length from Sender, then the TCPIPReceiver will expect to receive the size of incoming data before the data payload, up to a maximum of 256KB per request. In this way, the value ofData Length由发件人动态确定,而不是由接收器设置为固定值。如果发件人发送超过256KB,则输出数据将被分成256kb段。如果TCPIPReceiver与TCPIPENER一起使用,那么TCPIPESENTER应该有Send Data Length属性设置为是的。如果此参数设置为不, then the TCPIPReceiver processes all incoming transmissions as raw data.
如果此参数设置为Custom Delimiter, then the TCPIPReceiver will split received data into features using the specifiedDelimiter参数,每个功能最多可达256kb。
在输出功能之前指定变压器接收的最大字节数。如果连接终止,则变压器将输出任何剩余数据。如果输入-1作为此参数的值,则TCPIPReceiver将每请求最多收到256KB。只使用if.划定Methodis set toFixed Data Length。
Specify the string that separates the received data into segments. Each segment will become a separate feature. For example, ifDelimiterwas the string “__”, then the data “ABC__DEF__GHI” would be split into 3 features with输出属性values of “ABC”, “DEF”, and “GHI” respectively.
Output
指定将存储所接收的数据的输出属性。
Specifies the destination attribute for the number of bytes received by the TCPIPReceiver.
Usage Notes
- One workspace is the designated "establisher" of the transport stream. If there are multiple transport streams between workspaces, one workspace must be the establisher of all the streams, and the other will connect to those transport streams. This is regardless of whether the individual transporters are sending or receiving data.
- The establishing workspace must be started before the workspace that is connecting. A TCPIPReceiver/TCPIPSender cannot successfully connect to a transport stream that is not already established.
- For each transport channel, there must be a different port that is used for each server machine.
编辑变换器参数
使用一组菜单选项,可以通过引用工作区中的其他元素来分配变压器参数。一些变压器也可提供更高级的功能,例如高级编辑器和算术编辑器。要访问这些选项的菜单,请单击除适用的参数旁边。有关更多信息,请参阅Transformer Parameter Menu Options。
变压器类别
FME Licensing Level
FME Professional edition and above
Search FME Knowledge Center
Search for samples and information about this transformer on theFME Knowledge Center。