By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,227 Members | 1,376 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,227 IT Pros & Developers. It's quick & easy.

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

P: n/a
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.
Nov 14 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
ra*********@pfshouston.com (UnixUser) wrote:
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
--
Irrwahn Grausewitz (ir*******@freenet.de)
welcome to clc : http://www.angelfire.com/ms3/bchambl...me_to_clc.html
clc faq-list : http://www.eskimo.com/~scs/C-faq/top.html
acllc-c++ faq : http://www.contrib.andrew.cmu.edu/~a...acllc-c++.html
Nov 14 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.