470 Topics

Member Avatar for
Member Avatar for tanya9x

Hello everyone, I have to do programming to make a small, straightforward game operating over a LAN network. I think I should use Visual C++ and MFC libraries from Microsoft, because it's easy to learn and use. Dealing with some network programming concepts such as TCP, UDP and some Socket …

Member Avatar for nats01282
0
281
Member Avatar for ItecKid

Hello, Question regarding the connect function (in Socket), how to specify a specific port? The function only accepts two arguments, the socket and the ip. I have multiple devices on the same ip but different ports that I need to connect to, how to do this in Perl? Thanks.

Member Avatar for Abinila
-1
110
Member Avatar for ckjie

Hi all, I'm new to this community. I am doing a project that I'd have to write a program to connect 2(at least) PCs together. each PC works as a server and at the same time as a client, which each of them can download the file which is shared …

Member Avatar for strmstn
0
185
Member Avatar for nezammca

hi frdz., I am doing my final year MCA as i have to do my project and i have to do remote desktop... Which would need to work like team viewer. i need to connect Remote desktop to internet. if i need to connect to internet then i must know …

Member Avatar for Clawsy
0
121
Member Avatar for tkud

Hey everyone, I want to start learning socket programming. Ay references and advices will be greatly appreciated!!

Member Avatar for Stefano Mtangoo
0
150
Member Avatar for Sobakaa

Hello everybody! I've wrote a very simple echo server, based on a book about LInux socket programming example and it works just fine. My only problem is that i want to use select() function to handle several connections at one time. I've read lots of reference concerning that function and …

Member Avatar for Sobakaa
0
236
Member Avatar for sandorlev

Hello! I started to create my own tiny 'framework' mainly built on the socket and the thread module. I haven't been doing too much thread programming before. My problem is that when I try server.waitForConnections(2), at the second connection, it says [code] Unhandled exception in thread started by Error in …

0
474
Member Avatar for Akirasan

Hello, I'm kind of new to C++ development in linux and I'm trying to make a multiplayer game. I know that it is a bit of complex program to start but I have some background on this type of program from other languages so I guess the most difficult part …

Member Avatar for Fbody
1
192
Member Avatar for hiddenpain

Sorry for the somewhat sloppy programming but it should be understandable. Ok i'm supposed to write a function decide(), its purpose is to first broadcast a User object and then listening for any acknowledgements. If any was received it acts like a client and the one who sent the response …

Member Avatar for verruckt24
0
136
Member Avatar for johnbutt

I am going to do a mail portal(i need to connect to a client server from the user client, the client server should have an SQL database) what should i choose from these three ? can u add reasons please socket programming with c# web service programming with c# or …

Member Avatar for kvprajapati
0
35
Member Avatar for johndoe444

Hi, I have this problem. If the sender sends messages consecutively, like message 1 and message 2 and at the receiver attempt is made to read each message individually, then the receiver gets the both messages as the message 1. Is there any built-in mechanism such that the receiver delivers …

Member Avatar for gerard4143
0
114
Member Avatar for akvino

I have MSCS with extensive Software Engineering education in C++. Professionally - I am linux admin, but itching to get into code development in C++. One thing I never understood - what are the entry level jobs in C++ - what do you need to be able to do, program …

Member Avatar for Ancient Dragon
0
125
Member Avatar for murid

i'm making program to send picture through socket programming. now my program only can send to 1 destination using destination's IP address. i'm trying to develop the program, so my program can sending picture to many destination. with code below, i still cant send to many destination. only the 1st …

Member Avatar for kvprajapati
0
149
Member Avatar for rahul8590

Hello everyone , i am trying to create a multi threaded web server, i did the basic part (socket programming ) successfully . Ref: [URL="http://www.daniweb.com/code/snippet217312.html"]http://www.daniweb.com/code/snippet217312.html[/URL] now , the next step , i am trying to establish it by making it multi thread or repetetive polling for client request (yet to …

0
115
Member Avatar for ivh90

hello all first let me say I am really glad to become a part of this community. I am college student majoring in computer systems engineering(more hardware than software), but i am really interested in interfacing computers with microcontroller based projects. I took programming courses in java , and now …

Member Avatar for vegaseat
0
164
Member Avatar for Progr4mmer

