I am using TCP sockets to communicate data between a server and client program using a specific port number on the same computer (localhost).
I need a software that can capture the ... |
I want to create java server socket and j2me client socket which can communicate with each other.
Does anyone know?
|
I am trying to make a simple game that goes across a TCP network.
The server does something like this to check for connections, in Server.java:
try
{
server = new ...
|
I'm writting a java application, and I need to quickly discover any other running clients on any wired or wireless local networks in order to establish a TCP connection.
what's the best ... |
I have the following host
package clserver;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.net.ServerSocket;
import java.net.Socket;
import java.util.Scanner;
public class Main {
//instance vars
static ServerSocket sSocket = null;
static int serverPort = 0;
static Socket cSocket = null;
static PrintWriter out ...
|
I am trying to develop a TCP client that runs on mobile devices using MIDP 2.0 and CLDC 1.1. I am trying some sample code, and I have the following problem:
I ... |
I'm making a TCP Client in Applet mode and I get this strange error...
C:\Users\Dan\Documents\DanJavaGen\ClientApplet.java:20: cannot find symbol
symbol : method printStrackTrace()
location: class java.lang.Exception
e.printStrackTrace();
^
1 error
Tool completed with exit code 1
teh code:
import ...
|
|
I have a client that sends a class object to the server. The server should invoke the methods of that class and return the result.
I am getting the following exception ... |
Hii all, I have already created some programs related to client and server. Today it was my sessional[practical exam] of Client-server technology.
Problem was: i was to add two no's at ... |
I'm making a server/client test and want to know if the client is disconnected in java via TCP.
I'd rather not do a heartbeat but if I have to, I will.
|
I have a Java TCP server which, when a client connects to it, outputs a message to the client every 30 seconds. It is a strict requirement that the client does ... |
I want to write a small project for myself - FTP client.
I know to work with GUI, Socket & ServerSocket for TCP communication.
I ask you to tell me what I need ... |
How can I send an arraylist through tcp in Java?
I need to send an arraylist of integers, from client to server and vice verse.
Thanxx
|
I am writing a java program that needs to continuously accept serialized objects throughout the run of the application. The objects are sent by a server as requested by the ... |
In the code below, what determines what will be sent back to the client (the PHP page). I am trying to alter this so that it sends a variable back to ... |
Hi All, Now I am creating single application using TCP and UDP Sockets. I have doubt on this, Actually, I am sending a file using UDP Multicasting. If three clients are receiving that file. I need to find receive missing packets by using TCP from all clients. I can do this. But how can I break this loop while(true) { theclient ... |
|
Socket clientSocket = new Socket(hostname,port); do { System.out.println("Enter the number of integers...."); BufferedReader fromUser = new BufferedReader(new InputStreamReader(System.in)); sentence = fromUser.readLine(); DataOutputStream outToServer = new DataOutputStream(clientSocket.getOutputStream()); //System.in.read(); outToServer.writeBytes(sentence + '\n'); System.out.println("server sends message"); BufferedReader fromServer = new BufferedReader(new InputStreamReader(clientSocket.getInputStream())); System.out.println(fromServer); result = fromServer.readLine(); System.out.println("from Server" + result); System.out.println("Do u want to continue y/n"); }while(! ans.equals("n")); clientSocket.close(); } } ---------------------------------------------------------------------*-------------------------------------------------------------*--------------------------------------- import java.io.*; ... |
|
Hi, I am trying to simulate a TCP client server communication using UDP Sockets. Since it has been long since I did an program in Java, I am struck with assigning the data type to the sliding window on the client side. Since each cell of the window holds an array of bytes, what would you feel as the best data ... |
You are asking the wrong people. If somebody said that code wasn't "efficient" -- a word which could mean a wide variety of things, including confusion on the part of the person using the word -- and you didn't know what they meant by that, then the obvious course of action would be to ask that person "What do you mean ... |