01-20-2010
UDP
What's the command/options for UDP SOCK (Socket)?
10 More Discussions You Might Find Interesting
1. IP Networking
hi all, newbie here, i'm working on mac os x and i'm trying to stream some info using udp from the terminal to another app that listens for osc messages on the same machine. but the man page on udp is pretty cryptic. my question is whether anyone has a recommendation for a good tutorial covering... (0 Replies)
Discussion started by: ohhmyhead
0 Replies
2. IP Networking
hi...
i have made this client server prog with UDP sockets but im not getting the output. the client sends the message but the server just keeps on waiting. Im running the prog an a solaris 10 box...
server:
main()
{
int sd;
struct sockaddr_in server;
char buf;
int rc,len;
... (2 Replies)
Discussion started by: strider
2 Replies
3. UNIX for Dummies Questions & Answers
Hi...Please can someone send me implementation chat application using UDP(socket programming in C). Please send me as soon as possible. Thanks in advance. (2 Replies)
Discussion started by: unsweety
2 Replies
4. UNIX for Advanced & Expert Users
Hi,
I can see "udpInOverflows" errors when I execute 'netstat -s' on my Solaris box.
The number of errors are small - about 40.
e.g.
$ netstat -s|grep udp
UDP udpInDatagrams =1249190732 udpInErrors = 0
udpOutDatagrams =31663030 udpOutErrors = 0... (1 Reply)
Discussion started by: chaandana
1 Replies
5. Cybersecurity
I want to deny a particular malicious UDP packet. I can readily identify this packet from the rest by looking at the data section, where data offset 2 is 0xaa, data is 0xbb, etc. Are there any tools or code samples that can do this?
Basically, instead of seeing the packet in the following... (2 Replies)
Discussion started by: amoeba
2 Replies
6. Windows & DOS: Issues & Discussions
Hi,
I know tcp port tunneling can be done using ssh/putty. how about udp?
I have a scenario where a license server handsout licenses to machines in that network ONLY. I have a windows machine in a different subnet and even though the client software can see license server, while using the... (6 Replies)
Discussion started by: upengan78
6 Replies
7. Infrastructure Monitoring
hi guys
My linux server have SNMP configure port by default is 161 (UDP)
now my monitor team - who are using Nagios - say the server are not being monitor
so check netstat -lnu and I see all is OK and snmp service is running fine
what else should I check about this port 161? to see if it is... (0 Replies)
Discussion started by: karlochacon
0 Replies
8. IP Networking
hello to all
i want to use multithreading to my UDP broadcast server client program. will anyone help me by proving C code. i am working in fedora. also my requirement is POSIX compliance.please help me..... (0 Replies)
Discussion started by: moti12
0 Replies
9. Programming
hello to all
i want to use multithreading to my UDP broadcast server client program. will anyone help me by proving C code. i am working in fedora. also my requirement is POSIX compliance.please help me..... (6 Replies)
Discussion started by: moti12
6 Replies
10. IP Networking
I was just wondering, why does Nmap need root when doing an -sU UDP Scan?
Please and Thank You. (3 Replies)
Discussion started by: amreason
3 Replies
LEARN ABOUT DEBIAN
net::bonjour::entry
Net::Bonjour::Entry(3pm) User Contributed Perl Documentation Net::Bonjour::Entry(3pm)
NAME
Net::Bonjour::Entry - Support module for mDNS service discovery (Apple's Bonjour)
SYNOPSIS
use Net::Bonjour;
my $res = Net::Bonjour->new(<service>[, <protocol>]); $res->discover;
foreach my $entry ( $res->entries ) { print $entry->name, "
"; }
DESCRIPTION
Net::Bonjour::Entry is a module used to manage entries returned by a mDNS service discovery (Apple's Bonjour). See Net::Bonjour for more
information.
METHODS
new([<fqdn>])
Creates a new Net::Bonjour::Entry object. The optional argument defines the fully qualifed domain name (FQDN) of the entry. Normal usage
of the Net::Bonjour module will not require the construction of Net::Bonjour::Entry objects, as they are automatically created during the
discovery process.
address
Returns the IP address of the entry.
all_attrs
Returns all the current attributes in the form of hashed array.
attribute(<attribute>)
Returns the specified attribute from the TXT record of the entry. TXT records are used to specify additional information, e.g. path for
http.
dnsrr([<record type>])
Returns an DNS answer packet of the entry. The output will be in the format of a Net::DNS::Packet object. The record type designates the
resource record to answer with, i.e. PTR, SRV, or TXT. The default is PTR.
fetch
Reloads the information for the entry via mDNS.
fqdn
Returns the fully qualifed domain name (FQDN) of entry. An example FQDN is server._afpovertcp._tcp.local
hostname
Returns the hostname of the server, e.g. 'server.local'.
name
Returns the name of the entry. In the case of the fqdn example, the name would be 'server'. This name may not be the hostname of the
server. For example, names for presence/tcp will be the name of the user and http/tcp will be title of the web resource.
port
Returns the TCP or UDP port of the entry.
sockaddr
Returns the binary socket address for the resource and can be used directly to bind() sockets.
EXAMPLES
Print out a list of local websites
print "<HTML><TITLE>Local Websites</TITLE>";
use Net::Bonjour;
my $res = Net::Bonjour->new('http');
$res->discover;
foreach my $entry ( $res->entries) {
printf "<A HREF='http://%s%s'>%s</A><BR>",
$entry->address, $entry->attribute('path'),
$entry->name;
}
print "</HTML>";
Find a service and connect to it
use Net::Bonjour;
my $res = Net::Bonjour->new('custom');
$res->discover;
my $entry = $res->shift_entry;
socket SOCK, PF_INET, SOCK_STREAM, scalar(getprotobyname('tcp'));
connect SOCK, $entry->sockaddr;
print SOCK "Send a message to the service";
while ($line = <SOCK>) { print $line; }
close SOCK;
SEE ALSO
Net::Bonjour
COPYRIGHT
This library is free software and can be distributed or modified under the same terms as Perl itself.
Bonjour (in this context) is a trademark of Apple Computer, Inc.
AUTHORS
The Net::Bonjour::Entry module was created by George Chlipala <george@walnutcs.com>
perl v5.10.0 2007-03-18 Net::Bonjour::Entry(3pm)