443 byte By
neigaard at 2007-9-27 2:19:51
How do I transfer a file between a client and a server, and ensure that the file is ABSOLUTLY the sae on both machines, even though the machines may be running different OS with different charset/encoding?Could someone maybe supply me with an example of a client that reads a file from a server, ...
132 byte By
mesas at 2007-9-27 2:37:54
...but my standard output (System.out.println()) from my applet goes I know not where..I must test on Netscape
230 byte By
87386 at 2007-9-27 2:39:20
I am currently reading the RFC 2616 which defines HTTP1.1 protocol as I am implementing a simple webserver for this - and wondered if any body new if any good example code or more clear explanations of this protocol.
440 byte By
87386 at 2007-9-27 2:41:56
If I have an input stream (connected to a Socket) and I read from it when no data has been written to it what happens? is an exception thrown? or does the read method just wait until data is put out. If this is the case, if I want to monitor for error messages etc while I am writing out of the ...
1666 byte By
LoCal at 2007-9-27 2:45:56
Hi,I've a serious problem here. When I try to post some data to a https server I'll always get an 500 internal Server Error back. What could be the problem? Here is my code that is responsible for ...
92 byte By
askerz at 2007-9-27 2:55:51
Could anyone tell me some cases where we use the proxy design pattern? Thanks!
460 byte By
dan13ro at 2007-9-27 3:00:37
I am planning to develop a multithreading Java downloader using the http1.1 protocol. I have downloaded the specs, but I did not start reading them. The "multithreading" part means that I want to split the remote file into n parts, then create n threads to get it. Merging on local system is ...
I have written a Server and Client program for my Final Year Project, its a 2D Chat room with 4 different chat room environments. It pretty cool and Ill be releasing it as freeware soon enough once I learn how maybe to prevent people from saying its their own, if you know what I mean.Ok heres ...
422 byte By
hly8 at 2007-9-27 3:02:51
Hi, I'd like to build a telnet application (server) in pure java. Say, a client can setup a session with host using telnet, where the server at host is purely written in Java. My question: is there any package in Java implement all the necessary telnet framework already? or elsewhere ? Or I ...
553 byte By
neigaard at 2007-9-27 3:19:24
I'm trying to write a small protocol where I issue commands to the server, and it reply with commands, but sometimes I need to send a file (both binary and text) to/from the server.How do you guys do that, do you use the same socket for both commands and binary data, or two sockets?And in ...
345 byte By
Cill13 at 2007-9-27 3:20:25
Hi i am trying to get to modems to send data to each other.The problem is that the modems are looking for a dial tone.Without the tone they will not do anything.I was wondering if there was an AT command so the modems do not look for a tone.Any other ideas about a download or anything else that ...
419 byte By
isam_hk at 2007-9-27 3:20:34
I hv to propose a new way to replace the existing inhouse auto data transfer system which via cc:mail, I think through internet is the best choice. Please advice what Java technology is neccesary to do it.For example, our company send a ascii file to somewhere (is it mail server?) via internet ...
Hi all,My question is a high level question for experienced developers. I am developing a remote administration module for an application. Main functionalities are login, logout, change password, changing runtime parameters, etc. (What else can they be, by the way :)There will be information ...
Hi, We use socket programming in our application, but we encounter a problem which we couldnt resolve. This is what happens in our application. We have UDB database and various application which send requests to that database. The requests are send through a Servlet and RMI to the database ...
1374 byte By
neigaard at 2007-9-27 3:57:50
I have the following code, and every time I run it i get a "java.net.SocketException: Connection reset by peer: socket write error" exception. Why is that? This is the first time I'm writing a network client application, so please help :)Socket s = new Socket("127.0.0.1",8080);OutputStream out ...
999 byte By
osborn_ at 2007-9-27 3:59:24
Hi, Im having serious trouble understanding something that is probebly fundamental.?m trying to write a pictionary program with a client part that is an applet. The problem is the communication beteween the server and the client, I just dont got a clue how to do it without throwing an sexurity ...
In socket programming, I have a client which sends a message to server, the server receives the message and returns back a acknowledge message the client has to receive it. When I tried I my client socket is getting closed after sending the message to the server. Its not getting the acknowledge ...
676 byte By
manakhan at 2007-9-27 4:15:13
In general, what is the most scalable and maintainable approach to real-time / near-time legacy data integration (i.e. with a public facing web site)? A couple thoughts:Use a JDBC / JCA connection synchronously ...Use JNI to a native library connection & custom socket connection pool, ...
531 byte By
osborn_ at 2007-9-27 4:16:01
Ive been having alot of trouble with this one so if you have any sugestions please comment.Anyway, heres the problem:A number of clients (applets) should connect to a server (application) and they should send objects between them.The Client is loaded from the same location from which the Server ...
919 byte By
maadi at 2007-9-27 4:16:54
I had some problems using wstring. Would be great if I can get a help on it. I have my C++ server and Java Client objects using CORBA as the medium. I could pass strings easily across until I had to change my IDLs and java/C++ code to support Chinese characters. I changed the string declaration ...
Hi. I have to "study the different communicacion possibilities for Client - Server communicacion from Java to Java and from Java to C++". I have read a bit about it: I can use RMI, I can use something more low-level called "socket communication" (which seems to be the basis of RMI), I can use a ...
Hi,I want to use Socks protocol to travers a firewall system, and I know little about how to do. Could someone tell me how can I do? What articles should I read to get knowledge on these subjects? How to implement? How to set up the test environment? Everything on this subject is ...
791 byte By
andreycr at 2007-9-27 4:21:04
Hi, I'm trying to develop a client / server application using sockets. The server is a Java application while the client is an Flash swf. I need the client Flash to be able to run on a browser. The client and server programs also need to be on separate machines.When i tried running the client ...
1414 byte By
amish.p at 2007-9-27 4:22:48
Hello All, I am trying to understand the following. I am using Websphere Application Developer. I have a Web Project called Core which has its java classes, servlets and JSP's. I have now added another Web Project called FOO which depends on Core, and has its classes, servlets and JSP's. It ...
Yes. I'd like to know why I sign-in every day on this forum for hours and wait up all night long just to see if there are any new questions about Networking and there never is, I need to be challenged. Ask me questions, please.
Problem: I cant send any HTTP-headers using the PrintStream on a Socket.Basically, I have Xport - a web server, running on port 80 (default HTTP) and can read GET/POST etc headers from the browser (using a BufferedReader on a Socket)but I cant send any headers back to the browser (using ...
336 byte By
tedhill at 2007-9-27 4:35:45
I am developing a JFrame-based Swing app.To enforce licensing policy, I want the app to be able to detect if there are any other instances of itself running elsewhere on the network.Could someone suggest a general approach for doing this. I am new to the Java networking APIs.Thank you,Ted Hill ...
160 byte By
tedhill at 2007-9-27 4:37:42
Is there a way to find an unused port on local host that could be used in call to new ServerSocket( port );Thank you,Ted Hill
1240 byte By
jbenton at 2007-9-27 4:39:12
Web pages which generate dynamic content could be streamed successfully under 1.3x, but fail now 1.4.The scenario is this: o Get URLConnection to dynamic page - note that connection.getContentLength();returns -1 indicating unknown length. o Get an InputStream via connection.getInputStream(); o ...
729 byte By
nycolea at 2007-9-27 4:48:06
Hi to everyone. I need an help for my problem. I have to implement a FAX in java language, but I don't know how can I do it. I have a server that I use to send and receive mail and I'd like to use this server to send FAX. I can connect the FAX machine to this server, so I think it is possible ...
Is there any way to access MS COM components from Java. Microsoft has come up with MS Econnect - which can update Great Plains System ERP backoffice. Do we have anything like that in Java. How about Weblogic JCOM. Where can I get information ? Can Anyone help me ?I am doing a GPS project where ...
I use the following code to receive data in bytes format socket. But sometimes I can't receive complete data from socket if the data are > 1400 ++ bytes. pls helppublic byte[] RecvMesg(InputStream in) throws IOException {String errMsg="";byte[] buffer=new byte[4096];try ...
I have a big problem on my Java application...here is the idea: open a web site thru the proxy server, get the link I want and then open that page.Let say the URL of the web site is http://www.mypage.com and I use URLConnection to connectthat page. After I get the link, how to open that page ? ...
1016 byte By
amish.pa at 2007-9-27 5:15:45
I am new in this area and need some help setting things up. I have two web applications WebApplication 1 & WebApplication 2 each of then has their own WEB-INF directory. Both of this web application are associated with a single EAR. Now I want to configure these web apps in such a way that ...
1404 byte By
rbvossa at 2007-9-27 5:20:59
I'm using the Socket class to handle connections in a JDBC Driver. It works fine until a read() times out. After that happens, I try to continue using the Socket, but now requests and responses are out of sync, the connection is unusable, and I can't gracefully disconnect.It appears that the ...
314 byte By
voyesa at 2007-9-27 5:22:03
Is the new package JDK1.4.0 Java.nio.channel a way to speed up the communication in comparison to the older package java.net?And is it tru that the Java.nio package for sockets is better in term of communication time under windows than the previous java.net package?Thank you for your ...
221 byte By
voyesa at 2007-9-27 5:22:04
Are sockets really Operating System independant? Or Is Java portable enough to not take into consideration the underlying implementation of sockets of the running Operating System?Thank you for your answers,
348 byte By
dmooka at 2007-9-27 5:26:03
I thought I would try my hand at TCP/IP development; but I only have a single machine for development and testing. I am running Windows XP professional and was wondering if there is a "test socket" I could use. Is it possible to do TCP/IP development on a single machine - if yes, how would I go ...
1321 byte By
JBella at 2007-9-27 5:30:24
I was wondering if anyone knows of a way to set the source address of a datagram (as perceived by the datagram's receiver) to a multicast address. Here is the situation: I have a group of servers who listen to a multicast address to receive packets sent by clients. One of the servers then ...
Hi All!MutliCast Socket in Java, enable communication among a group of people. And interested people should register this group. However, there is no restriction on who joins the group. What are options if we need to get same service as that of Multicast Socket while restrcting who joins to the ...
I am developing a web application. This application allows the user to upload a file to the webserver. However, for business reasons, I need to store the file that the user uploads to a remote server that is accessible via our network. How do I do this? Any suggestions?-Cassandra
Hi, I have the following problem.I have a java library. I create a COM object from this library using Visual J.Now I need to use the methods of the classes of this library (as COM object) under Visual C.Is it possible?Please help me.Thanks in advance.
834 byte By
MSDUKa at 2007-9-27 5:55:10
A few weeks a go in the middle of a deadline frenzy I had to decide on my masters project. Lacking suitable forethought I decided on "Distributed Framework for Java". The general idea is that any computer on a network will be able fire out tasks (these can be anything from incrementing a number ...
565 byte By
xttraxa at 2007-9-27 6:09:14
Hi all,I have a question to ask here, i am developing a pure java app (client/server) which hopefully can 1) client > create a file (abc.txt for e.g) save a copy in local mechine,2) upload the file to remote server that currently connected (consider store in server?)3) than remove the copy ...
749 byte By
drmatta at 2007-9-27 6:14:26
Hello,I'm fairly new to remote application programming and would like to know if the following is possible.I want to create a client/server pair which encrypts data communications. However, since encrypted data is generally larger in size than plaintext, I would also like to compress the bytes ...
316 byte By
yinwqa at 2007-9-27 6:19:16
all,I am using socket to do FTP from NT to a mainframe. first of first, I can do FTP in MS-DOS console to the mainframe server, however, when I implement it in java code using socket, I can not get any response for "PASV" command.Anyone have idea about this issue? I need it ...
592 byte By
riohka at 2007-9-27 6:24:10
Dear allI have written a program to collect some information from web pages. My program was OK fora few min. However it stopped with: Connection reset by peer: JVM_recv in socket input stream readI guess the web server of that web sites reset some connections when particular period is ...
731 byte By
lmmja at 2007-9-27 6:42:29
Hi,I will need to develop a component and host it in my server. Then, a client will login a program and then I need to make a copy (instance) of this component on the client to run with local (client) databases. So, the inteligence will be hosted on my server and will be "copied" to the client ...
hi, i'm pretty new to distributed computing. have an idea of implementing a distributed network. basically the concept is as followed.a network with a server A and a few terminals (the performance of the terminals varies, some are higher performance than the other). when i run any application ...
364 byte By
AMKINNa at 2007-9-27 6:49:29
I am trying to format a byte array consisting of Floats , chars, int, and longs which I send to multiple clients. How can I create this byte array with mixed data types. I have tried converting the floats, int, etc, to strings, then to bytes ( using String.getbytes) , but the conversion changes ...