I am trying to write a simple networked chat program in Java. I have almost no networking experience. I was wondering what resources I should begin looking at (beside ... |
we have this scenario:
A server which contains needed data and client component which these data wants.
On the server are stored 2 types of data:
- some information - just a couple ... |
Leading on from my previous questions I am going to try and clarify one of the problems I am facing.
I am trying to create a multiplayer version of PacMan.
A simple ... |
I'm currently translating an API from C# to Java which has a network component.
The C# version seems to keep the input and output streams and the socket open for the duration ... |
I am looking for a package that is similar to Net_IPv4 and Net_IPv6 but written for Java. It needs to be able to do the following:
|
Given a list of servers & a list of clients, how to find a server that is closest to a particular host using "traceroute"? The program should be in java.
|
I'm looking to create XML Document objects in Java and serialize them to a byte array (prior to sending them across a TCP connection). I currently have code that looks ... |
|
InetAddress serverAddr = InetAddress.getByName(serverAddress);
String hostname = serverAddr.getCanonicalHostName();
Socket socket = new Socket(serverAddr, portNumber);
// Freezes before this line if the server is unavailable
socket.setSoTimeout(3000);
Does anyone know how to implement the check of server availability ... |
I'm currently hacking on a new project, a web-app. But something's wrong, and I think it's Vistas fault, when I'm stress-testing the app, not all of the requests are answered.
The only ... |
We have a client and a server. I want to measure the response-time of the network between them. When I send a request to server it should immediate respond to my ... |
I have a server and has 2 clients connecting to it through TCP.
These clients continuously send information to the server.
This is a proxy server and relays the messages it receives from ... |
Is there any way in ColdFusion code to determine on what server the code is executing? I have few load-balanced ColdFusion servers. I want to be able to know on which ... |
suppose am in the middle of updating some information and the network connection goes off.
How should i write my code to handle such situation and resume from where the code was ... |
I have written a simple Java dispatcher with a daemon thread to handle the incoming traffic, and using another thread to send out commands.
The problem comes when the server receives ... |
I am developing a client-server based application for financial alerts, where the client can set a value as the alert for a chosen financial instrument , and when this value will ... |
I have run into a problem with a network server that receives signals from devices my company produces. The device will occasionally reuse the source port that it had just ... |
The situation goes like this, I have two network interfaces in my macbook pro. One is a statically defined Ethernet interface and the other one is a DHCP configured wireless interface.
I ... |
I have a class that is responsible for network communication. I would like to have a unit test for it.
Here is where I'm stuck in order to write a test for ... |
Can you please advice on the best way to check if a server is running using java? I mean I want to check a site for downtime. Is connecting to the ... |
Hopefully this is a quick and easy question about BufferedOutputStreams and DataOutputStreams in java.
When I write bytes to the output stream like
myBufferedOutputStream.write(array);
myDataOutputStream.write(array);
Do these methods write them instantly to the stream ... |
I can do this in C++ and Python, but I haven't quite figured it out on java.
My class has a 'MessageReceived' function that my network loop executes when a message comes ... |
I’m building a client server application that should operate 24/7. The applications is designate to detect network failures (using a heart beating) and reconnect to the server asap.
The first test that ... |
I need to get the MAC ID of a host in my network. For that, if I ping to that IP and query the ARP cache arp -a, I am able ... |
Hi I have a problem how to detect when the network goes offline.
My server and client are in different computer. but connected by LAN
Actually I have written tcp socket programming in ... |
Although the java.net.Socket and java.net.ServetSocket give me powerful networking capabilities I wouldn't want to go through the nitty gritties of creating and managing my own sockets and threads.
What open source ... |
Disclosure: the code I'm working on is for university coursework.
Background: The task I'm trying to complete is to report on the effect of different threading techniques. To do this I have ... |
I am trying to work on a project which involves running/executing the java file in three JVM on different Network. If i locally run the Java file should simultaneously ... |
I've successfully created a small software engineering environment (SEE) for Java applications that is - amongst other tools - based on maven and nexus. My actual problem is - not a ... |
I am trying to transmit objects of a particular class from one server to another.
The options I'm looking at are:
- Serialize the data as JSON and send
it over the wire ...
|
I'm writing a code that generates a large XML document and writes it directly into a client stream using StAX XmlStreamWriter.
I'm afraid that if the network becomes extremely slow, the bytes ... |
i have a java program connect to server through xot protocol.
My lib i use can handle connect timeout, but there is no method like setSoTimeout() to handle timeout when send & ... |
Username: xxxxx.@hotmail.com
Password: yyyyyyyy
Pop3: pop3.live.com Port: 995 SSL: TRUE
SMTP: smtp.live.com Port: 587 SSL: TRUE (Port: 25 also not working)
These are the details I gave: POP3 settings accepted and SMTP settings ... |
I want to write a yahoo! messenger and I create 2 java applications .one is for "server" and the other one is for" client" .at first I run the Server application ... |
I have searched a lot ,but i couldn't find the fine answer for it.I use try_catch block for this exception(if this exception is thrown one frame will be shown to the ... |
I am working on a client-server networking app in Java SE. I am using stings terminated by a newline from client to server and the server responds with a null ... |
These are two classes that one of them is in my Client application and the other is in Server application.
my MainServer class :
public class MainServer {
static Socket client = null;
static ServerSocket ...
|
i have asked this question 2 days before but I can not edit that(I don't know why)also i have changed some part of my classes.also I have checked it a lot ... |
I have 2 important classes(client and server) and I will write something in my text area and by clicking on the send button I will call the active method of the ... |
this is my server class which let the clients to chat with each other but it will return nullpointer exception for this line: while (!(line = in.readLine()).equalsIgnoreCase("/quit")) would you please help ... |
I have several Java apps that run directly from the a shared drive on the LAN. This has worked fine until recently when we setup a remote office on a VPN. ... |
Is possibility in java without using native functions to send datagrams ?
|
I have a Java server that opens up a socket using ServerSocket (using Thrift with it). This server has a client on the local machine in Obj-c that communicates with the ... |
I would like to program a game that can be played by several players seating in front of different computer which are connected via network and I want to use Java ... |
I know that the Socket class can be instantiated in this way (as an example):
new Socket("taranis", 7);
where "taranis" is the name of the server in a local network. In this respect ... |
I'm going to create a project in some month in a course I'm having and for that purpose I would like to read and try making some small test programs regarding ... |
The problem I am having is that when I use an InputStream to read bytes, it blocks until the connection is finished. EG:
InputStream ...
|
I'm trying to collect network statistics on my computer and draw a pie chart. An example is shown below.
my computer connects to port 80 75%
my computer connects to port ...
|
Bonjour provides "DNSSD.browse(serviceType,callBackObject)" method which browses for services of a particular type. If a service of the given type is found, Bonjour calls "callBackObject.serviceFound". If the service is lost, Bonjour calls ... |
I have the following problem. My client program monitor for availability of server in the local network (using Bonjour, but it does not rally mater). As soon as a server is ... |
I learned an example of usage of sockets. In this example a client sends a request to a server to open a socket and then the server (listening to a specific ... |
I want to build a road network from the ESRI shapefiles. I am able to read the data from the .shp files but unable to proceed any further with building the ... |
I try to play with sockets a bit. For that I wrote very simple "client" and "server" applications.
Client:
import java.net.*;
public class client {
public static void main(String[] args) throws ...
|
There is a nice method provided by Bonjour: DNSSD.browse("_killerapp._tcp", this);. As the first argument of this method I give type of service which potentially can be available in the network, and ... |
I am trying to get the IP of a socket connection in string form.
I am using a framework, which returns the SocketAddress of the received message. How can i transform it ... |
I have this code:
ServerSocket serverSideSocket = new ServerSocket(1234);
serverSideSocket.accept();
BufferedReader in = new BufferedReader(new InputStreamReader(serverSideSocket.getInputStream()));
And compiler writes ... |
I am a student of 3rd year engineering and only a novice in my programming skills. I need some help with my project.. I wish to develop a two player game ... |
I'm using the Kindle as an example of an embedded system to illustrate some points I'm making in a paper. Since I'm not an expert in all the technologies used, can ... |
Is there any way in Java to receive event notifications whenever link state changes on a computer (connected, disconnected, up, down, etc)? Thanks!
|
I'm looking to contrast Tibco rv and Hessian in terms of performance - for a Java application.
Any pointer to get me started appreciated. thanks.
|
Im trying to do a simple game where I continually need input from players. This needs to happen during a certain time period only. Everything that is sent after that will ... |
I'm going to implement a (simple) downloader application in Java as a personal exercise. It is going to run several jobs in different threads, in a way that I will be ... |
I'm using Java sockets for client - server application. I have a situation when sometimes client needs to send a byte array (using byteArrayOutputStream) and sometimes it should send a custom ... |
I was wondering which libraries or API's would be useful in this. what im aiming for is to be able to type a command into a prompt and then specify which ... |
i got a problem with my network. I can send a file with my network but it is just a test.
But I want to insert the network in my connect4.
My ... |
I am porting some C code involving an artificial neural network to Java. I have decided to use the Encog framework.
I would like my network to have a bias ... |
In order to cover for my (glaring) lack of knowledge in the basics of networking, I'm looking for a book which would ideally cover:
-> 1 or 2 chapters on the transport ... |
I need to meter the number of bytes being used by a java application from within java (i.e. I don't have any special access to the JVM other then not having ... |
I have several instances of a distributed application running on the localhost; every instance communicate with others through certain ports, all instances together make an ensemble.
(I'm actually talking about |
what is the library should I use ?
what are the functions that help me?
|
I am working on client server architecture and i am just beginner in this thing. Here my server is of C and client is of Java and i want to send ... |
I have to create a ring structure network by using java and i am wondered if it has any library to help me create this ring structure? or I have to ... |
How we can Download a HTML Page using JAVA??
|
I have a smallish number (2-10) of largeish files (6-15GB) that compress really well (4:1).
I'm writing the client and server in Java, and I want to send the files from the ... |
Here's the code.
public class testClient {
public static void main(String[] args) {
testClient abc = new testClient();
abc.go();
}
public void go() {
try {
...
|
We have a custom messaging system written in Java, and I want to implement a basic batching/compression feature that basically under heavy load it will aggregate a bunch of push responses ... |
I am trying to write a program in Java to know whether a machine is in Global/Private network or not. Below is my code snippet. I thought if a machine detects ... |
How exactly does a Server Socket work? When I create a java server socket and accept connection at port 1234. Does the server actually uses the port 1234 for all clients? ... |
Okay, so I'm writing a test program to send a vector of objects from server to client.
-Server-
import java.net.*;
import java.util.Vector;
import java.io.*;
public class TestServer{
public static void main(String[] args) throws ...
|
I have some existing C code that uses ICMP raw sockets to do Ping and I need to use this code in Java as Java does not support ICMP packages. When ... |
I have a server, and Client that are working fine, they transfer file to each other and handle commands with success. The thing is that once connected to the server, the ... |
For finding the ip address of the smtp server in java? I cant find the right api method.
Thank you
|
I know this sounds a big vague so I'll try and be as precise as I can be. I'm pretty new to programming. I wrote an application a year ... |
Morning all,
I don't even know if this is possible, and if it is, I'm struggling to know where to start.
I'll describe the problem: I have application A, which is a third-party ... |
We're using Selenium with the Java API and some Javascript user extensions. We use a lot of AJAX calls in our app. A lot of our tests fail randomly because sometimes ... |
Sender:
ObjectA A = new ObjectA();
ObjectB B = new ObjectB();
//Connection is created
socket.writeObject(B);
Receiver:
//don't know how to find to which object I should typecast the object to :(
Is there any way to send two ... |
In normal blocking socket, I can use Socket.getOutputStream().flush() to partly control when to send out a TCP packet. Is there an equivalent operation for SocketChannel?
Edit: My guess is that every time ... |
Has anyone played around with the CCNx code over from http://www.ccnx.org/.
I unzip the project and loading the .project file in the javasrc directory into Eclipse. The project builds with ... |
Good evening to all of you
I want to fetch a webpage using the socket class in java and i have done this as
import java.net.*;
import java.io.*;
class htmlPageFetch{
...
|
I'm writing a server program using Java non-blocking SocketChannel. Sometimes I want to send a reply message and then close the channel, like the following code.
However, the close() method interrupts the ... |
I'm trying to catch a network socket leak in our Java daemon, which has quite a strange output in lsof:
java 11734 root 463u IPv6 ...
|
I'm interested to know, what is the typical network socket timeout value, used in production today.
I'm currently using 30 seconds in our Java application, but would like to hear what other ... |
I have to do this as my assignment which is as:
Write a java program to get a html page from server then fill out the form using the java program and ... |
I have written a simple network program on java using sockets. Program has a client and a server.
When user types a word on client side, server simply return this ... |
I want to create an adhoc between labtops were they will communicate using wireless communication. I will use java for this but still I do not know how to start..
I ... |
please help me,
can anyone tell me how to get the network performance using java code ???
or how to measure network performance via including simple time related metrics ?
Thanks a lot
... |
I'm writing a Java applet where I should be able to simulate a connection between two hosts. Hence I have to generate packet round-trip times at random.
These RTTs can go from ... |
I have two Linux boxes and need to run 7 jGroup nodes w/ different logical names within them, so totally 14 nodes within a cluster. During the startup processes of these ... |
Sorry for i can't precisely specify the title.
I want to ask that i have created a server using ServerSocket class in java. and i am able to run it easily ... |
I am studying networking and OSI model and all 7 layers.
Like how each layer puts its own header and then removes on the receiver end.
Is there any way that i can ... |
I want to access the class and I want to use that object. Systems are connected in LAN. How can we access that system java application class?
|