a server simillar to discard

All off topic discussions go here. Everything from the funny thing your cat did to your favorite tv shows. Non-programming computer questions are ok too.
Post Reply
User avatar
Adek336
Member
Member
Posts: 129
Joined: Thu May 12, 2005 11:00 pm
Location: Kabaty, Warszawa
Contact:

a server simillar to discard

Post by Adek336 »

hi is there some sort of server that is installed in linux by default and writes to standard output what it receives over the net?
or is there some simple one-line implementation in some popular language?
User avatar
chase
Site Admin
Posts: 710
Joined: Wed Oct 20, 2004 10:46 pm
Libera.chat IRC: chase_osdev
Location: Texas
Discord: chase/matt.heimer
Contact:

Re: a server simillar to discard

Post by chase »

What do you mean by "receives over the net?" Pick an OSI layer. Maybe you want http://www.wireshark.org/
User avatar
Brynet-Inc
Member
Member
Posts: 2426
Joined: Tue Oct 17, 2006 9:29 pm
Libera.chat IRC: brynet
Location: Canada
Contact:

Re: a server simillar to discard

Post by Brynet-Inc »

Well, the discard service.. almost always unused these days, sends all received data to "/dev/null".

Are you incapable of writing a program that can do something similar?

http://www.beej.us/guide/bgnet/
Image
Twitter: @canadianbryan. Award by smcerm, I stole it. Original was larger.
User avatar
Adek336
Member
Member
Posts: 129
Joined: Thu May 12, 2005 11:00 pm
Location: Kabaty, Warszawa
Contact:

Re: a server simillar to discard

Post by Adek336 »

A server that accepts data over TCP/IP and writes it on screen and the discard service doesn't do that. There are a lot of strange programs installed by default on linuces so it'd be interesting to know it, if there is none I'll have to write one but now another question arises- perhaps there is some clever implementation in some particularly fitted language, or maybe a way to do that as a bash command with use of pipes or something like that.
User avatar
chase
Site Admin
Posts: 710
Joined: Wed Oct 20, 2004 10:46 pm
Libera.chat IRC: chase_osdev
Location: Texas
Discord: chase/matt.heimer
Contact:

Re: a server simillar to discard

Post by chase »

tcpdump
User avatar
Adek336
Member
Member
Posts: 129
Joined: Thu May 12, 2005 11:00 pm
Location: Kabaty, Warszawa
Contact:

Re: a server simillar to discard

Post by Adek336 »

tcpdump neither, I mean a server to which the client has to connect through TCP, it seems there's no such thing installed by default so I'll make my own 8)
blound
Member
Member
Posts: 70
Joined: Sat Dec 01, 2007 1:36 pm

Re: a server simillar to discard

Post by blound »

netcat, but seriously its a 10 line program
Post Reply