470 Topics

Member Avatar for
Member Avatar for BobFX

Hi, I have a stream server application written in C, that I need to incorporate in a GUI C++ managed new program, but I am having trouble finding the equivalent of the C sockets function calls. The C apps initialize this way: [code] /* * Init socket */ if ( …

Member Avatar for BobFX
0
475
Member Avatar for ahmed3415

Hi there, I need help with my assignment it has to do with Client-server programming and the following is what i have been asked to do for this assignment. So far i have the server reading from the file and the client is able to read the contents of the …

0
89
Member Avatar for yancouto

Hi everyone, I'm trying to create a program that you can use to communicate to other people with the same program. It connects to a Server program that gets your message an send it to everyone. I found 2 problems that I haven't been able to solve. The first one …

Member Avatar for yancouto
0
798
Member Avatar for Hazardous_Byte

Hey everyone! It has been a very long time since I posted, but I have a new question for you guys. So, I made a sort of "remote-desktop" program that allows me to move the mouse from another computer. However, the mouse will move to where I want it but …

0
163
Member Avatar for hohoho89

Hi, I was wondering how to make client connect to multiple servers. I decided to use select for this but I don't see how it should work well like in the server. Pseudocode: void connect_to_server(char argv[]) { if ((sock = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP)) == ERROR) { perror("socket problem: "); exit(1); …

Member Avatar for rubberman
0
141
Member Avatar for karthik_ppts

Hi Frendz, I need to create one socket programming to read data from port of my server using php and this is my code <?php $host = "192.168.1.5"; $port = 4321; set_time_limit(0); echo "Start to Create socket....<br>"; $socket = socket_create(AF_INET, SOCK_STREAM, SOL_TCP) or die("create():".socket_strerror(socket_last_error($socket))); if($socket) { echo "Socket Created!<br>"; } …

0
72
Member Avatar for narlapavan

first i am creating socket, with that socket descriptor i am sending some no. of bytes through sendto(....) function. At the time of receiving through recvfrom(....) function, my code was hanging if the specified destination address is not available. Suppose if destination is available the it's working correctly... Why this …

Member Avatar for dkalita
0
225
Member Avatar for iammirko

Hi, I am trying to learn winsock programming using online tutorials. This example is from the MSDN library, although modified. I have compiled it and it seems to be working fine for only one request. After handling a single request the server exits. I have read handling multiple request and …

Member Avatar for Ancient Dragon
0
333
Member Avatar for badihi

Hello there, I'm not very professional in socket programming. I open a socket to the client and when connection succeed, I try to send a file. I read the file from the disk buffer by buffer and write this bytes on the NetworkStream object. Client receives this information from NetworkStream …

Member Avatar for badihi
0
91
Member Avatar for lima01

Hello. I want to make a game card that is played by two players who are on different PC's and playing via internet. I am new at network programing(I guess that is called socket programing), so I don't really know from where to start, I have done some digging on …

Member Avatar for dennisschagt
0
318
Member Avatar for Python_nooby

Recently I have been learning about the socket module and how you can create networking applications using it. I was curious if it would be possible using the socket module to either: Set the port as a USB port to trick the computer into thinking a USB is plugged in …

Member Avatar for richieking
0
494
Member Avatar for shinsengumi

Hi everyone! Is there a way/command in C to find a string that is contained in a longer string? I'm currently developing a C program in Windows that sends requests to a machine and gets its response through socket programming. The response is an image in jpeg/jfif format. The whole …

Member Avatar for shinsengumi
0
192
Member Avatar for andreasu

A simple streaming server-client pair with non-blocking user input can easily be coded in Python by using the 'select' module that provides a straightforward interface to the Unix select() system call. For Windows users however this is not an option as the acceptance of three empty sequences in the conventional …

0
594
Member Avatar for Masood_786

Hi All, I am a software developer C/C++, not expert in network programming but did a little bit. I work as s free lancer and have been tasked to implement UDP server (Broadcaster) over internet (Server machine has Static IP assisgned by ISP so reacheable from any part of world, …

Member Avatar for Topi Ojala
0
960
Member Avatar for shinsengumi

Hi, What command/technique is needed in a C program to receive image bytes through socket programming from an HTTP response? I want to develop a program that requests for an image from a server, then upon receiving the bytes comprising the image, it should write these bytes into a newly …

Member Avatar for shinsengumi
0
271
Member Avatar for fsl4faisal

i want to implement multicast using python can anyone tell me how can i get information on socket programming in python?

Member Avatar for woooee
0
166
Member Avatar for jogendar

i want to implement client server communication through wirless network in java,by using Socket,ServerSocket classes can i connect two computers with wireless connection???

Member Avatar for jogendar
0
74
Member Avatar for dav555

I try to transmit an OpenCV IplImage from a Server (Ubuntu x64) to a Client (Win7 x64) The following code works fine if both (Client and Server) are on the same operating system. But when the server is on Ubuntu and the client on Win7 it doesn't work. The image …

Member Avatar for dav555
0
427
Member Avatar for manish250

hello all I am new to socket programming.I have to write a socket client which write hit a url on socket.socket server is already running on other site.can any one please suggest the way Url is as follows "GET /subscription/subservice.aspx?Mobileno=MOBILE&Channel=USSD&planid=13404&clientid=511&requestType=1&SubscriptionMode=USSD&isbill=1&subid=1340&shortcodeid=49 HTTP/1.0\r\n\r\n"

Member Avatar for ~s.o.s~
0
124
Member Avatar for shinsengumi

Hello all. I've previously created a working socket program in C in a 32-bit machine and now I have to transfer it to a 64-bit machine. May I ask if there is anything I have to change in my program to make it work in a 64-bit machine? I did …

Member Avatar for Ancient Dragon
0
609
Member Avatar for l00kit

Hello all, I'm studying socket programming and have trouble when simulate a FTP server (I don't want to use pyftpdlib). The problem is when the client want to list the directory (LIST command) on the server, I do not find a way to send directory contents. here is the code: …

Member Avatar for l00kit
0
254
Member Avatar for Xytheron

Hey all! So my buddies and I have been in the OS programming class and we've gotten ourselves an idea. We get free range to the Unix server for academic purposes and we thought it might be fun to try and write a PTC server so we can chat across …

Member Avatar for Xytheron
0
91
Member Avatar for amir malik
Member Avatar for gregarion

Hey guys , i need some help in understanding this coding. This is a client server code which i got off the internet . The problem i am facing is that when you run the server , the server will continously wait for incoming connections . I would like to …

Member Avatar for djarn
0
146
Member Avatar for rgpii

I have been trying to communicate between my client and server program. I have checked and rechecked the man pages and it seems my syntax is correct. I'm trying to send packets from my client to my server and the server prints out the host name. My server seemed to …

Member Avatar for rgpii
1
1K
Member Avatar for JRADCL9092

Hello, I am trying to create a "stock Price Program" for an assignment that will allow you to type in a stock symbol such as "goog" in the client side and the server side will respond with a price for that stock symbol, this price can either be hard coded …

Member Avatar for JRADCL9092
0
143
Member Avatar for initialise

Hi all, I could really use some help with a multithreaded server/client application that I'm building. I'm first experimenting with basic concepts and then am going to implement the results within a larger application. However, I find myself stuck on a particular issue. Initially, I transfer a file from the …

Member Avatar for initialise
0
175
Member Avatar for noamo48

I know this is a total newb question but I'm a beginner programmer trying to learn how to work with sockets and network programming in general with C# and .Net. I'm working on a tcp echo client and server, two separate apps which I have programmed and run side by …

Member Avatar for noamo48
0
392
Member Avatar for jaffar_ramnad

hi every one,i am a new guy for Mfc Socket programming . tell me ,what are the best books available for Mfc socket programming (Csocket).

Member Avatar for ashishchoure
0
74
Member Avatar for wonder_laptop

Dear All, My boss has asked me to implement a project that includes writing a "mobile code" using java programing language. This code will be transferred on the network of nodes ,going from the source code node to other nodes, and at a point returning to it with certain information. …

0
124
Member Avatar for shinsengumi

Hi all. I'm trying to develop a Winsock program in C. I can already compile the program correctly but I don't get any output when I run it. I don't know how to exactly use the WSAStringToAddressA function so I think it's the root of my problem. I'm using this …

Member Avatar for cool_zephyr
0
200
Member Avatar for shinsengumi

Hello all. Can anyone here help me create a separate function for the socket() API in socket programming? I successfully created one in Linux before but so far I can't do the same in Windows. The Windows version can't successfully connect using the separate socket() function. My primary suspect is …

Member Avatar for shinsengumi
0
481
Member Avatar for viswacse
-1
47
Member Avatar for jalpesh_007

I have implemented RSA using java as shown below. mport java.math.BigInteger; import java.util.Random; class SimpleRSA { public static BigInteger p, q, N, v, k, d; public static void main(String[] args) { // p & q are prime numbers Random myRandom = new Random(0); p = BigInteger.probablePrime(512, myRandom); q = BigInteger.probablePrime(512, …

0
85
Member Avatar for Xeex

Hi, I got a server with several of IP's at. Those IP's I want to create sockets through and afterwards from a client, and afterwards send a socket to a webpage. The problem is that I want to use the IP that the client is calling to create the socket …

Member Avatar for richieking
0
200
Member Avatar for shinsengumi

Hello all. I'm trying to compile a socket program in DevC++ but everytime I do it I get a lot of linker errors like these: [CODE] [Linker error] undefined reference to `WSAStartup@8' [Linker error] undefined reference to `htons@4' [Linker error] undefined reference to `inet_pton' [Linker error] undefined reference to `socket@12' …

Member Avatar for shinsengumi
0
899
Member Avatar for shinsengumi

Hi everyone! I'm transferring my C program that I created from Linux to WindowsXP. I would like to know what I need to download/install in Windows in order to compile and successfully run the program? Also, will I need to change some parts of the source code? I used socket …

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

I created a C program that will make a connection to a website. I can compile it with no errors at all but when I run it, I still can't create a connection to my specified website. The errors that are shown in the terminal are: client: connect: Connection timed …

Member Avatar for group256
0
175
Member Avatar for shinsengumi

Hi everyone! I just want to ask, how do I use socket programming in C to open/go to web sites? I want to create a program that should look like this: the program asks for an integer input from the user and depending on the input number, the program invokes …

Member Avatar for Nick Evan
0
548
Member Avatar for yuri1969

Hi, i have question about accept call interrupting. As you can see I have a loop which is controlled by boolean [B]not_ended[/B]. I set this var to 0 (false) in a separate function. I would like to know how should I [U]manage to interrupt this accept loop properly[/U]. When I …

Member Avatar for yuri1969
0
5K
Member Avatar for The_Result

Hello, I've been teaching myself on how to code with perl. My current project that I am working on is socket programming. I would like to transmit a message from one server to another. When I attempt to execute my client code, the following error displays, "send: Cannot determine peer …

Member Avatar for mitchems
0
113
Member Avatar for thr

Hello i want create gui for aria2c( internet download manager ) with java for doing this aria2c has built in xmlrpc. i use xmlRpc to create gui for aria2c. in aria2c support site there is a example code for python programming language that uses xmlrpc [CODE]>>> import xmlrpclib >>> s …

Member Avatar for leiger
1
630
Member Avatar for herms14

guys, ive copied a code about socket programming just to see how it runs. problem is i cant compile it everytime i compile client.c it shows and error. here is the error [CODE] client.c: In function ‘error’: client.c:9: warning: incompatible implicit declaration of built-in function ‘exit’ client.c: In function ‘main’: …

Member Avatar for getlogesh
0
1K
Member Avatar for widapol

Hi all, I want to send a file to my gmail over socket. Reading a file and writing it to socket is simple but actually I donot know how to implement SMTP over socket. Could anyone tell me how to do it ?

Member Avatar for group256
0
102
Member Avatar for scrape

Hello, I am trying to create an IRC server. The thing is that I dont want this server to run on "localhost", I want to connect this server to other upstream IRC servers. I dont know how to do that. I.E. I want this server to connect to smth.hostname.com on …

Member Avatar for ~s.o.s~
0
151
Member Avatar for Gramotey

Dear DANIWEB community members, I am a newbie with Windoze programming, and I hope you could help me going with my project as I have a really just a technical question: I have a simple GUI with some buttons and text boxes defined in a form .h file, and I …

Member Avatar for Gramotey
0
202
Member Avatar for john22

Hi, I am very new to Perl Scripting. I used Shell scripting before, but very little knowledge of Perl Scripting. I am given at task at my work: Here is info: I need to write a program that will listen to a port which will connect from Telnet. Also, the …

Member Avatar for richieking
0
466
Member Avatar for silversurfer515

Hey guys , I have been asked by my boss to write some c++ code to read from a web page, this is alien to me as I have an electronics background and know nothing about networking. I managed to find a c++ library called urlmon which has a method …

Member Avatar for silversurfer515
0
149
Member Avatar for ixmike88

hello i am still fairly new to network programming and have been reading up on it but can't find any solid examples for what i'm looking for my goal is to make a bot that connects to a server via the battle.net protocol, and part of it involves parsing data …

Member Avatar for ixmike88
0
96
Member Avatar for techie929

The End.