470 Topics

Member Avatar for
Member Avatar for Silvershaft

Hey all! I am interested in learning to use sockets. make client and server program. Where should I begin? Thanks!

Member Avatar for PriyankaMV
1
155
Member Avatar for efronefron

Server Code [CODE]import java.io.DataInputStream; import java.io.DataOutputStream; import java.net.ServerSocket; import java.net.Socket; /** * * @author efron */ public class Server { public static void main(String[] args) { try { ServerSocket serverSocket = new ServerSocket(Integer.parseInt("49999")); System.out.println(serverSocket.getLocalPort()); while (true) { System.out.println("Waiting for Client...(port = " + 49999 + ")"); Socket acceptSocket = serverSocket.accept(); …

Member Avatar for ~s.o.s~
0
1K
Member Avatar for sleepybug

I'm trying to do some socket programming in java. what i have is, i've written this program to create a server and client on my local machine and make separate two threads for socket input and out put in [B]Se.java[/B] file. Similarly two separate threads for socket input and output …

Member Avatar for JamesCherrill
0
1K
Member Avatar for SpyrosMet

I need to create a simple http client to a web server and my code is the following: [CODE]#include <stdio.h> #include <string.h> #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <netdb.h> #include <errno.h> #include <arpa/inet.h> struct sockaddr_in wserver, cl; struct hostent *rem; int fd, newfd, len, l; int main(int argc, char …

Member Avatar for SpyrosMet
0
379
Member Avatar for ooops.789

Hello....i am trying to send a file from server to the client using socket programming in C, how do i do this?? basically the client is trying to download a file from the server....

Member Avatar for L7Sqr
0
559
Member Avatar for ogsim07

hello guys, can you pls tell me now to go ahead with this, basically i just want client to say "C:\temp" ENTER then, server must reply with all its files in c:\temp Is there a way to do this, or may be i am wrong, can u tell me any …

Member Avatar for Reverend Jim
0
196
Member Avatar for ooops.789

hello....i am trying to establish a communication between server and client and later to do some communication between them, so first i am trying to establish communication and i see that server gives "segmentation fault" as the output. I am placing the code below, check it out and let me …

Member Avatar for ooops.789
0
3K
Member Avatar for SamarthWiz

Hi I keep on getting data altered when I receive it example: [CODE] SAM:~ SamarthAgarwal$ telnet 192.168.1.39 8888 Trying 192.168.1.39... Connected to 192.168.1.39. Escape character is '^]'. --Welcome To HACKNET-- Username: Admin Password: pass --INCORRECT IDENTIFICATION--Connection closed by foreign host. SAM:~ SamarthAgarwal$ [/CODE] the data on the server side: [CODE] …

Member Avatar for nezachem
0
1K
Member Avatar for ganeshan23

Hi Friends , This is Ganeshan . I Found the Below undefined errors when using Socket programming on Eclipse IDE . I don't know what to do ?. Kindly please help me in removing the Errors . [Linker error] undefined reference to `WSAStartup@8' [Linker error] undefined reference to `socket@12' Thanks …

Member Avatar for Ancient Dragon
0
2K
Member Avatar for sravanthi89

[CODE]#!/usr/bin/python import smtplib sender = 'from@fromdomain.com' receivers = ['to@todomain.com'] message = """From: From Person <from@fromdomain.com> To: To Person <to@todomain.com> Subject: SMTP e-mail test This is a test e-mail message. """ try: smtpObj = smtplib.SMTP('smtp.gmail.com') smtpObj.sendmail(sender, receivers, message) print "Successfully sent email" except smtplib.SMTPException: print "Error: unable to send email" [/CODE] …

Member Avatar for TrustyTony
0
912
Member Avatar for ktsangop

Hi there! I would like a little help regarding the following code. The following code will wait for a non-blocking socket connection, and then wait to receive a certain packet. When the packet arrives, it will do something and then close connection and reinitialize it in order to be able …

Member Avatar for ktsangop
0
391
Member Avatar for stereomatching

I have to learn how to deal with socket programming because of my job(I don't have any experience about it) My company ask me to learn ACE because I have to maintain our ex and new products After I google the information from the internet, most of the users say …

Member Avatar for stereomatching
0
1K
Member Avatar for Onlineshade

I wish to make a project on Messenger using Java. But is [B]Java Socket programming[/B] necessary for it?

Member Avatar for stultuske
0
82
Member Avatar for Onlineshade
Member Avatar for Taywin
0
78
Member Avatar for jogesh_p

hi i am not clear with the socket connection in php, because before starting a new topic i want to clear with the experts(you all guys), why we use socket connection??

Member Avatar for jogesh_p
0
133
Member Avatar for dospy

i really need a GOOD socket tutorial, i've followed some of them from google but they aren't complete, i know that socket programming is forked into many categories, basically i am interested blocking & non blocking sockets, synchronous & asynchronous sockets(used with select() and FD_ISSET macro etc) PS: i know …

Member Avatar for dospy
0
168
Member Avatar for Majestics

I have a experience of network programming in java... now i want to implement them in c with more better support, i have used c++ long time a ago... Now i dont know which compiler of c++ is better, which support socket api... and which operating system provide more flexibility …

Member Avatar for doug65536
0
207
Member Avatar for darelet

Hi all, I need a setup involving a client or front-end program that sends some tasks to a back-end process for processing and collects results for output. I know this involves socket programming, but one issue here is that the front-end is a windows program and the back-end is a …

Member Avatar for darelet
0
205
Member Avatar for sathya88

how to send mp3,avi(large) files via socket...small files with size less than 100kb is possible but how to send large file..

Member Avatar for NormR1
0
8K
Member Avatar for Curt1337

Hi there all, I really need help on this one, I went away for a wedding for a week and missed a week of work and now I have a practical due for 1:00 10 tomorrow and I got back today, but I managed to complete all of the programming …

Member Avatar for Ezzaral
-2
393
Member Avatar for Galbatorix

hi guys, am pretty new to socket programming in vb.net . i am used to the winsock control in vb6 but it seems that vb.net has a difft approach as i could not find the control. Could someone please explain to me about sockets

Member Avatar for thatscrap12543
0
186
Member Avatar for jayuma

Am new to socket programming.Can you please help me with this issue I need to connect two computers which is already under some network using C#. After it gets connected I need to know the details of the "Task Manager" of the connected computer - (If any pogram/file is running …

Member Avatar for Ketsuekiame
0
267
Member Avatar for rom.

I'm just starting out in C/C++, and I want to make a simple socket server script. It will be compiled on mac/linux and executed from terminal. Just want a simple script that will: - allow multiple clients to connect to the server on a specified port (they will be using …

Member Avatar for rom.
0
399
Member Avatar for hardik.rajani

Hi I was trying to make a remote desktop program using java socket programming. I have been successful to develop it for LAN. But i am wondering that how to use the same application over internet. As i am not an networking guy, i don't have enough knowledge of tunneling …

Member Avatar for Aviras
0
2K
Member Avatar for Aviras

Hello everyone. I've been programming on a co-op RPG for quite some time now, but my networking side has seen some troubles. I'm using the lower level serverSocket-Socket way. Everything runs flawless within my own network, however connection over the internet is where the trouble is. I understand this is …

Member Avatar for Aviras
0
287
Member Avatar for Clawsy

I develop a chat (server and client) using [I]Sockets[/I]. It's working on [B]LAN[/B] but when I try to connect the client to the server using my public IP address it says it cannot connect to that address. My address is public - a friend pinged my address successfully. You find …

Member Avatar for Aviras
0
337
Member Avatar for Awah Mohamed

hi guys i want to use php websockets... i made a web socket but it didnt work i hope you guys know some javascript couz the client page is made with javascript and html5 this is the server's code: [CODE] <?php error_reporting(-1); $host = "127.0.0.1"; $port = 8000; $socket = …

Member Avatar for Awah Mohamed
0
253
Member Avatar for knan

A service running in the Server is listening to port 2978 on 1xx.xxx.xx.xx for incoming connections! My PHP code receives URL data through get method. A tcp connection has to be established with the 'service' on that port and the data received from the URL should be sent to the …

Member Avatar for edwinhermann
0
301
Member Avatar for Awah Mohamed

hey guys, i made my first web socket server in php and i run it in my localhost and it worked fine.. the problem is, i want to use it in my website... my website is in a shared server and i dont have shell access.. so how can i …

Member Avatar for Awah Mohamed
0
120
Member Avatar for aimdharma1990

sir i created the strucutre. and i created the vector. i push the structue in the vector how to send the vector to the server . in the socket programming under windows. in c++

Member Avatar for rubberman
0
33
Member Avatar for Pravinrasal

I have problem with creating jar file want to create jar file with mysql connector i include the mysql connector in manifest file but still it five me error like: java.lang.ClassNotFoundException: com.mysql.jdbc.Driver at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) at java.lang.Class.forName0(Native Method) …

Member Avatar for NormR1
0
155
Member Avatar for mike_2000_17

[B]Beginner's Guide to C++0x: The Big Five - Implementing a Resource-holding RAII Class[/B] This tutorial will show how to implement a [I]resource-holding class[/I] showing practical use of [I]C++0x features[/I]. A resource-holding class is any class which holds, with its data members, a resource which could include: [LIST] [*]dynamically allocated memory …

17
3K
Member Avatar for awah mohamad

hi guys i am planning to create a website for my school(i am a high school student) that saves the students marks and then gives too many out puts. i am doing it for the science fair after 2 months. that is not my problem, my problem is i need …

Member Avatar for Ancient Dragon
0
104
Member Avatar for zack_falcon

I've got a program, a board game, that plays over LAN. I used Asynchronous sockets to connect the server and the client, so that the server won't hang until the client responds. The game flow would be like this: Player A starts server by typing in a Port number Player …

Member Avatar for zack_falcon
0
324
Member Avatar for debasishgang7

Hi all, Here is mu scenario.I am trying to open multiple port on a compute. I am trying to make the code multi threaded.So here is my code: [CODE]import socket import thread from threading import * s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) def handler(clientsock,addr): while 1: data = clientsock.recv(BUFSIZ) if not data: …

Member Avatar for debasishgang7
0
905
Member Avatar for masterofpuppets

Hi all, I searched this topic and found a couple of posts but I couldn't find what I am looking for. Here's the problem - I am trying to send an image to a client (browser in this case) over a socket. After the image is received I am trying …

Member Avatar for masterofpuppets
0
9K
Member Avatar for pissman

Hello, I was working on my Server - Client comunicating programm for moonth or more, when a tricky issue had met me. I works so: Server does certain commands if client types certain commnads, and I need need the Client to do certain commands if Server types certain commands. I …

Member Avatar for pissman
0
308
Member Avatar for sabrina_singh

hey can anyone help me out......... I am trying to connect 2 processes on a single computer using socket programming in java....how can i connect such 2 processes....pplllzzzz help me out

Member Avatar for JamesCherrill
0
42
Member Avatar for otherdummy

Hello, everybody I am working on a simple client-server program. The server side is a console program which will send (1)the list of files in home directory and (2)the contents of the selected file to the client side. And the client side is a GUI program which sends requests to …

Member Avatar for BestJewSinceJC
0
957
Member Avatar for ajst

Hi DaniWeb, I'm currently writing a client server program. I have my client and server sending data and everything fine. But I'm trying to get my client to reconnect. E.g if I get the server to kill the clients connection how can I get the client to realise it is …

Member Avatar for maninaction
0
211
Member Avatar for masterofpuppets

Hey, I am not sure whether this is the right place to ask this but I figured that maybe someone here has used JFileUpload for uploading files to a server. I just downloaded the applet and tested it out on my server and uploading works as long as the files …

Member Avatar for masterofpuppets
0
258
Member Avatar for masterofpuppets

Hey guys, Here's the problem I have: I am writing a server application in Java using the ServerSocket and Socket classes. I have an instance of ServerSocket which listens for connection and accepts them. The server runs a website that requires users to log in using an e-mail and a …

Member Avatar for masterofpuppets
0
1K
Member Avatar for thierrypin

I have this problem: I have a data structure called DACT, that I convert into a string line and send to another computer. I have a file full of DACTs, and I need to send them all to another computer. When I send only 100, it works fine, but when …

Member Avatar for thierrypin
0
190
Member Avatar for Web_Sailor

Hi, I need to create a user name and password login client server. Attached is my attempt. This is my first try on socket and network programming in C. I have reached to a certain level but just a little problem is stopping me because of less C knowledge. I …

Member Avatar for raptr_dflo
0
3K
Member Avatar for MeandJava

Hello everybody, I have a xml socket server which get data from xml sockets out of actionscript3. Now I'm having a lot of if statements. Can I use another way to make my code more clean? Ivibot is a piece of hardware my school provided. LedBlink is a runnable class …

Member Avatar for JamesCherrill
0
508
Member Avatar for arshi9464

I am working on a project that has 2 persons. The first person acts as a receptionist and the 2nd as the boss. Whenever there is someone to meet the boss, i want the request should directly go onto boss's system WITHOUT THE USE OF ANY database. What could be …

0
75
Member Avatar for jeffrey o

This is the server code for the udp server/client program . There are no errors except when you run the program the ff error occurs: [COLOR="Red"]Exception in thread "main" java.lang.NullPointerException at udptry2.UDPServerbackup2.main(UDPServerbackup2.java:44) Java Result: 1[/COLOR] the client side works how it should just this part of the program [CODE] package …

Member Avatar for parry_kulk
0
531
Member Avatar for niranga

Hi, I am working on a project which requires to update a JEditorPane or JTextField simultaneously by multiple clients. It is something like this. [B][1]. There are several users( i.e a group) with the same application which contains a JEditorPane. [2]. There is a group leader for a group( note: …

Member Avatar for JamesCherrill
0
279
Member Avatar for jeffrey o

This is a simple server/client program. What i'm trying to do is let the server send a message to the client, the client should receive this message and print this message on screen. When i run the program the server prints "Server start" like its supposed to but nothing happens …

Member Avatar for sj5536
0
483
Member Avatar for asa88

Ok, so my task is to Write a simple TCP client that fetches pages from web servers.The client should be invoked with the command (for example) >> webclient [url]www.yahoo.com/[/url] >> webclient [url]www.msstate.edu/academics/[/url] • The client should get the response from the HTTP server and print it on the screen. Here …

Member Avatar for nezachem
0
725

The End.