Objects in Sockets

1254 byte By Rukh83a at 2007-11-27 3:30:09
Hi,I'm writing a server <-> client application and I have a problem while sending Objects.Generally, everything is fine as far as I don't want to send object back and forth. My problem by example:- Server creates an object for instance myObject = new MyObject();- Server puts an this ...

No exception when writing/flushing data to a socket having lost connection

1141 byte By fbo74a at 2007-11-27 1:44:57
Hi,I am using a client socket to send messages to a commercial application. The client socket is initialized and the connection to the server established at the startup of the client application (keep alive and tcp no delay are set to true). In case of loss of connection I have added an ...

Server Socket Question ?

2558 byte By SCOOBYJSPa at 2007-11-26 21:39:34
I have a server client app using SE Java.There are 6 types of clients that connect to the server using a socket.As it is now i just use 1 server socket to spin off a thread each time any client arrives.like so:import java.net.ServerSocket;import java.io.IOException;public final class ...

establish a socket through a phone line

214 byte By Ehsan_KhSa at 2007-11-26 21:29:48
is there any body who guide me how can i establish a socket or any type of communication bridge through a phone line for sending data between to computer ?sample code may help me more than anything...

virtual machine

171 byte By ratula at 2007-11-26 21:29:23
im new in java programming i dont understand how the virtual machine work & what the benefit of using it for this reason is the java work platform independently

java.net.SocketException: socket closed

10578 byte By Sunaya at 2007-11-26 20:52:54
I get this error when i try to read text from the server, My code is as followspackage VChat;import java.io.BufferedReader;import java.io.BufferedWriter;import java.io.DataInputStream;import java.io.DataOutputStream;import java.io.IOException;import java.io.InputStream;import ...

SOCKS redirection

529 byte By mplc1980a at 2007-11-26 20:52:12
I have a SOCKS ver4 proxy server and an application that runs on SOCKS ver 4 (Yahoo Messenger). I want to create an application that will serve as a transit between the 2. Meaning, I will be creating an API that will listen to the SOCKS application and forward the data to the SOCKS server.The ...

DatagramSocket.connect

691 byte By pulikesia at 2007-11-26 20:51:32
Hi,I am trying to find whether a server is running on the remote machine on a specified port. When the remote server is unreachable, the DatagramSocket.connect(InetAddress, int) always returns without even throwing exception. Even the method DatagramSocket.isConnected also returns true. ...

reading data from textbox

244 byte By jaggu321a at 2007-11-26 20:42:41
i have a textbox with button, if i execute a button it has to start the backend console program and if i submit the some data through textbox that console programhas to read that data and save it.how will do this..help me plz..thx

socket connection timeout in SJSAS

539 byte By emilio.remognaa at 2007-11-26 20:15:32
Hi all!I have a strange problem using sockets in SJSAS (version 9.0_01).I've deployed a servlet which uses sockets to check some ports on remote hosts (a sort of scanning).I've set my socket connection timeout, but timeout exception is never thrown.Sockets seem to be "hung up" in SJSAS.With ...

a good starting point for java sockets?

522 byte By panosjavaa at 2007-11-26 20:05:07
hello everyone,i have just started to implement a client-server paradigm for a secure communication channel... do you know of very good starting point of socket programming with java? a url or a book? i am looking for something that will guide me through the process of a simple client-server to ...

Problem with Java6 + applet + reading file from http

1635 byte By droida38a at 2007-11-26 20:04:23
I've been using the below code since Java1.1 for downloading files from a http-server. But with Java6 it has stopped working. Or rather it downloads less bytes than the file actually is.Ex. when loading a file that is actually 28.043 bytes, it consistently only loads 28.011 bytes.connection is ...

File Download

226 byte By g_ravikanthguptaabapa at 2007-11-26 20:02:09
Hi Gurus,I have requirement of when the client clicks on download link in browser then i had send the file from server to client. Can any body ve a code for this please send me.Thanks in advanceRavi

