470 Topics
![]() | |
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 ( … | |
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 … | |
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 … | |
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 … | |
![]() | 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); … |
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>"; } … | |
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 … | |
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 … | |
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 … | |
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 … ![]() | |
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 … | |
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 … | |
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 … | |
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, … | |
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 … | |
i want to implement multicast using python can anyone tell me how can i get information on socket programming in python? | |
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??? | |
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 … | |
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" | |
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 … | |
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: … | |
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 … | |
what is the use of INADDR_ANY in socket programming? | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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). | |
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. … | |
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 … | |
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 … | |
Hi, Myself need code for file transfer among three different machines using socket programming in java. | |
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, … | |
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 … | |
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' … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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’: … | |
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 ? | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
How can I send XML file from a server to a client using socket programming? |
The End.