470 Topics
![]() | |
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 … | |
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 … | |
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. … | |
[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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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) … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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]) … | |
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 … | |
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 … | |
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. … | |
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 … | |
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 | |
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...... /********************* … | |
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 … | |
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 … | |
Hello, How can 2 connected clients with one server can communicate each other in c#.. ???? | |
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. | |
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 … | |
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 … | |
Is it possible to have a client/server service that doesn't use sockets? | |
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)); … | |
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 … | |
How to establish the connection between two hosts using TCP socket programming in java. | |
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 … | |
Is there any ASP.NET code to call remote machine through its IP Address?? | |
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... … | |
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() { … | |
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 … | |
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 … | |
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 … | |
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 … | |
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. | |
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 … | |
![]() | 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 … |
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 … | |
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 | |
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 … | |
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 … | |
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? … | |
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 … |
The End.