Develop a network layer protocol in C [closed] - c

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question
I wish to develop a custom network layer protocol. I suppose it can be done using C. Can any one suggest how to begin with. Any references or sample code would be of great help.

If you're wanting to develop a custom protocol sample code isn't really going to help! You must first design your protocol.
What is the purpose of this network?
File Sharing, Commands, Other?
What can connect to this network?
Computer, Printer, Other?
How will devices communicate?
Messages, Codes, Other?
What will a message or command
consist of?
These are all valid questions you must ask yourself when you design. After your design is done, then you can start writing the actual implementation. A task like this will require a lot of design though. Forewarned..

Stevens' TCP/IP Illustrated volume 2 has most of the source for the higher layers in the stack.

Take a look at the x-kernel project. "The x-kernel is an object-based framework for implementing network protocols."
I stumbled over this one several years ago. I'd talked to Don Batory at UT Austin about his research on Product Line Architectures. At one point, I asked him if anyone was looking at doing something similar for network protocols, and he pointed me at the x-kernel work.

Related

How to detect pro-sex behavior on an open chat platform? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 months ago.
Improve this question
Many chat channels (e.g. Omegle, mIRC) produce the the following conversations when engaging a person one doesn't know.
M
asl?
F 25
wonna sexchat?
This behavior is extremely prevalent. Detection of nudity in videos or images is an open research problem. What I am listing here should be simpler to accomplish. Any off-the-shelf solutions? Any language and any open and free library is fine(including papers on how to do it)!
There is a library on Python that name is profanity. Link: profanity-check
With machine learning algorithm I'm super sure that we can handle it easily. For that you should collect whole words as that. After collecting, you can add a label line, like 0 if acceptable, 1 if not. Then, with some successful machine learning algorithms, you can associate the data with the euclidian, manhattan type distance criteria and create a decision mechanism about whether the content is bad or not. It is difficult to predict how much the success rate will be, but I think that with such an approach, a success rate close to 90% can be achieved. I would like to share with you an academician whose work I trust on this subject. Yılmaz Kaya

FUSE - detailed documentation [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
trying to get my own filesystem working using fuse (filesystem in user space, linux) im really curious on where to get detailed up to date documentation of the operations used?
most time i search for other file system implementations and see what they do, but some operations seem to be not widely used like poll/ioctl or bmap.
and the documentation of the fuse api doesnt help much, cause e.g. the parameters and return values of the operations are not documented thus i have to guess how to use em
so the question is where do i get better information about how such exotic operations are supposed to be implemented?
thx
Yes, you are right, many places you can read that comment saying there is little documentation on FUSE. Perhaps that's because there is so little to document. Or perhaps the implementation is only meant for those who understand the tradeoff of userspace filesystem well enough. So perhaps you can refer to the following documentation, tutorials, slides or even sample codes for more information:
FUSE Design Document (original documentation from Sun?):
http://www.youblisher.com/p/31627-fuse/
http://wr.informatik.uni-hamburg.de/_media/research/labs/2008/2008-03-michael_kuhn-container_library_and_fuse_container_file_system-report.pdf
http://www.oug.org/files/presentations/losug-fuse.pdf
http://sar.informatik.hu-berlin.de/teaching/2013-w/2013w_osp2/lab/Lab-4-FUSE/lab-FUSE_.pdf
http://www.cs.hmc.edu/~geoff/classes/hmc.cs135.201001/homework/fuse/fuse_doc.html (tutorials)
http://www.cs.cmu.edu/~./fp/courses/15213-s07/lectures/15-filesys/index.html
http://www.cs.nmsu.edu/~pfeiffer/fuse-tutorial/
Sample code:
http://fuse.sourceforge.net/helloworld.html
And perhaps this is more research-oriented:
http://www.msrsas.org/docs/sastech_journals/archives/May2011/2.pdf
https://code.google.com/p/s3fs/wiki/FuseOverAmazon
But generally there is a lot of problems/issues (which may be solved through some complex algorithm) with implementing filesystem in userspace, which is why Linus has commented it as "toy":
https://ceph.com/dev-notes/linus-vs-fuse/
15Apr2015 update:
I just found this (and many other slides - just look at the right hand side of this webpage):
http://www.slideshare.net/adorepump/fuse-developing-fillesystems-in-userspace

Good lightweight C or C++ master-slave networking library [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
I have a C/C++ server process that needs to broadcast data to some number of client programs on other computers. Client programs are also C/C++. I need a reliable and lightweight communication library that will allow my server to communicate with any number of clients. Clients must be able to detect when a socket connection is no longer open, hopefully without having to constantly poll the server. I do not want to use something huge like Boost. I want something lightweight and simple. Any ideas?
See the answer to this question. It looks like Qt may include what you need, and it's known as relatively simple to use. SDL.net is another alternative that might meet those requirements.

Decoding scuba dive computer log files [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
Does anyone know of any libraries that decode one or more of the multitude of different scuba dive computer log file formats?
DAN DL7
IRIS / DRAK
Suunto
Oceanlog
Citizen
ProDive
NiTek Logic
DCDS
Ideally I'm looking for code that'll run in .NET, but I'm willing to transcode from other languages if that's the only option.
Links to articles describing formats is appreciated as well. Sample log files would be handy.
I'm considering creating an open source project for this if no such library already exists. If you'd like to contribute, please mention so as a comment or in your answer.
I have no experience with this but Google turned up the library libdivecomputer.
It supports a number of devices and platforms, and the library is LGPL licensed. However, not all brands you mention appear to be supported.
You can always try contacting the manufacturers to get the data. You might have better luck contacting the engineers specifically, if you can find them.
I don't know much about the industry, but I would suspect you can make a case for opening up their formats, because they are primarily hardware manufacturers.

Are there any mature Binary Decision Diagram tools available? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
Are there any Binary Decision Diagram (BDD) libraries for C, or other languages that are tested and have good documentation?
Check the BDD library from CMU.
Also, for basic reference purposes, Pre-Fascicle 1b of The Art of Computer Programming is all about BDDs. Here's a gzipped postscript of it. Knuth has posted a number of the programs he wrote while preparing for it on his Programs to Read page.
Check out CUDD.
For some info on how to set it up in Windows environments try this..
Binary decision diagram Wikipedia entry, in External links section, as a quite complete list of packages.
BDDBDDB is a BDD-based system for resolving logical inferences a la Prolog. It's been used in program analysis, general game playing, and many other domains. It might not be exactly what you're looking for, but it's well-known and well-maintained.

Resources