169 Topics

Member Avatar for
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
121
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
597
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
126
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
169
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
123
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
196
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
458
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
195
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
859
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
166
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
540
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
4K
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
110
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
92
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
148
Member Avatar for omarelmasry

I found a code on several websites for a UDP client and server ... when I run the code of both the client and the server on one computer, it works normally ... but one I work on two computers (one server and the other client), the sever becomes 'Not …

Member Avatar for omarelmasry
0
237
Member Avatar for widapol

Hi all, I'm learning socket programming in Unix. My jobs is sending some frames over TCP/IP Client-Server model, ex Hello, Ack, Bye packets. Each frames have a ID field, which helps we know which packet the server/client received. For example, 1 for Hello, 2 for Ack and 3 for Bye. …

Member Avatar for widapol
0
621
Member Avatar for DeveloperX

OK, I've fashioned a UDP server situation by creating a socket and then using its Bind method to bind it to an endpoint. This application handles multiple incoming requests, and maintains state for each request based on the remote endpoint's ip address and port number. All of these, obviously, come …

0
106
Member Avatar for _neo_

How can I get results from exec()? Any suggestions appreciated!!! [CODE] #!/usr/bin/python import socket sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) host = socket.gethostname() port = 1234 sock.bind((host,port)) while True: cmd, addr = sock.recvfrom(1024) if len(cmd) > 0: print("Received ", cmd, " command from ", addr) exec(cmd) # here how I can get …

Member Avatar for _neo_
0
4K
Member Avatar for bnickerson

Hi, My webserver code is trying to send an image file over a TCP connection. However, the send() function is returning a -1 value with the error: Connection Reset by peer. I am using a web-browser to access the server so my guess is that the server is somehow sending …

Member Avatar for abhimanipal
0
967
Member Avatar for mariner92689

Hey everyone, I am developing code to accept TCP communcations from one computer to another. Basically from this forum, all I need is the ability to send a data string to the other computer. here is the code I have to do so. they both are the same application, but …

0
122
Member Avatar for lai2van

HI, I am very new to C# socket. I have tried several very simple code, but all of them lead to same error message: System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it 127.0.0.1:7 at System.Net.Sockets.TcpClient..ctor(String hostname, Int32 port) at MainClass.Main(String[] args) in C:\ConsoleApplication1\Program.cs:line 14 Below …

Member Avatar for Ketsuekiame
0
557
Member Avatar for newworldcoder

I am very new to development and have been sinking my teeth into C#. I have an application that was written in C++ which is out of my depth, and I was wondering if someone could explain how I would recreate this in c#. The application sends message to linux …

Member Avatar for sundip
0
359
Member Avatar for P00dle

I have a client and a server - the client sends the server a message, and depending on what message is sent, the server will perform an action and then reply to the client. Most of the actions that I have implemented are working. I need help with one of …

Member Avatar for P00dle
0
886
Member Avatar for phummon

Hi everyone, I have a "This should be simple!" kind of problem. I need to do a little socket programming on a SunOS machine. I went back to an old school assignment I did years ago, cut-n-pasted that code, intending to basically cannibalize it for the program I need to …

Member Avatar for phummon
0
276
Member Avatar for Kami3
Member Avatar for chan_lemo
0
260
Member Avatar for svr2009wwe

Hi; I am making one small application which can store data to my online mysql server. But with c++ win32 how can I do it? Please help me.

Member Avatar for tesuji
0
227
Member Avatar for P00dle
Member Avatar for Kalphiter

I am having trouble operating this code.[CODE]<?php ob_end_flush(); ob_implicit_flush(true); set_time_limit(0); function consoleEcho($msg, $DontShowDate = 0) { if(!$DontShowDate) $date = "[". date('m/d H:i:s'). "] "; $msg = $date . $msg; print($msg ."\n"); } class client { public $sock; public $ipaddr; public $chatServer; public $uid; function sendMessage($msg) { socket_write($client[$i]->sock, $msg . chr(0)); …

Member Avatar for Kalphiter
0
640

The End.