Socket write while read is currently blocking

334 byte By Salamzana at 2007-11-26 19:51:42
I have a client swing application that is reading from the socket InputStream in its own thread. This is a blocking read, via a BufferedReader.readLine() call.When someone presses a button or some other event is to trigger a socket write, would you suspect some sort of dead lock or non ...

NoRouteToHost Exception

568 byte By Sunaya at 2007-11-26 19:49:03
Hi Experts,I am new to socket programming. I want to develop voice chat client application.Now i have few queries if it is solved it will help me great to develop my application. I am final year student of MCA please i have to complete this application in very short time Early reply help me ...

Binding to a port

500 byte By ray6855a at 2007-11-26 19:37:15
I am reading the documentation and it says the ServerSocket(12345) would bind to 12345 port. So does this mean any other application won't be able to use this port?I am trying to build a class which can hold on to a port and when required release it. The reason is that some other application ...

connecting client

242 byte By alok_agrawala at 2007-11-26 19:23:46
I want the connection between two client such that messages between two client are pass directly,without passing through serverWill it possible if yes then please tell me the procedure for doing that thank you for replies

How to separate/eliminate CRC, MSB and LSB from response

457 byte By kvijaia at 2007-11-26 19:23:17
Hi allIf I send the following command to RFID reader through TCP/IP.byte[] buf = { 0x01, 0x04, 0x06, 0x22, (byte)0xA0, 0x69, 0x72 };It returns the response packet as a byte stream including CRC, MSB and LSB . Besically i am not able to interpret the response packet so that I can ...

sever side error

