simple client and server [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 7 years ago.
Improve this question
can sum guide me to a link or a program for simple client and server c or c++ code to run on linux
The requirement is that should be able to send and receive messages.....

Beej's Guide to Network Programming - Using Internet Sockets is an excellent tutorial to understand sockets and connections. Plus it contains basic server-client sample applications.

Checkout the Paul Griffiths' Echo server. It's a simple echo server and client written in C. It's written using some unix headers though, and will not work on Windows.

/* insert why didnt you google this comment */
here's one

Related

C: Hook into tshark to get access to analyzed layers of packets [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 want to get access to analyzed packet layer information (that tshark does very well) in a C program.
Is there a library interface for tshark that can be used to gather analysis information from packets of a pcap file?
PS: Higher layer languages is not an option for me. I have it working with pyshark (Python) but is too slow for my need(pyshark invokes tshark command line and processes the response json). I need a way to directly get tshark output to my C program.
You probably will want libpcap for this, if I understand the question correctly.

Connect, read, write to a device using TCP/IP in C [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
Good day, I just want to ask some help about connecting to a device using TCP/IP and how to properly read() and write() command to it.
Any sample codes or references would be a very big help. I don't have any idea in this particular matter but I have some knowledge in C programming and serial ports.
By the way, I'm currently using ubuntu. Thanks
I do not know what you mean by device (any device located in /dev?), but here is a tutorial on c sockets using write and read:
https://vcansimplify.wordpress.com/2013/03/14/c-socket-tutorial-echo-server/
If you would like to gain access to a device in /dev then you just need to open it like a file and also treat it like a file (read / write from it like you would from a file).

Best option to fuzz a C Network Program [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
I have a client/server simple program in C. I want to test the server running on different machine with random inputs. I have looked at 'Bunny-the-fuzzer' but from what I can understand It wont be much help when the target program/application is on remote machine.
Can someone recommend me any other available tools for testing such network programs ?
Thanks
If it is still relevant there are numerous products that can fuzz network products, from open source tools like SPIKE and Peach to commercial fuzzers like beSTORM

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.

beanstalkd c client 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 4 years ago.
Improve this question
We are going to implement a fairly complex new service in an asynchronous way, introducing asynchronous processing as well. For this, we have selected beanstalkd message queue service, as it fits best for our needs.
The problem is that beanstalk seems to miss client API in C, at least I have failed to find it.
I do not want to invent the wheel: is there a client API available for beanstalkd?
libbeanstalkd also has some commits lately..
Wondering why you want client also in C. Are you going to program client in such a low level language? btw gearmand has a c client library. Maybe you could consider that instead

Resources