Agent parameters...
-
-
Idea sounds good.
What arguments should these parameters take? For file it probably should be file name and offset within file, plus string length for File.Content.String?
And what for shared mem?Best regards,
Victor -
- if single memory
- MemShared.Int(key, offset)
- MemShared.Unint(key, offset)
- MemShared.Char(key, offset)
- MemShared.Float(key, offset)
- MemShared.String(key, offset)
- if struct memory
- MemShared.Struct.Int(key, index, offset)
- MemShared.Struct.Unint(key, index, offset)
- MemShared.Struct.Char(key, index, offset)
- MemShared.Struct.Float(key, index, offset)
- MemShared.Struct.String(key, index, offset)
I don't know details...
Thanks.
Regards. -
- single memory
Real code below:
============================================
shmid = shmget((key_t)( 9790 + 2 ), 24, 0666|IPC_CREAT);
============================================*9790: shmkey
*2: offset (optional)
*24: size of data type (could be pre-define)
At least needed value is shmkey.
Offset value could be merged into shmkey. (ex.9792)
I tested, it's ok. But, struct memory...
Thanks.
Regards.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better π
Register Login