28 Topics

Member Avatar for
Member Avatar for can-mohan

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 …

Member Avatar for rproffitt
0
562
Member Avatar for Xsmael

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 …

0
383
Member Avatar for tnd2491

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 ??

Member Avatar for vijayan121
0
182
Member Avatar for missil9

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 …

Member Avatar for missil9
0
777
Member Avatar for beginner91

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 …

Member Avatar for beginner91
0
338
Member Avatar for Alexkid

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; …

Member Avatar for mike_2000_17
0
6K
Member Avatar for learner_new

> 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 …

Member Avatar for BobS0327
0
3K
Member Avatar for MasterHacker110

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 …

Member Avatar for mitrmkar
0
318
Member Avatar for ponnds

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 …

Member Avatar for Banfa
0
2K
Member Avatar for srinivas88

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 …

Member Avatar for srinivas88
0
401
Member Avatar for llemes4011

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, …

Member Avatar for llemes4011
0
267
Member Avatar for kutuup

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 …

Member Avatar for kutuup
0
496
Member Avatar for user129

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 …

Member Avatar for jonsca
0
86
Member Avatar for dsit86

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) { …

0
114
Member Avatar for bruno386

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 …

0
122
Member Avatar for emperor43

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 …

Member Avatar for emperor43
0
180
Member Avatar for chinnaedu

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 …

Member Avatar for chinnaedu
0
233
Member Avatar for tanya9x

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 …

Member Avatar for nats01282
0
281
Member Avatar for yanni13

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!

Member Avatar for yanni13
-1
290
Member Avatar for KronicZ

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 …

-3
94
Member Avatar for nelsao1

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 …

Member Avatar for sybarite29
0
2K
Member Avatar for gumber

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 ? …

Member Avatar for JustinJose12002
0
229
Member Avatar for axfv

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 …

Member Avatar for AlbertPi
0
100
Member Avatar for sparty

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 …

0
66
Member Avatar for dougy83

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 …

Member Avatar for dougy83
0
1K
Member Avatar for Sir_BigOne

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 …

Member Avatar for Covinus
0
99
Member Avatar for vivekgalatage

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

0
102
Member Avatar for SorCerer

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 …

Member Avatar for SorCerer
1
1K

The End.