470 Topics

Member Avatar for
Member Avatar for andisheh1362

i have 2 program one of them in C# and the other one in visual c++. i use Socket programing in 2 of them and i want to connect them. the program in C# is Client and the program in c is server. when i connet client to server, conect …

Member Avatar for jerry32uk
0
149
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
239
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
633
Member Avatar for kei1412

[I]:icon_question: WE ARE GIVEN A TASK TO CREATE A SOFTWARE THAT CAN SHARE FILES BETWEEN TWO COMPUTERS WITHOUT USING LAN (INTERNET CONNECTION) BUT THE PRESENCE OF HARDWARE DEVICES CAN BE USED LIKE CABLE, RS232, USB TO USB OR CAN BE BLUETOOTH TO BLUETOOTH FILE SHARING. WE SEARCHED ABOUT FILE SHARING …

Member Avatar for pestengadik
0
148
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
109
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
5K
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
985
Member Avatar for mns_2010

Here is a client code for socket programming: #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <errno.h> #include <string.h> #include <netdb.h> #include <sys/types.h> #include <netinet/in.h> #include <sys/socket.h> #include <arpa/inet.h> #define PORT "3490" // the port client will be connecting to #define MAXDATASIZE 100 // max number of bytes we can get …

Member Avatar for mns_2010
0
163
Member Avatar for johndoe444

I was wondering how we can build a remote application where the user interface created using windows form will be running at the client side and the application logic will be running in server side. Sort of like web application but the user interface would be running in stand alone …

0
72
Member Avatar for ultimatebuster

I currently have the budget to buy an intermediate to advanced python. The books price has to be below $50 (Canada), if possible, unless it's a really good book. Preferably there should be GUI programming in the book (not TK or QT, GTK or other toolsets preferred). Network programming (Socket) …

Member Avatar for Beat_Slayer
0
168
Member Avatar for DARK_BYTE

Hi I successfully wrote a program that keeps sending data from client to server and from server back to client where the client prints the data. But now I'm trying to write one whereby the user enter numbers at the client and they are sent to the server whereby they …

Member Avatar for JamesCherrill
0
103
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
126
Member Avatar for sksingh73

I am writing a client-server program in c++ in linux. I want a functionality in my server that when server is waiting for some response from client, it should not wait indefinitely. But if no response is received say within 30 secs from client, it should disconnect the client. Is …

Member Avatar for vijayan121
0
92
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
587
Member Avatar for vivekvivek2001

Hey guys, I'm writing an app in winform for tic-tac-toe. I decided to run it on two separate machines connected by LAN. I went through codeproject's socket programming, it gave me a direction but I'm still a little shaken up. I'm a noob when it comes to programming, so please …

0
30
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
364
Member Avatar for bbman

Hi folks, I am a beginner in Socket Programming. I am trying to do some simple stuff but had a basic query. I would like to implement something like wget in C top of a TCP socket (i.e., without using any HTTP libraries). Just provide a URL (Example-- $wget [url]www.foo.com/bar.pdf[/url]) …

Member Avatar for Jamesbch
0
104
Member Avatar for van_tomiko

I'm planning to stream my usb tv tuner via specific protocol (ex: RTMP) to the media server (ex: Red5) that possible to control its channel from client (ex: flash application). Is there any ideas how do I get it working out? another protocol would be okay (RTMP, RTP, RTSP, or …

0
66
Member Avatar for darkocean

Hello Everybody, My application listen TCP/IP port which is 6000 and working correctly but my client can not be process at same time so I want to use Asynchronous Socket to all clients work at same time. I found an best sample codes on google but it getting package information …

0
72
Member Avatar for mjguingab

My team is currently working on a webchat project. But we have very limited knowledge on creating chat programs. The requirements are the following.. 1. The remote client can access us via web and chat with us. 2. Our office will answer their inquiries using client-side windows form-type of app. …

0
79
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
896
Member Avatar for Rajnesh

start Server first start Client by passing the ipaddress of the server eg; java Client 10.0.1.15 if an error pops up change the port in both Client and Server programs

Member Avatar for jt86442
0
3K
Member Avatar for Rajnesh

I was creating a chat application in Java Swing/Socket Programming. The same when I created in non GUI app. it worked [url]http://www.daniweb.com/code/snippet448.html [/url]. But in GUI, they can't connect now. I have tried it thru many ways but still m getting errors for connection. Can anyone can help me...... /********************* …

Member Avatar for anthonydonx
0
260
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
279
Member Avatar for sitajaf

Hello, am new to the real programming but i have very much interest. As a first real java project am trying to develop a P2P network application which can be used for chatting, but the problem is: Should it load as a server.and if so how do i get it …

Member Avatar for Stefano Mtangoo
0
180
Member Avatar for Kami3
Member Avatar for chan_lemo
0
268
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
257
Member Avatar for ritasha

Hello everyone, Am developing a C# window form application where it will listen to when someone clicks on a link(for example, "chat now") on the website(in PHP). I've seen various examples on socket programming but not what I really need. More details: - C# sharp application with a listener(listens to …

Member Avatar for ritasha
0
95
Member Avatar for flipboi15

hey guys, my problem is that my download speeds have gone down, and I mean noticeably down. i ran the speedtest and my speed was was not even half of what my ISP average is. i'm not sure if its my computer giving out on me since it is about …

Member Avatar for esfwff
0
506
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
644
Member Avatar for DrApe1

