LibMC::MCAgency Class Reference
Wrapper class for
MCAgency_t structure.
More...
Public Types
Enum for describing the state of the agency.
More...
Enum for describing the different threads that Mobile-C uses.
More...
Available commands for MC_Steer.
More...
Public Member Functions
Default constructor.
Starts the agency.
Stops and destroys the agency.
Initializes Ch
options for the agency.
Sets all threads for the agency to "off.".
Sets an individual thread for the agency to "on.".
Sets an individual thread for the agency to "off.".
Temporarily halts the agency.
Resumes a halted agency.
Sets the default state of an agent in the agency.
Waits for an agent to arrive and returns the agent.
Waits for an agent to arrive.
Sends an agent migration message file to an agency.
Load an agent migration message.
Sends an agent migration message to an agency.
Broadcast a condition signal.
Signal a condition.
Reset a condition signal.
Wait for a condition signal.
Lock a mutex.
Unlock a mutex.
Posts a semaphore.
Wait for a semaphore to be posted.
Reset an agency signal.
Delete a synchronization variable.
Create a new synchronization variable.
Wait for agency signals.
Delete a barrier object.
Create a new barrier.
Steering control function.
Steering control function.
Registers services in the agency.
int SearchForService (String searchString, IntPtr agentNames, IntPtr serviceNames, IntPtr agentIDs, IntPtr numResults)
Searches for services in the agency.
Add an agent to the agency.
Finds an agent by its name.
Find an agent by its ID.
Retrieve an agent from the agency.
Send an ACL message to the agency.
Makes the agency wait indefinitely.
Properties
Accessor for the port number of the agency.
Accessor for the agency state.
Private Member Functions
static
int _MC_Steer (IntPtr agency, IntPtr funcptr, IntPtr arg)
static
int _MC_SearchForService (IntPtr agency, String searchString, IntPtr agentNames, IntPtr serviceNames, IntPtr agentIDs, IntPtr numResults)
static internal
int _MC_CallAgentFunc (IntPtr agent, String funcName, IntPtr returnVal, IntPtr varg)
Private Attributes
Data Structures
Detailed Description
Wrapper class for
MCAgency_t structure.
This class provides an interface to the Mobile-C agency. Member functions for the class are generally overloaded versions of the respective functions in the Mobile-C library. The class maintains a pointer to the Mobile-C agency in unmanaged memory. The pointer is not accessible by the user.
Definition at line 341 of file MCAgency.cs.
Member Enumeration Documentation
Enum for describing the state of the agency.
This enum is used to determine whether or not certain actions should be permitted, such as halting, resuming, and ending an agency
- Enumerator:
-
NoState
Default, uninitialized state
Initialized
Agency initialized, but not started
Running
Agency is running
Halted
Agency has been stopped (can be resumed)
Ended
Agency is stopped (destroyed)
Definition at line 349 of file MCAgency.cs.
Ch shell type.
Used to set the shell type for the Ch interpretter.
- Enumerator:
-
CH_REGULARCH
Default, regular shell
CH_SAFECH
Safe shell
Definition at line 363 of file MCAgency.cs.
Enum for describing the different threads that Mobile-C uses.
These enums can be used to turn threads on and off before an agency is initialized.
- Note:
- This enum is pulled directly from the Mobile-C library.
- Enumerator:
-
MC_THREAD_DF
Directory Facilitator
MC_THREAD_AMS
Agent Managment system
MC_THREAD_ACC
Agency communications
MC_THREAD_CP
Command Prompt
MC_THREAD_AGENT
Agent threads
MC_THREAD_ALL
Definition at line 79 of file MCExports.cs.
Available commands for MC_Steer.
- Note:
- This enum is pulled directly from the Mobile-C library.
- Enumerator:
-
MC_RUN
Continue the algorithm
MC_SUSPEND
Suspend/pause the algorithm
MC_RESTART
Restart the algorithm from the beginning
MC_STOP
Stop the algorithm
Definition at line 94 of file MCExports.cs.
MobileC system signals.
Each signal is activated after the corresponding action. i.e. The 'MC_RECV_MESSAGE' signal is activated after a message is received.
- Note:
- This enum is pulled directly from the Mobile-C library.
- See also:
- MC_WaitSignal(), MC_ResetSignal()
- Enumerator:
-
MC_NO_SIGNAL
MC_RECV_CONNECTION
MC_RECV_MESSAGE
MC_RECV_AGENT
MC_RECV_RETURN
MC_EXEC_AGENT
MC_ALL_SIGNALS
Definition at line 112 of file MCExports.cs.
Constructor & Destructor Documentation
LibMC::MCAgency::MCAgency
(
)
[inline]
Member Function Documentation
int LibMC::MCAgency::Initialize
(
)
[inline]
Starts the agency.
Starts the agency and sets the agency state.
- Returns:
- 0 on success, -1 on failure.
- Note:
- The agency port and any other options must be set before calling this function.
Definition at line 459 of file MCAgency.cs.
References Agency, port, and state.
int LibMC::MCAgency::End
(
)
[inline]
Stops and destroys the agency.
Stops the agency and sets the agency state appropriately.
- Returns:
- The return value of the underlying MC_End function.
- Note:
- This call will fail if the underlying Mobile-C agency is not in the correct state.
Definition at line 481 of file MCAgency.cs.
References Agency, and state.
int LibMC::MCAgency::SetThreadsAllOn
(
)
[inline]
int LibMC::MCAgency::SetThreadsAllOff
(
)
[inline]
Sets all threads for the agency to "off.".
Sets all threads for the agency to "off." Not recommended for use.
- Returns:
- The return value of the underlying MC_SetThreadsAllOff function.
- Note:
- This function must be called before the agency is started.
Definition at line 530 of file MCAgency.cs.
References _MC_SetThreadsAllOff().
Sets an individual thread for the agency to "on.".
Threads are on by default. If they have been turned off, this function turns them on again.
- Parameters:
-
index The enum that identifies the thread to be turned on.
- Returns:
- The return value of the underlying MC_SetThreadOn function.
- Note:
- This function must be called before the agency is started.
Definition at line 546 of file MCAgency.cs.
References _MC_SetThreadOn().
Sets an individual thread for the agency to "off.".
Most commonly used to turn the command prompt thread off.
- Parameters:
-
index The enum that identifies the thread to be turned off.
- Returns:
- The return value of the underlying MC_SetThreadOff function.
- Note:
- This function must be called before the agency is started.
Definition at line 561 of file MCAgency.cs.
References _MC_SetThreadOff().
int LibMC::MCAgency::HaltAgency
(
)
[inline]
Temporarily halts the agency.
Halts the agency until it is resumed or ended.
- Returns:
- The return value of the underlying MC_HaltAgency function.
- Note:
- The underlying Mobile-C agency must be in the correct state to call this function or it will fail.
Definition at line 576 of file MCAgency.cs.
References _MC_HaltAgency(), Agency, and state.
int LibMC::MCAgency::ResumeAgency
(
)
[inline]
Resumes a halted agency.
Resumes a halted agency. Cannot be used on ended agencies.
- Returns:
- The return value of the underlying MC_ResumeAgency function.
- Note:
- The underlying Mobile-C agency must be in the correct state to call this function or it will fail.
Definition at line 593 of file MCAgency.cs.
References _MC_ResumeAgency(), Agency, and state.
Sets the default state of an agent in the agency.
Can be used to set the default status of agents, but most agents managed their state on their own.
- Parameters:
-
status The enum that identifies the desired agent state.
- Returns:
- The return value of the underlying MC_SetDefaultAgentStatus function.
Definition at line 609 of file MCAgency.cs.
References _MC_SetDefaultAgentStatus(), and Agency.
MCAgent LibMC::MCAgency::WaitRetrieveAgent
(
)
[inline]
Waits for an agent to arrive and returns the agent.
Waits for an agent to arrive in the agency, then returns that agent. The agent is not allowed to execute.
- Returns:
- The agent that was retrieved or an empty agent if it fails.
Definition at line 622 of file MCAgency.cs.
References _MC_WaitRetrieveAgent(), and Agency.
int LibMC::MCAgency::WaitAgent
(
)
[inline]
Waits for an agent to arrive.
Waits for an agent to arrive in the agency. The agent is allowed to execute normally.
- Returns:
- The return value of the underlying MC_WaitAgent function.
Definition at line 639 of file MCAgency.cs.
References _MC_WaitAgent(), and Agency.
int LibMC::MCAgency::SendAgentMigrationMessageFile
(
String
filename,
String
hostname,
)
[inline]
Sends an agent migration message file to an agency.
Sends the specified XML file to another agency (local or remote).
- Parameters:
-
filename The name of the file to send (fully qualified).
hostname The URL, IP address, or other identifier for the agency host.
port The port to send to.
- Returns:
- The return value of the underlying MC_SendAgentMigrationMessageFile function.
Definition at line 658 of file MCAgency.cs.
References Agency.
int LibMC::MCAgency::LoadAgentMigrationMessageFile
(
String
filename
)
[inline]
Load an agent migration message.
Loads the specified XML file to this agency automatically. There is no need to specify a port or agency location.
- Parameters:
-
filename The name of the file to send (fully qualified).
- Returns:
- The return value of the underlying MC_SendAgentMigrationMessageFile function.
Definition at line 672 of file MCAgency.cs.
References Agency, and Port.
int LibMC::MCAgency::SendAgentMigrationMessage
(
String
message,
String
hostname,
)
[inline]
Sends an agent migration message to an agency.
Sends an agent migration message to another agency (local or remote).
- Parameters:
-
message The agent migration message.
hostname The URL, IP address, or other identifier for the agency host.
port The port to send to.
- Returns:
- The return value of the underlying MC_SendAgentMigrationMessageFile function.
Definition at line 687 of file MCAgency.cs.
References _MC_SendAgentMigrationMessage(), and Agency.
int LibMC::MCAgency::CondBroadcast
(
int
id
)
[inline]
Broadcast a condition signal.
Broadcasts a signal in the agency. The parameter "id" is the ID of the agency sync variable created with SyncInit().
- Parameters:
-
id The ID number of the condition to signal.
- Returns:
- The return value of the underlying MC_CondBroadcast function.
Definition at line 705 of file MCAgency.cs.
References _MC_CondBroadcast(), and Agency.
int LibMC::MCAgency::CondSignal
(
int
id
)
[inline]
Signal a condition.
Signals a condition in the agency. The parameter "id" is the ID of the agency sync variable to signal that was created with SyncInit().
- Parameters:
-
id The ID number of the condition to signal.
- Returns:
- The return value of the underlying MC_CondSignal function.
Definition at line 719 of file MCAgency.cs.
References _MC_CondSignal(), and Agency.
int LibMC::MCAgency::CondReset
(
int
id
)
[inline]
Reset a condition signal.
Resets a signal in the agency. The parameter "id" is the ID of the agency sync variable created with SyncInit(). This function must be called after a condition is received in order to clear it.
- Parameters:
-
id The ID number of the condition to reset.
- Returns:
- The return value of the underlying MC_CondReset function.
Definition at line 734 of file MCAgency.cs.
References _MC_CondReset(), and Agency.
int LibMC::MCAgency::CondWait
(
int
id
)
[inline]
Wait for a condition signal.
Waits for a condition signal in the agency. The parameter "id" is the ID of the agency sync variable created with SyncInit(). This function blocks until the signal is received.
- Parameters:
-
id The ID number of the condition to wait for.
- Returns:
- The return value of the underlying MC_CondWait function.
Definition at line 749 of file MCAgency.cs.
References _MC_CondWait(), and Agency.
int LibMC::MCAgency::MutexLock
(
int
id
)
[inline]
Lock a mutex.
Locks a mutex in the agency. The parameter "id" is the ID of the agency sync variable created with SyncInit(). This function blocks until the mutex is locked.
- Parameters:
-
id The ID number of the mutex to lock.
- Returns:
- The return value of the underlying MC_MutexLock function.
Definition at line 764 of file MCAgency.cs.
References _MC_MutexLock(), and Agency.
int LibMC::MCAgency::MutexUnlock
(
int
id
)
[inline]
Unlock a mutex.
Locks a mutex in the agency. The parameter "id" is the ID of the agency sync variable created with SyncInit().
- Parameters:
-
id The ID number of the mutex to unlock.
- Returns:
- The return value of the underlying MC_MutexUnlock function.
Definition at line 778 of file MCAgency.cs.
References _MC_MutexUnlock(), and Agency.
int LibMC::MCAgency::SemaphorePost
(
int
id
)
[inline]
Posts a semaphore.
Posts a sempaphore in the agency. The parameter "id" is the ID of the agency sync variable created with SyncInit().
- Parameters:
-
id The ID number of the semaphore to post.
- Returns:
- The return value of the underlying MC_SemaphorePost function.
Definition at line 792 of file MCAgency.cs.
References _MC_SemaphorePost(), and Agency.
int LibMC::MCAgency::SemaphoreWait
(
int
id
)
[inline]
Wait for a semaphore to be posted.
Wait for a semaphore in the agency to be posted. The parameter "id" is the ID of the agency sync variable created with SyncInit(). This function blocks until the semaphore is posted.
- Parameters:
-
id The ID number of the semaphore to wait for.
- Returns:
- The return value of the underlying MC_SemaphoreWait function.
Definition at line 807 of file MCAgency.cs.
References _MC_SemaphoreWait(), and Agency.
int LibMC::MCAgency::ResetSignal
(
)
[inline]
Reset an agency signal.
Resets a signal in the agency. The parameter "id" is the ID of the agency sync variable created with SyncInit().
- Returns:
- The return value of the underlying MC_ResetSignal function.
Definition at line 820 of file MCAgency.cs.
References _MC_ResetSignal(), and Agency.
int LibMC::MCAgency::SyncDelete
(
int
id
)
[inline]
Delete a synchronization variable.
Deletes a synchronization variable in the agency. The parameter "id" is the ID of the agency sync variable created with SyncInit().
- Parameters:
-
id The ID number of the variable to delete.
- Returns:
- The return value of the underlying MC_SyncDelete function.
Definition at line 834 of file MCAgency.cs.
References _MC_SyncDelete(), and Agency.
int LibMC::MCAgency::SyncInit
(
int
id
)
[inline]
Create a new synchronization variable.
Creates a new synchronization variable in the agency. The parameter "id" is desired ID of the variable. A random ID is returned if "id" is already in use.
- Parameters:
-
id The ID number of the condition to signal.
- Returns:
- The return value of the underlying MC_CondBroadcast function- either a random ID or the desired ID if the desired ID is already in use.
Definition at line 850 of file MCAgency.cs.
References _MC_SyncInit(), and Agency.
Wait for agency signals.
Waits for signals to occur in the agency.
- Parameters:
-
signals The ID number of the condition to signal.
- Returns:
- The return value of the underlying MC_WaitSignal function.
Definition at line 863 of file MCAgency.cs.
References _MC_WaitSignal(), and Agency.
int LibMC::MCAgency::BarrierDelete
(
int
id
)
[inline]
Delete a barrier object.
Deletes a barrier object from the agency. The parameter "id" is the ID of the agency sync variable created with BarrierInit().
- Parameters:
-
id The ID number of the barrier to delete.
- Returns:
- The return value of the underlying MC_BarrierDelete function.
Definition at line 877 of file MCAgency.cs.
References _MC_BarrierDelete(), and Agency.
int LibMC::MCAgency::BarrierInit
(
int
id,
)
[inline]
Create a new barrier.
Creates a new barrier object in the agency.
- Parameters:
-
id The ID number of the condition to signal.
num_procs the number of process to block (?)
- Returns:
- The return value of the underlying MC_BarrierInit function.
Definition at line 891 of file MCAgency.cs.
References _MC_BarrierInit(), and Agency.
Steering control function.
Really not sure.
- Returns:
- The return value of the underlying MC_SteerControl function.
- Todo:
- Test MC_SteerControl, MC_Steer.
Definition at line 909 of file MCAgency.cs.
References _MC_SteerControl().
int LibMC::MCAgency::Steer
(
IntPtr
funcptr,
IntPtr
arg
)
[inline]
Steering control function.
Really not sure.
- Parameters:
-
funcptr Pointer to the steering function
arg Argument to function
- Returns:
- The return value of the underlying _MC_Steer function.
- Note:
- This function does nothing but throw an exception right now.
- Bug:
- MC_Steer is not yet implemented.
- Todo:
- Implement MC_Steer
Definition at line 927 of file MCAgency.cs.
int LibMC::MCAgency::RegisterService
(
MCAgent
agent,
String
agentName,
String[]
serviceNames,
)
[inline]
Registers services in the agency.
Registers services provided by agents with the agency. Not really useful in binary space.
- Parameters:
-
agent The agent providing the services.
agentID The agent ID number.
agentName The agent name.
serviceNames An array of service names.
numServices The number of services provided.
- Returns:
- The return value of the underlying MC_RegisterService function.
- Todo:
- Test MC_RegisterService and MC_SearchForService.
Definition at line 952 of file MCAgency.cs.
References _MC_RegisterService(), Agency, and LibMC::MCAgent::Agent.
int LibMC::MCAgency::SearchForService
(
String
searchString,
IntPtr
agentNames,
IntPtr
serviceNames,
IntPtr
agentIDs,
IntPtr
numResults
)
[inline]
Searches for services in the agency.
Searches for services provided by agents with the agency. Not really useful in binary space.
- Parameters:
-
searchString The agent providing the services.
agentNames The agent ID number.
serviceNames The agent name.
agentIDs An array of service names.
numResults The number of services provided.
- Returns:
- The return value of the underlying MC_SearchForService function.
- Note:
- This function does nothing but throw an exception right now.
- Bug:
- MC_SearchForService is not yet implemented.
- Todo:
- Implement SearchForService
Definition at line 975 of file MCAgency.cs.
int LibMC::MCAgency::AddAgent
(
MCAgent
agent
)
[inline]
MCAgent LibMC::MCAgency::FindAgentByName
(
String
name
)
[inline]
Finds an agent by its name.
Finds an agent in the agency by its name.
- Parameters:
-
name The name of the agent to search for.
- Returns:
- The return value of the underlying MC_FindAgentByName function.
Definition at line 1006 of file MCAgency.cs.
References _MC_FindAgentByName(), and Agency.
MCAgent LibMC::MCAgency::FindAgentByID
(
int
id
)
[inline]
Find an agent by its ID.
Finds an agent in the agency by its ID number.
- Parameters:
-
id The ID number of the condition to signal.
- Returns:
- The return value of the underlying MC_FindAgentByID function.
Definition at line 1019 of file MCAgency.cs.
References _MC_FindAgentByID(), and Agency.
MCAgent LibMC::MCAgency::RetrieveAgent
(
)
[inline]
Retrieve an agent from the agency.
Really not sure.
- Returns:
- The return value of the underlying MC_CondBroadcast function.
Definition at line 1031 of file MCAgency.cs.
References _MC_RetrieveAgent(), and Agency.
Send an ACL message to the agency.
Sends an ACL message to the agency. The message is delivered appropriately.
- Parameters:
-
acl_message The message to send.
- Returns:
- The return value of the underlying MC_CondBroadcast function.
Definition at line 1048 of file MCAgency.cs.
References LibMC::MCAclMessage::AclMsg, and Agency.
int LibMC::MCAgency::MainLoop
(
)
[inline]
Makes the agency wait indefinitely.
Makes the agency wait indefinitely until it receives a "quit" command or is otherwise terminated.
- Returns:
- The return value of the underlying MC_MainLoop function.
Definition at line 1061 of file MCAgency.cs.
References _MC_MainLoop(), and Agency.
static IntPtr LibMC::MCAgency::_MC_Initialize
(
int
port,
)
[private]
static
int LibMC::MCAgency::_MC_End
(
IntPtr
agency
)
[private]
static
int LibMC::MCAgency::_MC_ChInitializeOptions
(
IntPtr
agency,
)
[private]
static
int LibMC::MCAgency::_MC_HaltAgency
(
IntPtr
agency
)
[private]
static
int LibMC::MCAgency::_MC_ResumeAgency
(
IntPtr
agency
)
[private]
static
int LibMC::MCAgency::_MC_SetDefaultAgentStatus
(
IntPtr
agency,
)
[private]
static IntPtr LibMC::MCAgency::_MC_WaitRetrieveAgent
(
IntPtr
agency
)
[private]
static
int LibMC::MCAgency::_MC_WaitAgent
(
IntPtr
agency
)
[private]
static
int LibMC::MCAgency::_MC_MainLoop
(
IntPtr
agency
)
[private]
static
int LibMC::MCAgency::_MC_SendAgentMigrationMessageFile
(
IntPtr
agency,
String
filename,
String
hostname,
)
[private]
static
int LibMC::MCAgency::_MC_SendAgentMigrationMessage
(
IntPtr
agency,
String
message,
String
hostname,
)
[private]
static
int LibMC::MCAgency::_MC_CondBroadcast
(
IntPtr
agency,
)
[private]
static
int LibMC::MCAgency::_MC_CondSignal
(
IntPtr
agency,
)
[private]
static
int LibMC::MCAgency::_MC_CondReset
(
IntPtr
agency,
)
[private]
static
int LibMC::MCAgency::_MC_CondWait
(
IntPtr
agency,
)
[private]
static
int LibMC::MCAgency::_MC_MutexLock
(
IntPtr
agency,
)
[private]
static
int LibMC::MCAgency::_MC_MutexUnlock
(
IntPtr
agency,
)
[private]
static
int LibMC::MCAgency::_MC_SemaphorePost
(
IntPtr
agency,
)
[private]
static
int LibMC::MCAgency::_MC_SemaphoreWait
(
IntPtr
agency,
)
[private]
static
int LibMC::MCAgency::_MC_ResetSignal
(
IntPtr
agency
)
[private]
static
int LibMC::MCAgency::_MC_SyncDelete
(
IntPtr
agency,
)
[private]
static
int LibMC::MCAgency::_MC_SyncInit
(
IntPtr
agency,
)
[private]
static
int LibMC::MCAgency::_MC_WaitSignal
(
IntPtr
agency,
)
[private]
static
int LibMC::MCAgency::_MC_BarrierDelete
(
IntPtr
agency,
)
[private]
static
int LibMC::MCAgency::_MC_BarrierInit
(
IntPtr
agency,
)
[private]
static
int LibMC::MCAgency::_MC_Steer
(
IntPtr
agency,
IntPtr
funcptr,
IntPtr
arg
)
[private]
static
int LibMC::MCAgency::_MC_RegisterService
(
IntPtr
agency,
IntPtr
agent,
String
agentName,
String[]
serviceNames,
)
[private]
static
int LibMC::MCAgency::_MC_SearchForService
(
IntPtr
agency,
String
searchString,
IntPtr
agentNames,
IntPtr
serviceNames,
IntPtr
agentIDs,
IntPtr
numResults
)
[private]
static
int LibMC::MCAgency::_MC_AddAgent
(
IntPtr
agency,
IntPtr
agent
)
[private]
static internal
int LibMC::MCAgency::_MC_DeleteAgent
(
IntPtr
agent
)
[private]
static IntPtr LibMC::MCAgency::_MC_FindAgentByName
(
IntPtr
agency,
String
name
)
[private]
static IntPtr LibMC::MCAgency::_MC_FindAgentByID
(
IntPtr
agency,
)
[private]
static IntPtr LibMC::MCAgency::_MC_RetrieveAgent
(
IntPtr
agency
)
[private]
static internal
int LibMC::MCAgency::_MC_GetAgentID
(
IntPtr
agent
)
[private]
static internal String LibMC::MCAgency::_MC_GetAgentName
(
IntPtr
agent
)
[private]
static internal
int LibMC::MCAgency::_MC_GetAgentNumTasks
(
IntPtr
agent
)
[private]
static internal String LibMC::MCAgency::_MC_GetAgentXMLString
(
IntPtr
agent
)
[private]
static internal
int LibMC::MCAgency::_MC_PrintAgentCode
(
IntPtr
agent
)
[private]
static internal String LibMC::MCAgency::_MC_RetrieveAgentCode
(
IntPtr
agent
)
[private]
static internal
int LibMC::MCAgency::_MC_SetAgentStatus
(
IntPtr
agent,
)
[private]
static internal
int LibMC::MCAgency::_MC_TerminateAgent
(
IntPtr
agent
)
[private]
static internal
int LibMC::MCAgency::_MC_CallAgentFunc
(
IntPtr
agent,
String
funcName,
IntPtr
returnVal,
IntPtr
varg
)
[private]
static internal IntPtr LibMC::MCAgency::_MC_GetAgentExecEngine
(
IntPtr
agent
)
[private]
static internal
int LibMC::MCAgency::_MC_GetAgentReturnData
(
IntPtr
agent,
IntPtr
data,
IntPtr
dim,
IntPtr
extent
)
[private]
static internal IntPtr LibMC::MCAgency::_MC_AclNew
(
)
[private]
static internal
int LibMC::MCAgency::_MC_AclPost
(
IntPtr
agent,
IntPtr
message
)
[private]
static internal IntPtr LibMC::MCAgency::_MC_AclReply
(
IntPtr
acl_message
)
[private]
static internal IntPtr LibMC::MCAgency::_MC_AclRetrieve
(
IntPtr
agent
)
[private]
static internal
int LibMC::MCAgency::_MC_AclSend
(
IntPtr
agency,
IntPtr
acl_message
)
[private]
static internal IntPtr LibMC::MCAgency::_MC_AclWaitRetrieve
(
IntPtr
agent
)
[private]
static internal
int LibMC::MCAgency::_MC_AclSetPerformative
(
IntPtr
acl,
)
[private]
static internal
int LibMC::MCAgency::_MC_AclSetSender
(
IntPtr
acl,
String
name,
String
address
)
[private]
static internal
int LibMC::MCAgency::_MC_AclAddReceiver
(
IntPtr
acl,
String
name,
String
address
)
[private]
static internal
int LibMC::MCAgency::_MC_AclAddReplyTo
(
IntPtr
acl,
String
name,
String
address
)
[private]
static internal
int LibMC::MCAgency::_MC_AclSetContent
(
IntPtr
acl,
String
content
)
[private]
static internal
int LibMC::MCAgency::_MC_AclDestroy
(
IntPtr
acl
)
[private]
Field Documentation
Property Documentation
IntPtr LibMC::MCAgency::Agency [get, set, private]
Definition at line 389 of file MCAgency.cs.
Referenced by AclSend(), AddAgent(), BarrierDelete(), BarrierInit(), ChInitializeOptions(), CondBroadcast(), CondReset(), CondSignal(), CondWait(), End(), FindAgentByID(), FindAgentByName(), HaltAgency(), Initialize(), LoadAgentMigrationMessageFile(), MainLoop(), MutexLock(), MutexUnlock(), RegisterService(), ResetSignal(), ResumeAgency(), RetrieveAgent(), SemaphorePost(), SemaphoreWait(), SendAgentMigrationMessage(), SendAgentMigrationMessageFile(), SetDefaultAgentStatus(), SyncDelete(), SyncInit(), WaitAgent(), WaitRetrieveAgent(), and WaitSignal().
int LibMC::MCAgency::Port
[get, set]
Accessor for the port number of the agency.
Allows the user to set the agency port or get the port number while it is running.
- Note:
- The port must be set before the agency is started. Once the agency is started, the port cannot be changed.
Definition at line 418 of file MCAgency.cs.
Referenced by LoadAgentMigrationMessageFile().
Accessor for the agency state.
Allows the user to query the state of the agency.
- Note:
- The state cannot be set by the user. It is controlled internally.
Definition at line 438 of file MCAgency.cs.
The documentation for this class was generated from the following files:
- /home/dko/projects/mobilec/trunk/src/win32/LibMC.net/LibMC/MCAgency.cs
- /home/dko/projects/mobilec/trunk/src/win32/LibMC.net/LibMC/MCExports.cs