.

Average: 0
Rating Count: 0

Development status: Released, Release: JSocket-Release-1.0.0
Information status: Updated
Repository: http://svn.code.sf.net/p/tango-ds/code/DeviceClasses/Communication/JSocket
Contact:



Class Description


This class implements basic socket IPC.

Families: Communication

Key words:

Platform: Unix Like

Language: Java

License: GPL

Contact:

Hardware


Manufacturer: none

Bus: Socket

Class interface


Attributes:

Commands:

Name Description
ReadShortArrayInput: DevLong
number of char to read
Output: DevVarShortArray
char read on socket
read on socket and return output Argument.
ReadUntilInput: DevString
This is the terminator
Output: DevString
This is the read string.
This command read data from the socket until the terminator has been reached.
ReadlnInput: DevVoid
Output: DevString
argout
Reads from a socket until a `` `` has been received.
ReadInput: DevVoid
Output: DevString
Command used to read a string from the socket.
WriteShortArrayInput: DevVarShortArray
array to write
Output: DevVoid
write on socket input Argument.
WriteReadUntilInput: DevVarStringArray
[0] = Command string to be send, [1] = end of message character
Output: DevString
Answer string.
Write to the socket and waits for the answer. The answer is triggered by select() which indicates that the the anser has arrived.
WriteAndReadInput: DevString
Command string.
Output: DevString
Answer string.
Write to the socket and waits for the answer. The end of the answer is triggered by the new line character!
WriteInput: DevString
Output: DevVoid
Command used to send a string to the socket.
ReconnectInput: DevVoid
Output: DevVoid
Attempts to re-establish the socket connection.
StatusInput: DevVoid
Output: ConstDevString
Status description
This command gets the device status (stored in its <i>device_status</i> data member) and returns it to the caller.
StateInput: DevVoid
Output: State
State Code
This command gets the device state (stored in its <i>device_state</i> data member) and returns it to the caller.

Pipes:

Properties:

Name Description
DisableNagleDevBoolean Enable/disable TCP_NODELAY (disable/enable Nagle`s algorithm). true is disable Nagle`s algorithm or TcpNoDelay Enable. false is enable Nagle`s algorithm or TcpnoDelay Disable.
AutoReconnectDevBoolean If true, the server try to re-create and re-connect to the socket after a failure. NOTE : The default values is false.
ReadtimeoutDevShort Read timeout in milliseconds.
PortDevLong This is the port number to connect to.
HostnameDevString This is the hostname of the host to connect to.


Please log in to comment.

23 Feb 2017, Piotr Goryl
Updated:
The device class has been updated.
You can see previous version here .



19 Jan 2017, Piotr Goryl
Updated:
The device server has been updated.
You can see previous version here .



2 Jan 2017, Piotr Goryl
Created:
The device server has been added to catalogue.
Added by:pgoryl2 on:2 Jan 2017, 3:48 p.m.