Operating System - HP-UX
1753501 Members
4665 Online
108794 Solutions
New Discussion юеВ

storing receiving packets

 
SOLVED
Go to solution
Shivakumar_3
Advisor

storing receiving packets

hello everybody,
I will be receiving packets from client program.The packets i receive will be from different departments like containing different data.I want to store the packet in memory so that i can access that memory through another process.My question is which ipc concept can i use to store these packets(like message queues or shared memory) .Like i will be receving packets every minute from different departments and depending on the department name i should store the packets.The packet size is fixed that is 512kb. Advanced thanks for reply.
3 REPLIES 3
Muthukumar_5
Honored Contributor
Solution

Re: storing receiving packets

Use shared memory to accomplish this.

Use this: http://h20293.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=ShmemExt

hth.
Easy to suggest when don't know about the problem!
VEL_1
Valued Contributor

Re: storing receiving packets

Hi,

You can use either message queue or semaphore. it depends. Just look at the following link:

http://www.developerweb.net/forum/archive/index.php/t-3435.html

Note:
To know the KEY of semaphores or message queues, just use the "ipcs" command.

Thanks.
rick jones
Honored Contributor

Re: storing receiving packets

It is a nit, but sometimes nits can be important - applications are said to pass around _messages_ not packets. So, you have a fixed message size of 512kb, which will be some number of TCP segments, which will then be some number of IP datagrams, which may then be some number of Ethernet frames.
there is no rest for the wicked yet the virtuous have no pillows