For my Programming class I have to write a program to get the Date and time from a Daytime protocol server. If you don't know, the format for the Daytime protocol is as follows: [code]JJJJJ YR-MO-DA HH:MM:SS TT L H msADV UTC(NIST) *[/code] YR being the last two digits of …

Member Avatar for aspire1
0
131
Member Avatar for vani.golakoti
Member Avatar for jwenting
0
67
Member Avatar for sandorlev

Hello! I'm planning to make an online program, actually it would only be a login system with GUI and a chat window after login. The client program would recieve some data from the server (like names, ages, etc). I don't want to use C++ for sockets, I want to use …

Member Avatar for dusktreader
0
244
Member Avatar for pce.trial@gmail
Member Avatar for kvprajapati
0
33
Member Avatar for musthafa.aj

hi ! i have created listening sockets at two different machine... then these two sockets need to connect a central server socket to exchange the information...the scenario like below.. socket1 <---->central socket<------->socket2 socket1 sends data to 'central socket' and this 'central socket' sends socket1's data to socket2 and vice verse... …

0
56
Member Avatar for reza.adinata

Hi All, I am new in programming, and currently learning from some samples. From a[URL="http://www.c-sharpcorner.com/uploadfile/sthangaraju/tcpclientserverst11182005014316am/tcpclientserverst.aspx"] page[/URL], I tried to implement a TCP client server with the following page in WPF (visual studio 2008) [CODE]using System; using System.Text; using System.Net; using System.Net.Sockets; public class serv { public static void Main() { …

Member Avatar for reza.adinata
0
469
Member Avatar for fellixombc

Alright, so, I decided to write an IRC Bot in C++ to get used to socket programming. Everything went fine of course, but I have one bug: when the server sends me a PRIVMSG (a message sent by a user to the server, then comes to me) it prints a …

Member Avatar for fellixombc
0
264
Member Avatar for asm2hex

Hello, As of right now I'm in a hard spot. You see at this moment, I've been programming both my client and server. And everything was working very well, until I realized something. The fact that in my client I have multiple threads running and sending data to my server …

Member Avatar for gerard4143
0
83
Member Avatar for AcidG3rm5

Hi all, I have created a UDP program, client and server. What i'm trying to do is, hash a string, save the hasded code and the message into a .txt file and send it over to the server. I have created the UDP program, MD5 hash codes and writing the …

Member Avatar for moutanna
0
3K
Member Avatar for mahe4us

Dear All, Sorry for my frequent questions in this forum. I have came here with a lot of questions. I need help in socket programming in php. For example, Lets consider I have a ip number and port number. Using this ip and port values i want to send a …

Member Avatar for BzzBee
0
183
Member Avatar for lionaneesh

Sir/Maam, I am a newbie programmer in C and learning C since 6 months and am looking forward to learn Socket programming in C . I have some knowledge about TCP/IP and OSI model. Please suggest me some simple links and ebooks . Thanks.

Member Avatar for jephthah
0
147
Member Avatar for fusi0n423

So I have to connect to a server on a specific port but all I have to identify the server is its name, e.g. "students.ce.sinclair.edu" in a char*. How can I get the ip address to assign to a sockaddr_in? [CODE]struct sockaddr_in server; memset($server, 0, sizeof(server)); server.sin_family = AF_INET; //server.sin_addr.s_addr …

Member Avatar for abhimanipal
0
164
Member Avatar for Fernand0

Hey, before everything, sorry about my english, i will do my best I'm really new at this, i just want to know where i should start learning about security, control of ports, control the sockets already initialized for other program, viruses, spywares, hack, nukes, etc.. I'm just asking for sources(i …

0
107
Member Avatar for hkBattousai

A most basic TCT connection is established with the code below: [CODE]// Initialization IPEndPoint m_IpEndPoint = new IPEndPoint(IPAddress.Parse("127.0.0.71"), 5000); Socket m_Socket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp); NetworkStream m_Stream = new NetworkStream(m_Socket); // Read/write operations m_Stream.Write(System.Text.Encoding.ASCII.GetBytes("Hello world!"), 0, 12); byte[] read_buffer = new byte[4096]; m_Stream.Read(read_buffer, 0, 4096); // Closing open resources …

Member Avatar for mcriscolo
0
349
Member Avatar for WeberGer

I need a good book to learn CAsyncSocket and Csocket. I want to explain in greater detail the functions and the author is an expert in the field. What do you recommend? thanks

Member Avatar for WeberGer
0
152
Member Avatar for moshe12007

hi i want to connect to my facebook with perl i just start now to programming in perl before perl i programming in C. i see several codes but all the codes not work!!! i want to connect to my facebook and to my msn messanger. very important that i …

0
57
Member Avatar for group256

Hi everyone, I'm writing a code to get local ip address and send it to a server. I'm doing [B]socket programming[/B] and I'm trying to get Ip address of my machine, and send it to socket server. In other words, Let's say my ip address (which is the client), is …

0
75
Member Avatar for ckjie

Hello all. I am doing a chat server project v socket programming. I am doing it with visuakl studio 2008, C sharp and i build it with a console application project. Below are my codes and the errors i meet. can any1 help me on how to solve these errors? …

Member Avatar for Geekitygeek
0
245
Member Avatar for en12ic0

Hi, I'm trying to create a simple distributed system model in C where a central controller regulates the communication between several machines. The controller's job is firstly spawning client process in several hosts. In my understanding to do this you needs to have a connection with the target host but …

Member Avatar for jephthah
0
87

The End.