About 253,000 results
Open links in new tab
  1. network programming - Sending int through socket in Java - Stack Overflow

    Sep 17, 2009 · What is the best possible way to send an int through a socket in Java? Right now I'm looking at sockout.write((byte)( length >> 24 )); sockout.write((byte)( (length << 8) >> 24 ...

  2. Efficiently send large int [] over sockets in Java

    Sep 7, 2012 · What is the fastest way to send an int[] over a socket from one Java app to another? Here is the code for everything I've tried so far, with benchmarks on the LG Optimus …

  3. Socket Programming in Java - GeeksforGeeks

    Jan 3, 2025 · Socket programming in Java allows different programs to communicate with each other over a network, whether they are running on the same machine or different ones. This …

  4. How do I send and receive an integer array from client to server …

    Jun 8, 2011 · To answer the question in your title, I would wrap the SocketOutputStream in a BufferedOutputStream in a DataOutputStream and use the latter's writeInt () method …

  5. Reading from and Writing to a Socket - Oracle

    The EchoClient example creates a socket, thereby getting a connection to the echo server. It reads input from the user on the standard input stream, and then forwards that text to the echo …

  6. A Guide to Java Sockets - Baeldung

    Nov 29, 2023 · This tutorial presents an introduction to sockets programming over TCP/IP networks, and demonstrates how to write client/server applications in Java. UDP isn’t a …

  7. We present a tutorial on socket programming in Java. This tutorial illustrates several examples on the two types of socket APIs: connectionless datagram sockets and connection-oriented …

  8. Send and Receive Serialized Object in Socket Channel

    Mar 22, 2025 · In this tutorial, we’ll explore how to send and receive serialized objects using Java’s SocketChannel from the java.nio package. This approach enables efficient, non …

  9. Socket Programming in Java Effortlessly | Newtum

    Apr 10, 2025 · Explore Java socket programming examples with simple client-server applications. Learn Java networking concepts through easy-to-understand code.

  10. A Comprehensive Guide to Socket Programming in Java

    Socket programming in Java is a powerful way to create networked applications. By understanding the basics of TCP and UDP sockets, you can develop applications that …

  11. Some results have been removed
Refresh