I would like to know how to loop a connection or close an existing connection. heres the code i have to connect [CODE]Imports System.Net.Sockets Public Class Form1 Dim clientSocket As New System.Net.Sockets.TcpClient() Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Try clientSocket.Connect("ServerIp Goes Here", Server port …

Member Avatar for Progr4mmer
0
155
Member Avatar for jsnowden2008

Hi, Im having a problem with some socket programming and im hoping someone here can help me. basically im trying to bind a listener to a port. I have used some source code i obtained from the net, however the code was a few years old and contained the obsolete …

Member Avatar for jsnowden2008
0
188
Member Avatar for erunways

Sockets are one of the most popular means of network communication and they follow client-server architecture. I have created two programs, one to run on a client computer and the other on the server computer. In my program I am showing how using a sockets client program can communicate to …

0
111
Member Avatar for Clawsy

Hello, I built a chat application that uses sockets and TCP/IP protocol. The client is an applet. The problem is I cannot connect the applet client with the desktop server application. [I]If I run the applet inside the applet viewer in NetBeans it works perfectly[/I]. I even tried the applet …

Member Avatar for Phaelax
0
157
Member Avatar for BILL S

I tried swapping a formerly working VA-10 Abit to an Emachine T5026 case, when that mobo proved dead except for the light near the PSU connect. Now, when the Abit was in that eMachine case, I used a Compaq S3000Z switch to test, aligning the power terminals, and the case …

0
118
Member Avatar for TheBeast32

Hi, I installed cygwin recently and wanted to do some network programming with it. Since I have never used unix sockets before, I'm reading Beej's Guide To Network Programming. I took this from section 5.1 and tried to compile it. I get a few errors that I can't figure out …

Member Avatar for developer_borja
0
671
Member Avatar for george_82

Hi all, How to do socket programming in C.I need to control an external device through TCP/IP or UDP/IP so that when I send a query the device should be capable to respond.

Member Avatar for Nick Evan
0
58
Member Avatar for brad82

Hi all, Im new here - so please bear with me ;) Im pretty new to C++, although I have previous experience in C. I created a small socket app that allowed a client to connect via telnet and send some data for it to be assessed. I have recently …

Member Avatar for brad82
0
88
Member Avatar for whimsical1987

Hi, I am new to python programming. I am interested in writing a HTTP proxy using poll or twisted. I know how the tunnel works but I am not sure of starting the code. I need help from experts to complete the programming. As far as I know a tunnel …

0
59
Member Avatar for maddy1985

requirement CSCI690 - Multicast Socket Programming Project [Objective] Develop a multicast client program to work in conjunction with a multicast test stream. [Requirements] The multicast client must be able to join any group/port, that is specified via the command line. E.g., mclisten <multicast group> <port> where multicast group is a …

0
79
Member Avatar for bk_bhupendra

hi , i am doing a project in C#, windows application. i am using sockets for communication between systems. now i am facing an error... its given below.. pls help me to solve this [code]System.Net.Sockets.SocketException was unhandled Message="Only one usage of each socket address (protocol/network address/port) is normally permitted" Source="System" …

Member Avatar for sknake
0
426
Member Avatar for smartdetect

v got a final year proj. which reqs us to build a network monitoring kinda tool initially we are just planning to do a basic boot failure detection of the client m/cs....atleast for this semester....then add better functionalities to it. 1) can anyone suggest how do v go about doin …

Member Avatar for ddbhai
0
170
Member Avatar for chandini.david

