category
linda_client
Linda client predicates and client-side connection state. Import into a threaded object together with the linda_server category.
logtalk_load(linda(loader))staticPublic predicates
linda_client/2
Connects to a Linda server at the given address (Host:Port) using the given options.
staticlinda_client(Address,Options)linda_client(++address,++list(compound)) - one_or_errorlinda_error(already_connected)linda_error(connection_failed(Error))
Option
alias(Alias): UseAliasas an alias to the server address. Default isblackboard.
linda_client/1
Connects to a Linda server at the given address (Host:Port) using default options.
staticlinda_client(Address)linda_client(++address) - one_or_errorlinda_error(already_connected)linda_error(connection_failed(Error))close_client/1
Closes the connection to the given Linda server.
staticclose_client(Address)close_client(++address_or_alias) - oneshutdown_server/1
Sends a shutdown signal to the given server. The server stops accepting new connections but continues serving existing clients until they all disconnect. Call close_client/1 after this predicate.
staticshutdown_server(Address)shutdown_server(++address_or_alias) - one_or_errorlinda_error(not_connected(Address))linda_timeout/2
Gets or sets the client timeout. OldTime is unified with the current timeout and the timeout is set to NewTime. The timeout value is either off (no timeout, wait forever) or Seconds:Milliseconds.
staticlinda_timeout(OldTime,NewTime)linda_timeout(?compound,+compound) - oneout/2
Places the tuple Tuple in the tuple-space of the given server.
staticout(AddressOrALias,Tuple)out(++address_or_alias,+term) - oneout/1
Places the tuple Tuple in the tuple-space of the default server.
staticout(Tuple)out(+term) - onein/2
Removes a tuple matching Tuple from the tuple-space of the given server. Blocks if no matching tuple is available.
staticin(AddressOrALias,Tuple)in(++address_or_alias,?term) - onein/1
Removes a tuple matching Tuple from the tuple-space of the default server. Blocks if no matching tuple is available.
staticin(Tuple)in(?term) - onein_noblock/2
Removes a tuple matching Tuple from the tuple-space of the default server. Fails if no matching tuple is available.
staticin_noblock(AddressOrALias,Tuple)in_noblock(++address_or_alias,?term) - zero_or_onein_noblock/1
Removes a tuple matching Tuple from the tuple-space of the default server. Fails if no matching tuple is available.
staticin_noblock(Tuple)in_noblock(?term) - zero_or_onein_list/3
Removes a tuple matching one of the patterns in TupleList from the tuple-space of the given server. Tuple is unified with the matched tuple. Blocks if no matching tuple is available.
staticin_list(AddressOrALias,TupleList,Tuple)in_list(++address_or_alias,+list,?term) - onein_list/2
Removes a tuple matching one of the patterns in TupleList from the tuple-space of the default server. Tuple is unified with the matched tuple. Blocks if no matching tuple is available.
staticin_list(TupleList,Tuple)in_list(+list,?term) - onerd/2
Reads a tuple matching Tuple from the tuple-space of the given server without removing it. Blocks if no matching tuple is available.
staticrd(AddressOrALias,Tuple)rd(++address_or_alias,?term) - onerd/1
Reads a tuple matching Tuple from the tuple-space of the default server without removing it. Blocks if no matching tuple is available.
staticrd(Tuple)rd(?term) - onerd_noblock/2
Reads a tuple matching Tuple from the tuple-space of the given server without removing it. Fails if no matching tuple is available.
staticrd_noblock(AddressOrALias,Tuple)rd_noblock(++address_or_alias,?term) - zero_or_onerd_noblock/1
Reads a tuple matching Tuple from the tuple-space of the default server without removing it. Fails if no matching tuple is available.
staticrd_noblock(Tuple)rd_noblock(?term) - zero_or_onerd_list/3
Reads a tuple matching one of the patterns in TupleList from the tuple-space of the given server without removing it. Tuple is unified with the matched tuple. Blocks if no matching tuple is available.
staticrd_list(AddressOrALias,TupleList,Tuple)rd_list(++address_or_alias,+list,?term) - onerd_list/2
Reads a tuple matching one of the patterns in TupleList from the tuple-space of the default server without removing it. Tuple is unified with the matched tuple. Blocks if no matching tuple is available.
staticrd_list(TupleList,Tuple)rd_list(+list,?term) - onefindall_rd_noblock/4
Returns a list of all instances of Template for tuples matching Tuple in the tuple-space. The operation is atomic.
staticfindall_rd_noblock(AddressOrALias,Template,Tuple,List)findall_rd_noblock(++address_or_alias,?term,+term,?list) - onefindall_rd_noblock/3
Returns a list of all instances of Template for tuples matching Tuple in the tuple-space. The operation is atomic.
staticfindall_rd_noblock(Template,Tuple,List)findall_rd_noblock(?term,+term,?list) - onefindall_in_noblock/4
Removes and returns a list of all instances of Template for tuples matching Tuple in the tuple-space. The operation is atomic - all matching tuples are removed in one synchronized operation.
staticfindall_in_noblock(AddressOrALias,Template,Tuple,List)findall_in_noblock(++address_or_alias,?term,+term,?list) - onefindall_in_noblock/3
Removes and returns a list of all instances of Template for tuples matching Tuple in the tuple-space. The operation is atomic - all matching tuples are removed in one synchronized operation.
staticfindall_in_noblock(Template,Tuple,List)findall_in_noblock(?term,+term,?list) - oneProtected predicates
(no local declarations; see entity ancestors if any)
Private predicates
client_connection_input_/2
Stores the input stream for the client connection to the server.
dynamicclient_connection_input_(Address,InputStream)client_connection_input_(?address,?stream) - zero_or_moreclient_connection_output_/2
Stores the output stream for the client connection to the server.
dynamicclient_connection_output_(Address,OutputStream)client_connection_output_(?address,?stream) - zero_or_moreclient_connection_alias_/2
Stores the client connection server aliases.
dynamicclient_connection_alias_(Address,Alias)client_connection_alias_(?address,?atom) - zero_or_moreclient_timeout_/1
Stores the timeout value for blocking client operations. Value is either off or Seconds:Milliseconds.
dynamicclient_timeout_(Timeout)client_timeout_(?compound) - zero_or_oneOperators
(none)