28 Topics
![]() | |
Hi All, I am looking for a design approach to implement TCP socket server which is going to serve requests based on multiple ports. (1) port1 : dedicated for video streaming (2) port 2: dedicated for audio streaming (3) port 3: dedicated for data streaming. In above scenario do i … | |
I am developing Client-Server application in C++ using Qt framework, but the clients can be android phones and computers(Qt client app) Now i'm having troubles to handle Reception of data on the server side; the server is not receiving data properly. First, I got things working nicely between the server(Qt … | |
Hello All; I want to display logs in the following format as below:- XY,1,1114,ABCDEF,d1744783-0681-4f0c-adee-83277f5e4b85:286,192.168.33.211\n where:- XY is servername. ABCDE:- UserName. I want to display this specific log from the multiple logs of different server with different name. How to do that using threads ?? | |
Hello, I am currently trying to use boost asio for IPC. I ran into 2 strange issues: 1) when using the acceptor class, when I bring my process up, I get the error 'Already open' when trying to listen. The port I am trying to bind to is definitely not … | |
so i created a client server program using tcp that works fine. but now i want to use broadcasting (which uses udp) so i'm changing to change my code but i keep running into problems. when i run my code the error message "ERROR binding: 10047" and that error means … | |
Hi there, I was wondering if anyone could help me, I’m trying to send various packets of data over network via UDP. I’m using the sendto() function in winsock2. I’m trying to send different data types over UDP, for example; I have positional data such as: int time; float LAT; … | |
> this is my udp server code #include<iostream> #include<arpa/inet.h> #include<unistd.h> #include<sys/socket.h> #include<sys/types.h> #include<stdio.h> #include<string.h> #include<stdlib.h> using namespace std; void error( char *msg) { perror(msg); exit(EXIT_FAILURE); } int main() { int sockfd; sockfd = socket(AF_INET,SOCK_DGRAM,0); struct sockaddr_in serv,client; serv.sin_family = AF_INET; serv.sin_port = htons(53000); serv.sin_addr.s_addr = INADDR_ANY; char buffer[256]; socklen_t l … | |
I have this C++ network client program but it has an error. Here is the error: error C2664: 'wsprintfW' : cannot convert parameter 1 from 'char [128]' to 'LPWSTR' Here is the code: // Client program example #define WIN32_LEAN_AND_MEAN #include <winsock2.h> #include <stdlib.h> #include <stdio.h> #include <string.h> #define DEFAULT_PORT 2007 … | |
this is my server code i want to receive more than 1000000 bytes ,so the data should be splited into many packets so i use loop to receive all data ,if i use like this server always wait for client even client sent all data to server ,my messsage is … | |
In a client server program ... generally when the server goes down the client on executing the send command 2 times returns a SIGPIPE signal . I want to know y this happens. The client must recieve sigpipe immediately when it sends a message after the socket connection is broken … | |
Hi all, I'm working on a C++ app that needs to communicate with a server. I was wondering if it would be possible to use Java for the Server, and C++ for the Client. I'm assuming it should work (without the use of JNI) because TCP packets are TCP packets, … | |
I've trawled the internet searchiing for an explaination on how to do this. I'm working on an assignment and we are told to "transmit a whole object to the server". As far as I know, the send function of winsock2 only allows you to send data of type char, so … | |
I would like to write a network quiz game. I would like it to work over a network (using sockets - TCP/UDP), with at least two players. The server will serve the questions. The clients can find the server application using an IP address. Could anyone give me an idea … | |
hi i need to write a program that connects to a device through Ethernet over the UDP protocal and get the data sent by the device. I tried using the .NET udp client methods but was unsuccessful. Can you guys help...this is my code.... [CODE] static void Main(string[] args) { … | |
I am trying to send a udp query, the query works and I recieve -some- data back. However the string I recieve back is not complete, its cut short. If I send the same UDP query using netcat I get the full response. Must I increase the size of the … | |
I'm trying to connect to devices on a network through TCP , one is a wireless device with limited capabilities (a 802.11g transceiver with an incorporated SoC ) or the client and the other is a normal pc , the server . As the client is meant to be in … | |
Hello all, i have a small problem with my application and i am stuck now.... i have data coming on a particular port and i need to trasnsfer that particular data that i received to another port on a different machine... The data that i receive is over udp and … | |
Hello everyone, I have to do programming to make a small, straightforward game operating over a LAN network. I think I should use Visual C++ and MFC libraries from Microsoft, because it's easy to learn and use. Dealing with some network programming concepts such as TCP, UDP and some Socket … | |
Hi, I've got two programs (client and server) using sockets. The program are working fine if I set the client IP to local host (127.0.0.1) or the LAN IP (192.168.0.3), but can't connect if the IP is set to external Internet IP (92.24.xxx.xxx). Anyone have an ideea, please? Thanks! | |
Hey guys, I came here to ask for some help on making a DoS(Denial of Service) program, Not MS-DOS :p. My problem is I don't know what i would use to make it function. I don't know and can't find the functions I would use to make it. I was … | |
Hie all I am trying to make my game playabel over a network, Client/Server. I have managed to design the game, i have also managed to create a chat program whereby all clients connect to the server and messeges sent are all received and updated by the server to all … | |
hello friends, as a semester project i have to make a voice chat application. But i am confused how to proceed.Can somebody provide me some help and guide me regarding capturing sound from microphone , after capturing which compressiong methods to use , then which tcp/udp to send packets ? … | |
From Beej's Guide to Network Programming: [QUOTE]How can I set a custom timeout value for a TCP or UDP socket? It depends on your system. You might search the net for SO_RCVTIMEO and SO_SNDTIMEO (for use with setsockopt()) to see if your system supports such functionality. The Linux man page … | |
Ive recently spent a lot of time using BSD sockets in Linux to do socket programming. I have written this howto with samples to show a person how to send a message buffer. Feel free to comment on this and correct anything that you think i have said wrong or … | |
HI, I've written a big program which uses multiple serial ports and udp & tcp sockets. Everything works functionally as expected, but the serial port writes block until the data has been sent (reading is fine as I check the number of bytes available before trying to read). I thought … | |
Making a "hello" world program in VC++ 6.0 is cool, as I got a very happy feeling when i completed it... but reading alot of books to learn "a round about" way in something isn't me. I'm objective oriented. What materials should I, could I, get my hands onto learn … | |
Hi everyone, can anybody know how to forward a RAW packet i.e. the buffer containing the ethernet header upto the TCP/UDP data using the send() and socket() system calls in C or C++ Regards, Vivek | |
I am looking for an arp sender written in c++ with no deps (no libpcap or libnet). I am working now at some raw sockets code, but i get all sort of errors in the sendto(), even with the IP_HDRINCL option set. The code is ok, it sends TCP and … |
The End.