Hey!! I am trying to make a 2-player game; where one player plays after the next. I have used socket programming in the code; so that, when the client (player 1) clicks on the window, the co-ordinates are sent to the server (player 2) and vice-versa. (For now, both player …

Member Avatar for chandini.david
0
213
Member Avatar for crazyboy

Hello every one ... I need help to make connection between two PC through socket programming ... in which scenario i want connection is as below ... there are two networks on different places.One network having internet connection of COM1company and through that one connection only other PCs are getting …

Member Avatar for crazyboy
0
142
Member Avatar for akil007

Hello, I am developed application about order management in restaurant with pda. The socket programming is used for it. we try socket programming with two desktop project its done well. but at Pda the socket programming is not performed . Help me how to code socket in pda

Member Avatar for Ramesh S
0
76
Member Avatar for johndoe444

Hi, My knowledge of c++ is limited to basic syntax used in basic programming assignment while I have some years of software development experience (particularly web application) using java. I have not created any thing big in c++ ever. Now coming back to c++ at present, I am confused how …

Member Avatar for johndoe444
0
127
Member Avatar for murid

[B]Sending Parts:[/B] [CODE]For var = i To x Dim PACKET_SIZE As UInt16 = 4096 Dim ByteArray() As Byte ' Data buffer filestream = New FileStream(at(z), FileMode.Open, FileAccess.Read) Reader = New BinaryReader(filestream) Writer = New BinaryWriter(clientSocke.GetStream) ' Get socket's stream 'send size of file Writer.Write(CInt(filestream.Length)) 'Send the file data Do 'read …

0
63
Member Avatar for programmer.code

Hi when I send 1000 byte with socket.send , I always recieve 1000 byte with socket.recieve. I know it shouldn't be true for general but because 1000 bytes is a small amount can we be sure that it will not fragmented? I tested it in visual studio and until 8KB …

Member Avatar for sknake
0
114
Member Avatar for ankur_

what is the time that select func in socket programming waits before continuing. Like till how much time it can receive msg from diffrent clients before proceeding to serve the request. One more question. Can we send 500 messages from 500 diffrent clients at the same time to a server …

Member Avatar for kvprajapati
0
104
Member Avatar for khairilz

i need help on programming networking.. i'm creating a winservice called HeartBeat. this service is to check if the gateway(list of gateway) is alive and able to do certain process( other application) and if it's down after certain tries, it will notified related person(email/sms/voicemail). We a doing terminal application for …

0
140
Member Avatar for ankur1188

i was trying to connect two computers.. i used synchronous server and client with the help of some socket programming.. but whenever i try to connect to the server which is on a remote computer an exception is thrown whereas it works fine if both server and client are on …

Member Avatar for sknake
-1
1K
Member Avatar for topest1

Hello all, I am developing chat application(not applet) in java, I want it to be able to run over internet I have tried it in LAN with Socket programming I found something [URL="http://javaeye.wordpress.com/2008/05/04/clientserver-communication-using-tcp-sockets/"]here[/URL] It is working fine But how can i run it over internet:?: :confused: If i [COLOR="Red"]tcpserver.java[/COLOR](or tcpserver.class) …

Member Avatar for topest1
0
184
Member Avatar for pocku

I've just started started socket programming so there's a few things I'm wondering about: I found a set of socket programming codes here: [URL="http://cs.baylor.edu/~donahoo/practical/CSockets/textcode.html"]http://cs.baylor.edu/~donahoo/practical/CSockets/textcode.html[/URL] And the thing I don't really get is here in TCPEchoClient.c: [CODE]while (totalBytesRcvd < echoStringLen) { /* Receive up to the buffer size (minus 1 to …

Member Avatar for nirveshverma
0
179
Member Avatar for Tvirusx1

Hello I am new to DaniWeb and this is my first Thread. I am currently trying to develop a bot for the Game DarkOrbit. I used WPE Pro and I found out that I could controll the Spaceship by sending specific Packets (I have some Packet codes already). Well heres …

Member Avatar for Tvirusx1
0
171
Member Avatar for drjay1627

can someone please explain to me how read write work in sock programming. my assignment is to run a server and client. the client ask the server "who are you?" and the server replies with the servers name and date and time. i cannot post my whole code here as …

Member Avatar for dkalita
0
242
Member Avatar for Diamonddrake

I recently started messing with tcp socket programming. I hacked up a little instant messaging application that seems to work has some little problems but the world isn't in need of more IM clients. but I wanted to know a good practice for sending large files over tcp sockets. i …

Member Avatar for sknake
0
4K
Member Avatar for shahab.burki

Hi, I am newbie to network programming in C. I want to implement a file transfer program in C on a Linux environment . I am sending the file name to the server and tries to print it on the server. But the server doesn't print it. I think I …

Member Avatar for Dave Sinkula
0
116
Member Avatar for jrkeller27

I am writing a sample chat-like function to learn how to use sockets in unix. I am using gcc. To send between clients of a tcp connection I need to encapsulate a bunch of different data: [code=c] typedef struct { short type; int messageID1; int messageID2; short messageID3; int ipAddr; …

Member Avatar for gerard4143
0
829
Member Avatar for ragsnayak

Hi, I'm a newbie in Perl programming. I have to start/stop the Windows services running on the remote machine. So, I’m writing a script in Perl to accomplish this job. So far, I’ have completed the following tasks. • to access the windows services through Perl in my local machine. …

Member Avatar for mitchems
-1
100
Member Avatar for murid

I create a program that need to received some picture using socket programming, and coding for receiving picture is in background worker. PROBLEM : I need to make progress bar to show how much data I have received. my code still error... Help please... here's my code for received data …

Member Avatar for TomW
0
147
Member Avatar for adcodingmaster

i m making a messenger in linux. a command line application. here is a server and 2 clients.both the clients are connected to the server but not with each other. i want to connect those 2 clients with each other. i m the server. how can i do that? plz …

Member Avatar for dkalita
-1
95
Member Avatar for adi.shoukat

[CODE]while(size!=0) { printf("loop start"); printf("File Size in int: %d \n",size); byte_count = recv(sock,recv_data, 1024,0); recv_data[byte_count] = '\0'; printf("hhahaha %d \n",10); printf("char is:%c \n",recv_data[0]); //fputc(recv_data[0], fpW); size=size-1; printf("loop end"); } fclose(fpW); This is a piece of Client side code .. i am sending data from Server Side but when i receive …

Member Avatar for dkalita
0
268
Member Avatar for herms14

Guys...I badly need your help...I made a Hangman game and the requirement is it mus be a two player game so I need to make use of socket programming. The problem is I don't know what to do next..I do not know how to do the read and write the …

0
61
Member Avatar for murid

1st of all, i'm new in socket programming... I try to received file.txt n show it in a form... I try my code below, but it always fails... it seem like become endless loops... I try to trace it, 1st loop seem ok, but it's not stoping after 1st loop.. …

Member Avatar for murid
0
146
Member Avatar for topest1

Hello, I am beginner in Java we are going to develop a chat application But I don't know how to implement the network connectivity..././../ :confused: I googled, and I came to know something like Socket Programming.... Actually I don't know how the chat application works I want to store the …

0
87

The End.