Looking for c code to create and manage a buffer like a com port would be managed

U

UnixUser

I am looking for help in creating a buffer of approximately 4000 to
8000 bytes that i could manage like a com port. Other programs would
need to know the address of the buffer so that they could capture data
from it as well as check to see if the buffer had data, remove data
from the buffer, or just check to see if the buffer had any data.
Other programs need to be able to add data to the buffer and make sure
that they did not overflow the buffer. I need to be able to create
the code necessary to manage these buffers. If you can help I would
certainly appreciate it.
 
I

Irrwahn Grausewitz

I am looking for help in creating a buffer of approximately 4000 to
8000 bytes that i could manage like a com port. Other programs would
need to know the address of the buffer so that they could capture data
from it as well as check to see if the buffer had data, remove data
from the buffer, or just check to see if the buffer had any data.
Other programs need to be able to add data to the buffer and make sure
that they did not overflow the buffer. I need to be able to create
the code necessary to manage these buffers. If you can help I would
certainly appreciate it.

You most certainly have to use your OS's inter-process-communication
facilities, and therefore you should ask in a newsgroup dedicated to
your OS or C implementation, respectively. Standard C has no notion
of IPC mechanisms.

Regards
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,009
Latest member
GidgetGamb

Latest Threads

Top