5377 byte By Anu_007a at 2007-11-26 19:18:50
my server side program:import java.io.*;import java.net.*;import java.util.*;public class simpleserver{ArrayList clientoutputstream;public class clienthandler implements Runnable{BufferedReader reader;Socket sock;public clienthandler(Socket clientsocket){try{sock=clientsocket;InputStreamReader ...

Uses & syntax of classes

780 byte By alok_agrawala at 2007-11-26 19:17:13
hi friends, I am making a chatting messenger using socket programming in java,I have some problem in establishing chatting session between two clients,where server just provide socket address of the c2 to c1,and then two client connect to each other and then send message without passing that ...

chat client

3333 byte By Anu_007a at 2007-11-26 19:12:54
I am trying to create a simple chat client (like yahoo mssg)import java.io.*;import java.net.*;import java.awt.*;import java.awt.event.*;import javax.swing.*;public class chat1 {JTextField text;PrintWriter write1;JTextAreatext1;BufferedReader read1;Socket sock; public static void main(String[] ...

chatting messenger

1116 byte By alok_agrawala at 2007-11-26 19:07:46
I am final year student. I am making project on instant messenger,I am using Socket programming .I want from my application that when client1 want to chat with any of the online client2,he send that name of the client2 to the server then server send his socket address to the client1,& then ...

Server side programming fails!

3663 byte By kothari_neerava at 2007-11-26 19:07:02
hello. i'm developing a messenger program. initial design had one client sending a message and the server echoing the message back to the client. it worked fine. now i'm making it for multiple clients. that is one client sending a message and multiple clients receiving the message like in ...

Read from a HTTPS url

701 byte By landisaa at 2007-11-26 18:44:01
I'm new to HTTPS and SSL implementation, so my question may seem very basic to you all.I'm trying to read from an HTTPS url. I can successfully read a standard HTTP url. I've read a lot of the posts, but I can't seem to get a handle on how to do this. We are not concerned about verifying ...

Synchronous IO with nio

3691 byte By jdupreza at 2007-11-26 18:41:39
Hello,I have been programming in Java for a while but today is my first shot at NIO.I'm implementing a custom protocol over TCP between a java server and several Java and C clients. The classical one-thread-per-client approach works with a couple of test connections, but I'm afraid it will ...

Probelm when calling a servlet using URL connection from a thread

717 byte By Mckinseya at 2007-11-26 18:39:50
HiI have a servlet which does some calculation on address.This calculation had a SAX parser inside it.I want to present this servlet as a service.I called this servlet using URLConnection.During my testing i created a runnable class, which actually calls the servlet using the URLConnection from ...

Problem resolving domain name to current (new) IP address

4112 byte By carcophana at 2007-11-26 18:34:14
Hi everyone,I have a server somewhere in the internet that listens on a certain port. This server is available only through dynamically changing IP addresses therefore the server updates its IP address to a dynamic DNS provider at a regular interval.I also have a client that connects to this ...

No traffic detected with Wireshark

363 byte By tomas_beraneka at 2007-11-26 18:32:35
Hi,Don't you know, how is it possible, that when a TCP client running on PPC connects to server running on PC over ActiveSync, there are no packets captured by the Wireshark running also on this PC? I tried to listen on all of possible interfaces, but always with the same result. Thank ...

Connecting a Socket to echo port

1651 byte By G.Vasua at 2007-11-26 18:32:02
Hi, I am trying to connect to the echo port of my own system. The code I am using is provided here under. When I am executing this I am getting an IOException.I am running this on Windows XP machine...I belive this code is working fine when I exectuted on a windows 98 machine..Pls. suggest if I ...

connect to telnet

79 byte By gaurav_xmla at 2007-11-26 18:24:37
i want toconnect to telnet using java, can anyone tell me how to do that

How can I connect many client in one server ?

133 byte By Fabio_Aurelio-Brasilia-Brasila at 2007-11-26 18:21:32
Hello, My name is Fabio, i live in Brazil.I need that two or more conect the ane server socket.Who can help me ?

Working with NIO and non-NIO sockets

1050 byte By Jay-Suna at 2007-11-26 18:14:25
Hello,Trying to write a network manager kind of program where the client initiates a number of connections to different servers. Need to manage these connections through the life time of the session ( time the client is connected to the server). The client connections originate from a single ...

SSL HandShake problem in Linux

2805 byte By jjmarmola at 2007-11-26 18:11:16
HelloI have developed an application that opens a SSLSocket to connect to a remote server. It works on windows but not on Linux machines.Running the application on Linux machines (RH 7.3, RHEL4.3 and CentOS), I find the following exception when executing ...

trouble!

532 byte By kothari_neerava at 2007-11-26 18:08:43
i'm making a messenger client which has 4 classes.ClientSocketsSendReceivea thread t1 in client in binded to object of send. the run inside send will send messages using a PrintWriter object 'out' of sockect object soc which are delcared an inidialised in sockets. i have created an object of ...

Peer to Peer program

485 byte By robotdoggia at 2007-11-26 18:08:42
I would like to know how to write a program to communicate with another program located at another server in different location. Just call it Program A and B.Program A and B must able to talk to each other, which it can send and receive a simple string. Is it possible to do this by using the ...

Problem sending data over a stream

641 byte By QTQa at 2007-11-26 18:05:58
Hi,I am having a problem sending the following string over a stream from server to client.strUserName = "QTQ";param = "hi";Send the following: (""+CHAT2ALL+strUserName+(char)(220)+param); which when written or sent or recieved should be "104QTQ躧i" But when i send it the client recieves it as : ...

Client recieving a User List

841 byte By QTQa at 2007-11-26 18:03:44
How would I make a client keep listening for a certain action..Basically I have created a Client-Server Chat app... on connection and disconnection the server creates a userlist using the vectorlist, thus keeps updating on connection/disconnection of a socket/user.... so serverside is ...

FTP Upload Problems.

3250 byte By shiznatixa at 2007-11-26 17:32:04
Ok so I am writing this small FTP applet so I can upload files to my website. All is going well except when I upload a large file, it uploads then as soon as its done uploading it disappears. I have no idea why. If the file is above about 3/4 a meg then it just disappears when its done ...

How can I connect 1 server to another one?

1472 byte By _sfla at 2007-11-26 17:18:33
Hello,Scenario:I have one PLC (Programmable Logic Controller) that is a client.I wrote the server code, it works.PLCClient <->PLCServer( 1 to 1 )Now I have to implements my clients on PCs.The PCClient sends commands to PLCServer and it answers back.How can I do this kind of connection?I ...

Problem in using SocketChannel..

1509 byte By Adeesha at 2007-11-26 17:12:02
Hi, I am using the following code to make connection with the server. The speciality of this server is that it has the code of peer.java.net.socket sock = new Socket(ip1,port1) ; Then i use this socket to make streams and do the following.1) Created a class which will handle all the operations ...

Talarian Jar for JDK 1.6

290 byte By Goofy_111a at 2007-11-26 17:03:38
We are using Talarian Smart Socket. We are also using JDk 1.4 for our application. Since we migrated to JDK 1.6 there is change in the message format.. I guess it has to do with the binary conversion or bytes conversion. Do I need to upgrade Talarian Smart Socket verison for JDk 1.6

TCP window configuration

208 byte By hiwaa at 2007-11-26 17:02:51
Do we have a way to configure windowing parameters for TCP from a Java program?I mean it is not for a specific Java networking application but for local low-level TCP client behavior in general.

Internet Control Using Sockets

720 byte By elroydsilvaa at 2007-11-26 16:56:31
Hi. I'm an engineering student and i'm working on my project titled 'Internet Access Control' for our college. Our college has a server connected to our network lab where internet is accessed. I'm using sockets programming and i would be glad if you tell me which classes i have to use ...

About sockets in server side programing

168 byte By Sarikaaaaaaa at 2007-11-26 16:47:47
In server side programing like a Chat server whats the role played by the socket programming can any one tell me or give me the link where i can get the material

java.net.BindException: Address already in use: JVM_Bind

334 byte By BB81a at 2007-11-26 16:47:08
My server class is completed. When I run it...It gives me an error message java.net.BindException: Address already in use: JVM_BindI am having a localhost:81 ...I haven't assign any port 81 ...neither in router nor the IIS ...May I know what should I do to remove this message ...

Pool Thread Web Server - Need Help Implementing HTTP 1.1 keep alive

11936 byte By sadhakima at 2007-11-26 16:46:46
Hi guys, I have a pretty simple webserver, just 3 classes, very simple, but now I need to add HTTP 1.1 keep alive feature. I have two problems, 1) I'm not completely sure I understand the keep alive feature 2) I have no idea how to impliment it with my current code.From my understanding HTTP ...

transferring file

502 byte By boynextdoora at 2007-11-26 16:46:24
hi there, i have a problem with regards to socket programming.. im done with the client server thing in which the client communicates with the server and ther server response with a hard coded message in my program. now my problem is, how can i make a program like this:Client:Enter file to ...

netstat shows connection ESTABLISHED although client is dead.

1283 byte By richJTSa at 2007-11-26 16:39:13
Hi,I have an issue with a client/server app where the Server is running under 1.4.2_04 on Solaris 9 using NIO and in this case the Client is connecting in from a Windows XP machine using standard Sockets.If I bring up a selection of clients, I can see the connections in the ESTABLISHED state ...

How do I execute method on server from client?

210 byte By baneizalfea at 2007-11-26 16:36:46
How do I execute method on server from client?For example, when I start Client it gets message from server to choose option 1- send file, 2-disconect.When I choose 1, server sends the file?

Client Browser

764 byte By BB81a at 2007-11-26 16:36:28
Hello,I am writing a WebServer Class and would like browser to be my client...I am wander how I pass in the " http://xxx.xxx:80/~hello" to the server ...?Just don't really understand ...This is what I am writting now ...int port = 80;ServerSocket listener = new ServerSocket(port,1);Socket ...