470 Topics

Member Avatar for
Member Avatar for missil9

Hello, I am currently trying to use boost asio for IPC. I ran into 2 strange issues: 1) when using the acceptor class, when I bring my process up, I get the error 'Already open' when trying to listen. The port I am trying to bind to is definitely not …

Member Avatar for missil9
0
777
Member Avatar for ezra.kim.98

import java.io.*; import java.net.*; import java.util.*; public class UselessHTTPServer04 { public static void main(String args[]) throws Exception { int port = Integer.parseInt(args[0]); ServerSocket serverSock=new ServerSocket(port); while(true) { Socket conn = serverSock.accept(); Scanner scanin = new Scanner(conn.getInputStream()); String line=null; int nlines=0; while (true) { line = scanin.nextLine(); if(line.length()==0) break; nlines = …

Member Avatar for ObSys
0
314
Member Avatar for karthik_ppts

Hi Frendz, I need to integrate collabrative editor in my application as code editor with socket programming. Kindly suggest me your thoughts.

Member Avatar for chrishea
0
110
Member Avatar for D33wakar
0
349
Member Avatar for cool_zephyr

i have a simple note and images storing java program that stores data into the server..i'm confused about what to use for building the server..should the server be built using sockets?? or which listens for http requests (the client sends json data)?? could anyone please tell me which one would …

Member Avatar for cool_zephyr
1
299
Member Avatar for D33wakar

This is a simple echo server that I've written while learning sockets programming. Compile the server and run it. You can connect to it using telnet like this: telnet localhost 1337 Disconnect the client by typing "/quit" without quotes.

0
390
Member Avatar for mihir.driftking

Hi! Can anybody tell me about Socket Programming? I want to develop a Live Chat WebApp. Thanks in advance.

Member Avatar for ryantroop
0
79
Member Avatar for johnson_2

I am new to socket programming and I am trying to establish a connection between my client and server and if it's successful the user can 1) -Input message, the message will be send to the server -the server will send a "I got your msg" back to the client. …

Member Avatar for johnson_2
0
612
Member Avatar for KhubaibQaiser

I am making a programe based on socket programing in which client can download one of the listed books from server. I have come up with this code but the problems with it are: 1) It doesnt downloads pdf file greater than 1MB. 2) It allows client to download 1 …

Member Avatar for JamesCherrill
0
308
Member Avatar for WildBamaBoy

I'm trying to send data back and forth between two computers using a Socket (TCP). The data is in the form of serialized Packet objects. At an early point in the application, it must send 25 or so Packets of the same type to the other side. See Case 1 …

Member Avatar for Ketsuekiame
0
543
Member Avatar for Subomi

Please, I am trying to build a chat program in python i have built a chat client program and a server program, I want to ask someone told me that I don't need to build a server all i need to do is connect a db server directly and the …

0
166
Member Avatar for darkofpain

hi friends, To use the built-in web server to improve the infrastructure of the project that I do have some questions, but would like to get suggestions on these issues. 1 I want to accept and process thousands of instant connection 2 I want to do this with a simple …

0
80
Member Avatar for beanboy

hi,.... i am trying to develop a one-to-one [B]chat application[/B] as a part my j2ee web app (jsp and servlets used) ,... help me with this. what els should i learn in addition to socket programming? which architecture should i follow? how many days wil it take for an avaerage …

Member Avatar for JamesCherrill
0
201
Member Avatar for intes2010

Is it possible to make a web request using sockets? I am still studying about socket programming in VB.net and i wanted to upgrade my web request code using sockets. Here is my web request code: Dim cweb As String = "http://www.samplewebsite.com/" Dim POST As String = "sample post data" …

Member Avatar for intes2010
0
452
Member Avatar for ktsangop

Hello! I would like some help with a piece of java code that i'm having problem. I have to make simultaneous tcp socket connections every x seconds to multiple machines, in order to get something like a status update packet. I use a Callable thread class, which creates a future …

Member Avatar for ktsangop
0
524
Member Avatar for sankubha
Member Avatar for JamesCherrill
0
397
Member Avatar for Vaspar

Hello, I have made android application which provides remote desktop administration, I used port 5556 and socket programming TCP. I have to forward this port from router on every computer is there any other way so I can use some open port to communication with android device?? Like TeamViewer doesn't …

0
171
Member Avatar for sankubha

I have java tcp socket programming...... In that i need to send a file from client to server .... at the same time i need to chat with that client ...... by what way i can do this ...

Member Avatar for kapildeven89
0
180
Member Avatar for rom.

Hi there, I need a simple socket server which will echo a client message to all connected clients. I've found this easy py script below, but it only echos the string to the client that sent the message. Any way to mod this so that it will send the message …

Member Avatar for silver.moon.37819
0
2K
Member Avatar for lakshmia

i would like to know the connection between socket and webservice,ws replace sockets?or can i embed cocket programing in ws?

Member Avatar for jwenting
0
120
Member Avatar for ariarman

hello i have a app that careated by C# i want connect it with sockets to sql server 2008 database how can connect it?

Member Avatar for ddanbe
0
32
Member Avatar for trisha mehta

hello, i have to write a java code using socket programming to transfer all the files from one server to another server keeping the size of the files intact (i.e create a backup of the files in another server). i am new to socket programming. so i would really appreciate …

Member Avatar for trisha mehta
0
5K
Member Avatar for Jasonfran

Hello, I am making a Java IRC bot and it all works fine. I connect via a socket and there is a while loop that will output whatever comes through the IRC. But, I also want to accept console input while the program is running. So far I can only …

Member Avatar for stultuske
0
199
Member Avatar for ferizhandi

i want to write a sever application.my sever have some service to client. some of the answer of my server is long(transfer file) and some of them is short(list of online client). when server transferring file to a client , other client request to get online client list. i want …

Member Avatar for rubberman
0
208
Member Avatar for aravind326

Hi, I'll quickly explain what i am trying to do before telling the problem i am facing. **Requirement:** 1. Store the contents of a file into an object. 2. Send the object through HTTP socket to another client server. 3. Have the server fetch the file contents from the object. …

Member Avatar for JamesCherrill
0
216
Member Avatar for srivardhanms

Hi, I have two threads A and B. Thread A prints only odd numbers. Thread B prints only even number. I want to synchronize it in such a way that on the screen I get continues numbers. How can I do that? I was thinking of using sockets. Thread A …

Member Avatar for Yerbantherack
0
271
Member Avatar for Big Tunda

So a few months ago I took my heatsink off, and I noticed that no booting would take place; not even BIOS. Eventually, after continuous and repetitive power ons and offs, it would occasionally work again. I then removed the heatsink again, and the CPU from the socket to inspect …

Member Avatar for caperjack
-1
1K
Member Avatar for PreethiGowri

My TCP/IP server socket is not accepting connections from other systems. When i try to send data from the client to server within the same system i see them working fine, Here is what i get by printing the stacktraces - Waiting for client on port 50000... java.net.SocketTimeoutException: Accept timed …

Member Avatar for JamesCherrill
0
1K
Member Avatar for Ondrej.Behulek

Hello, I have a course that is Operational Systems.. My lecturer doesnt explain so much and after He say, You must solve this problem, because u r a programmer.. I have such a problem with linux programming. I put my code here, He wants, I must allow multi-client to server. …

0
245
Member Avatar for HadoukenGr

Hi, i am trying to make a server client application using sockets in C. Server and client compile just fine but they dont seem to connect with each other and i don't understand why (i just started learning about sockets). My OS is SunOs 5.10. This is my server code …

Member Avatar for Mouche
0
260
Member Avatar for theaamalia

Hello, *We are very much begginers at programming in general, and it would be great if you could keep that in mind when helping us!* Could someone please explain just what a **socket** is? We are working on a program which will solve a 3D puzzle, handed to us by …

0
150
Member Avatar for alavolacoder

I have completed a chat messenger with java socket programming. It's run on localhost, so clients can locate it. If i want to run the server side part of it on a web server, then what i should do? how could the client programs will find the ip and connect …

Member Avatar for softswing
0
177
Member Avatar for ms061210

Hello guys, I need some advice/opinions. We are task to create a game in socket programming. We can choose from Java, C, c+, shelland php. Which language is the best to create socket programming for beginners. ? We have a litte knowledge with the given languages, but we don't have …

Member Avatar for ms061210
0
189
Member Avatar for SamJo22

I'm trying to write a web server but with the code I have but I'm getting the GET/ht.html can't be opened. The html document (ht.html) is supposed to be opened in the browser. What can be added or changed so it'll work properly? The code I have is: #include <sys/types.h> …

Member Avatar for Banfa
0
332
Member Avatar for Fredszky

So i'm trying to make multiple clients logon to a server through filesockets, and perform simple commands like ls -l, ls, mkdir. I've managed to make one client recieve output of ls -l command, sometimes, its buggy. Now i've been sitting for days trying to figure out how to fork() …

Member Avatar for Fredszky
0
6K
Member Avatar for SamJo22

I'm trying to write a web server but with the code I have I'm getting 'open failed'. The html document (ht.html) which is supposed to be opened in the browser. It seems as though the code I have is not opening the file received through the socket hence it's saying …

0
187
Member Avatar for Sandy20

I need to send multiple request (command) to server at port 55005. My first request get process successfully & I received out put also. But for second request it gives error (WSAESHUTDOWN - Error 10058). After first requets I call shutdown(ConnectSocket, SD_SEND); Then only server process the first request & …

Member Avatar for Sandy20
0
839
Member Avatar for desup

Hi, I need just simple help. Could you just give me a tip for some good TCP server/client library for Csharp? It should be easy to use, and can handle big data size. Because I was using a Netcomm library, and while sending Image bytes, It has god frozen. Thanks …

0
168
Member Avatar for Fredszky

Firstly, i'm really new to all this bash/unix/c stuff so i will probably get some words meanings wrong here, but anyway: Im trying to make a client pass simple shell commands to the server, which executes them. They communicate locally on the same machine through a socket. I can make …

Member Avatar for nmaillet
0
235
Member Avatar for communism

Hi I'm creating a socket server in Linux using pthreads. I was just wondering, how does the server send specific messages to its clients (for instance, a PM) if each is in its own standalone thread?

Member Avatar for Lucaci Andrew
0
277
Member Avatar for IcyFire

I need to write a program (using Dev-C++) which can count the number of hyperlinks of a given web page. The main objective is to practice socket programming and try to use HTTP protocol. I am not sure exactly how to go about doing this. Can anyone help me figure …

Member Avatar for IcyFire
0
271
Member Avatar for StinaBremm

For my networking class we have to do an assignment using python to code a client and server that will connect to each other and the client will send these messages: 0 - Response This message is a response to a previous request 1 - Echo Request This is a …

0
156
Member Avatar for nitin1

Can you please give me hints or can you teach me how can i convert my simple client server program(in which only client can send any number of messages it want to server) to chat server client program ? I am doing this by trivial way, but still only server …

Member Avatar for nitin1
0
2K
Member Avatar for timetraveller1992

I'm new to network programming. And I skimmed a few pages of beej programming guide and found some useful info but couldn't clear one doubt. We use bind to associate a sockaddr_in structure with the socket descriptor so that the kernel can send data to the network adapter and thereby …

Member Avatar for timetraveller1992
0
148
Member Avatar for alaa sam

hi everyone well I'm learning network programming currently , I've written a day time client and server but when I run the client it gives me a connection error . Here is my client code #include<sys/socket.h> #include<sys/types.h> #include<stdio.h> #include<netinet/in.h> #include<netdb.h> int main(int argc ,char *argv[]) { int sockfd, n; char …

Member Avatar for alaa sam
0
102
Member Avatar for chris007

Hi guys. I have a problem.. i am trying to transfer files from one computer to an other(yes i did port forwarding)..the thing is that if i use 1024-1(buffer) and 1024-1(buffer) in both programs it will NOT transfer any file..it will just create a file with 0kb. size.. So if …

Member Avatar for chris007
0
1K
Member Avatar for jww1232002

I'm required to write a packet sniffer in the C programming language and Identify the Packet as IP, ARP, or Broadcast and count how many packets of each. I'm able to get IP packets identified and counted, but don't seem to be seeing any ARP or Broadcasts correctly or count …

Member Avatar for L7Sqr
0
465
Member Avatar for barfi.anana

i am trying to make a program where i have a server with multiple clients, where a client sends a message to the server and when the server replies to it, the server broadcasts the reply to all the clients. the code has some error and is not working. i …

Member Avatar for np complete
0
3K
Member Avatar for niyasc

I have made a simple socket program so that client can connect to server by specifying ip of system in which server is running. And in server we can type characters which will be received by client and client will store it in a file. I want to clear some …

Member Avatar for np complete
0
5K
Member Avatar for venividivici

Hi, my daughter is struggling a bit with maths and logic and I was thinking of doing some programming with her hoping that a different approach to the field might help a bit. I've had some look at Java syntax and I think I should be able to write some …

Member Avatar for JamesCherrill
0
163

The End.