Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 272 results for
datagram
- Page 1
Datagram Connection for chat room development
Programming
Mobile Development
14 Years Ago
by dinjo
…TextField.UNEDITABLE); byte[] data = transmitText.getString().getBytes();
Datagram
dg = null; dg = dc.newDatagram(data,…UNEDITABLE); byte[] data = transmitText.getString().getBytes();
Datagram
dg = null; dg = dc.newDatagram(data,…
Datagram socket (server)
Programming
Software Development
10 Years Ago
by XodoX
If I want to have a
datagram
socket, what do I have to change here ? It's a stream socket right now. Just change it where it creates the socket ? `sockfd = socket(PF_INET,SOCK_STREAM,0);`
Re: Datagram socket (server)
Programming
Software Development
10 Years Ago
by Hiroshe
In unix, http://stackoverflow.com/questions/3324619/unix-domain-socket-using-
datagram
-communication-between-one-server-process-and Except your using PF.
Re: Datagram socket (server)
Programming
Software Development
10 Years Ago
by Hiroshe
… some light on why it's not that simple. A
datagram
has a header and a payload. The header needs to…
Sockets: Datagram IP address == host IP address
Programming
Software Development
9 Years Ago
by Levellous
Hellooo, Is there a way to compare a
datagram
packet's IP address with the host's IP address? … multisocket to broadcast to every host it'll send the
datagram
to itself as well, which i don't necessary want… around this i'm thinking to only print the receiving
datagram
packet if it's not from the host. I was…
Maximum size of datagram Packet
Programming
Software Development
14 Years Ago
by purijatin
What is the maximum size of one
Datagram
Packet java makes. Iam implementing my own protocol with defined features which runs over UDP. For every packet i have defined a set of headers. Now these headers are to be defined in every packet. So unless i do not know the maximum size of every
datagram
packet, i cannot proceed Please help!!
SNMP,DNS using UPD datagram
Programming
Software Development
15 Years Ago
by palanisaamy
I am trying to write a java program for a SNMP,DNS using UPD
datagram
. I am trying to think of how to start. Anyone has any suggestions? Please advise
Re: Datagram socket (server)
Programming
Software Development
10 Years Ago
by XodoX
ops. double. Sorry.
Re: Datagram socket (server)
Programming
Software Development
10 Years Ago
by XodoX
It's a tcp server. sockfd = socket(PF_INET,SOCK_DGRAM,0); printf("Socket: %d created. \n", sockfd); So once you change that, everything else seems to stay the same..like the binding ? I think that's it, because that's how you define it.
Re: Sockets: Datagram IP address == host IP address
Programming
Software Development
9 Years Ago
by JamesCherrill
It's worth a try BUT... == and != test for Objects being/not being exactly the same object (same address in memory). You want to know if two different InetAddress objects represent the same IP address, for which you have to use their `equals` method
Re: Sockets: Datagram IP address == host IP address
Programming
Software Development
9 Years Ago
by Levellous
ooo that worked. Thanks!
Re: Maximum size of datagram Packet
Programming
Software Development
14 Years Ago
by NormR1
The value returned by getLength() is an int. The max int value is in the billions. Have you tried creating a very large packet to see if there are system limits?
What should I write on the command prompt to make the network programs run?
Programming
Software Development
10 Years Ago
by thewalrus
…]); String message = args[2]; // instantiates a
datagram
socket for sending the data DatagramSocket mySocket = new … This is the assumed maximum byte length of the //
datagram
to be received. try { DatagramSocket mySocket = new DatagramSocket…
Finding a bug hidden causing a java.net.SocketException: Unrecognized Windows Sockets
Programming
Software Development
13 Years Ago
by abhishek_s_n
…true); } // loop waiting for keyboard input, send
datagram
to remote IP @Override public void actionPerformed(ActionEvent e)…DatagramSocket theSocket = new DatagramSocket(); // create
datagram
socket and the
datagram
DatagramPacket theOutput = new DatagramPacket(data, data.…
How to set Timeout for DatagramConnection in J2ME
Programming
Software Development
15 Years Ago
by gitech
…DatagramConnection conn = null; try { String ServerAdd = "
datagram
://"+UDP_ServerIP+":"+UDP_ServerPort; conn = (DatagramConnection)Connector.open…(ServerAdd,Connector.READ_WRITE, false);
Datagram
dg = conn.newDatagram(1000); // String senddata = &…
hardware basic network security
Hardware and Software
Networking
15 Years Ago
by slacke
…data transfer. Note: At this moment the hardware sends
datagram
packets to a public static IP address on the …internet. One message per packet. In this
datagram
packet are the clear text data presented. The server …responds with the same
datagram
packet to acknoledge the data. 2. Question (point 2):…
multiclient broadcast and chat in one socket program
Programming
Software Development
12 Years Ago
by barfi.anana
… is %d", sendStringLen); /* Broadcast sendString in
datagram
to clients every 3 seconds*/ sendto(sock, sendString, sendStringLen… printf("message sent\n"); /* Receive a single
datagram
from the server */ if ((recvStringLen = recvfrom(sock, recvString…
Homepage changed to about:blank can't change back
Hardware and Software
Information Security
15 Years Ago
by mysticwepx
…Device\NetBT_Tcpip_{BC5ED16C-FAB8-4C26-9E6F-2049489843DF}]
DATAGRAM
3 LSP: MSAFD NetBIOS [\Device\NetBT_Tcpip_{F01A8DB9…Device\NetBT_Tcpip_{F01A8DB9-1BDD-4FB5-86CE-1322C8AE1D57}]
DATAGRAM
1 LSP: MSAFD NetBIOS [\Device\NetBT_Tcpip_{B1E753B0…Device\NetBT_Tcpip_{B1E753B0-C563-4EA0-9526-EBF32EFE8518}]
DATAGRAM
2 LSP: RSVP UDP Service Provider LSP…
Router log collector server
Programming
Software Development
15 Years Ago
by slacke
… a configurable address and port. Each
datagram
has one status message. My program collects each
datagram
from several routers and put them…, (struct sockaddr *)&their_addr1, &sin_size1); new_fd2 ...[/B] // Ok, each
datagram
is going into the main log file, so we create…
Convert HEX into Binary Data
Programming
Software Development
13 Years Ago
by debasishgang7
… a valid, open socket object[/CODE] i have created a
DATAGRAM
in HEX in by sniffing a network traffic with wireshark… i want to send over the network.This hand made
datagram
is like "04 f8 00 50 4f 30 fb… 00" So i wanna convert this above mentioned HEX
datagram
into the binary format like "\x01\x00\x12\x59…
uDP client server in java
Programming
Software Development
12 Years Ago
by anisha.silva
…DatagramSocket socket = new DatagramSocket(); //construct a
datagram
socket and binds it to the available port …quot;."); socket.send(dgram); //send the
datagram
packet from this port Thread.sleep(1000); //…) { socket.receive(dgram); // blocks until a
datagram
is received System.err.println("Received " …
Problem with files
Programming
Software Development
16 Years Ago
by rlaknar
… it to byte array.And sent to the receiver through
datagram
socket.On the receiver side the byte array is converted…. I just changed the program such that, instead of using
datagram
, i wrote the encrypted byte array in sender to a…
Re: Problem with files
Programming
Software Development
16 Years Ago
by rlaknar
….ds is an object to a class which is for
datagram
communications. [code] public static void main(String args[])throws Exception… well when I attempted to send the byte array as
datagram
packets.Then, the output of the receiver was Dec 637d57588b05292deefbf0131abb0c54ed22b8e2…
Re: Problem with files
Programming
Software Development
16 Years Ago
by rlaknar
….ds is an object to a class which is for
datagram
communications. [code=java] public static void main(String args[])throws… well when I attempted to send the byte array as
datagram
packets.Then, the output of the receiver was Dec 637d57588b05292deefbf0131abb0c54ed22b8e2…
How can I implement stop and wait timeout resend which is multi thread..?
Programming
Software Development
15 Years Ago
by lkw8888
…new DatagramSocket(8000,InetAddress.getLocalHost()); System.out.println("
Datagram
Server on "+server.getLocalAddress().getHostAddress()+" port …new DatagramSocket(dport,InetAddress.getLocalHost()); System.out.println("
Datagram
Client on "+client.getLocalAddress().getHostAddress()+" port…
About multi Threads. How can i implements the timeout Threads to Chatting program?
Programming
Software Development
15 Years Ago
by lkw8888
… new DatagramSocket(8000,InetAddress.getLocalHost()); System.out.println("
Datagram
Server on "+server.getLocalAddress().getHostAddress()+" port &… new DatagramSocket(dport,InetAddress.getLocalHost()); System.out.println("
Datagram
Client on "+client.getLocalAddress().getHostAddress()+" port &…
findall
Programming
Software Development
15 Years Ago
by mitsuevo
…), Dst: 192.168.110.44 (192.168.110.44) User
Datagram
Protocol, Src Port: bootps (67), Dst Port: bootpc (68) Bootstrap…), Dst: 255.255.255.255 (255.255.255.255) User
Datagram
Protocol, Src Port: bootpc (68), Dst Port: bootps (67) Bootstrap…
bind() returning -1 (for a tftp server)
Programming
Software Development
15 Years Ago
by prushik
… hostent *hp; unsigned char buffer[1024]; //Set up and open
datagram
socket sock=socket(AF_INET, SOCK_DGRAM, 0); //Setup socket properties server…=bind(sock,(struct sockaddr *)&server,length); //Finish setting up
datagram
socket. It should be open. printf("%d\n"…
Basic UDP Chat System
Programming
Software Development
13 Years Ago
by BurgerBob
…run() { // Create a byte buffer/array for the receive
Datagram
packet byte[] receiveData = new byte[1024]; while (true)…Now using Port# = " + serverport); } // Open a new
datagram
socket on the specified port DatagramSocket udpServerSocket = new DatagramSocket(serverport…
Re: Basic UDP Chat System
Programming
Software Development
13 Years Ago
by CSloan7597
…void run() { // Create a byte buffer/array for the receive
Datagram
packet byte[] receiveData = new byte[1024]; while (true) {… "Now using Port# = " + serverport); } // Open a new
datagram
socket on the specified port DatagramSocket udpServerSocket = new DatagramSocket(serverport…
1
2
3
5
Next
Last
Search
Search
Forums
Forum Index
Hardware/Software
Recommended Topics
Programming
Recommended Topics
Digital Media
Recommended Topics
Community Center
Recommended Topics
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Top Members
Meet People
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2025 DaniWeb® LLC