01-22-2010
Quote:
the problem is to send a meesage from machine1 to machine2 using UDP,
for TCP the command in unix is
SOCK -t -e Machine1:12345
so what are the command and the options for UDP?
Looks like a "home brew" command. It doesn't look like a Unix standard tool, sorry. Check your local documentation.
Brgds,
Loïc.
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
UDP(4P) UDP(4P)
NAME
udp - Internet User Datagram Protocol
SYNOPSIS
#include <sys/socket.h>
#include <netinet/in.h>
s = socket(AF_INET, SOCK_DGRAM, 0);
DESCRIPTION
UDP is a simple, unreliable datagram protocol which is used to support the SOCK_DGRAM abstraction for the Internet protocol family. UDP
sockets are connectionless, and are normally used with the sendto and recvfrom calls, though the connect(2) call may also be used to fix
the destination for future packets (in which case the recv(2) or read(2) and send(2) or write(2) system calls may be used).
UDP address formats are identical to those used by TCP. In particular UDP provides a port identifier in addition to the normal Internet
address format. Note that the UDP port space is separate from the TCP port space (i.e. a UDP port may not be "connected" to a TCP port).
In addition broadcast packets may be sent (assuming the underlying network supports this) by using a reserved "broadcast address"; this
address is network interface dependent.
Options at the IP transport level may be used with UDP; see ip(4P).
DIAGNOSTICS
A socket operation may fail with one of the following errors returned:
[EISCONN] when trying to establish a connection on a socket which already has one, or when trying to send a datagram with the destina-
tion address specified and the socket is already connected;
[ENOTCONN] when trying to send a datagram, but no destination address is specified, and the socket hasn't been connected;
[ENOBUFS] when the system runs out of memory for an internal data structure;
[EADDRINUSE] when an attempt is made to create a socket with a port which has already been allocated;
[EADDRNOTAVAIL]
when an attempt is made to create a socket with a network address for which no network interface exists.
SEE ALSO
getsockopt(2), recv(2), send(2), socket(2), intro(4N), inet(4F), ip(4P)
4.2 Berkeley Distribution May 16, 1986 UDP(4P)