25 Topics

Member Avatar for
Member Avatar for abhishek_s_n
Member Avatar for Sofiia
0
1K
Member Avatar for Labdabeta

Hello, I am having a bit of an issue with my networking addition to my game engine. The engine uses SDL to provide an event-driven programming environment. I tried adding networking functionality, but it doesn't seem to work. Here is the relevant code: //includes #if defined(_WIN32) #include <winsock2.h> typedef int …

0
166
Member Avatar for lena1990

hi all, i create full duplex application to transmit voice using udp protocol , i use AudioRecord to record voice and AudioTrack to play it but i hear echo

Member Avatar for lena1990
0
393
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
175
Member Avatar for cswong

I need some help to make AES work with UDP. I keep getting this error. Exception in thread "main" javax.crypto.IllegalBlockSizeException: Input length must be multiple of 16 when decrypting with padded cipher at com.sun.crypto.provider.CipherCore.doFinal(CipherCore.java:750) at com.sun.crypto.provider.CipherCore.doFinal(CipherCore.java:676) at com.sun.crypto.provider.AESCipher.engineDoFinal(AESCipher.java:313) at javax.crypto.Cipher.doFinal(Cipher.java:2087) at AES.decrypt(AES.java:31) at EchoServer.main(EchoServer.java:26) It seems that upon receiving the …

0
154
Member Avatar for Fedhell

Hello everybody, Im using datagrams to send a DatagramPacket, however, unless the router has ports forwarded, the clients dont recieve the packets. Is there a way to set this up so that my clients dont have to port forward on their router? How to main stream gams like LOL or …

Member Avatar for JamesCherrill
1
500
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 JohnKelly

We have a sensor on our local network that is sending a data telegram using UDP Broadcast. How do we use Winsock to capture these messages. The Port number that the data is being sent on is 42567. I tried the following code WinSockControl.Protocol = sckUDPProtocol WinSockControl.RemotePort = 42567 WinSockControl.Bind …

Member Avatar for TnTinMN
0
360
Member Avatar for Fedhell

**edit** I just realized that Im on a single core machine atm (stupid work machine), so theortically the server isint actually executing on the CPU 50% of the time (while the client is running), so packets would be lost right? Or is there something else im missing alltogether? Ill post …

Member Avatar for Fedhell
0
1K
Member Avatar for barfi.anana

i am trying to make a program where i have a server with multiple clients, where a client sends a message to the server and when the server replies to it, the server broadcasts the reply to all the clients. the code has some error and is not working. i …

Member Avatar for np complete
0
3K
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 albertHankock

So I need to write an ping client and server for my networking class. Server code is running no problem but I'm a bit lost on my client code. I copy and pasted the server code because I figured it would be easier to modify.. Please check this out.....THE PROBLEM …

0
316
Member Avatar for dmtYork921

Hi, I was trying to figure this out. I've been scratching my head all morning and I'm at a mental dead end. Can anyone help me? Malicious code in red [CODE]/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package …

Member Avatar for JamesCherrill
0
184
Member Avatar for asmsycool

Hi, i've a problem with my codes, when ever i run it, i got an error from the checking i implemented. Can some pls explain why does the error keep coming. [CODE]import java.net.*; import java.io.*; public class EchoClient{ static final int serverPort = 1026; static final int packetSize = 1024; …

Member Avatar for JamesCherrill
0
441
Member Avatar for jeffrey o

This is the server code for the udp server/client program . There are no errors except when you run the program the ff error occurs: [COLOR="Red"]Exception in thread "main" java.lang.NullPointerException at udptry2.UDPServerbackup2.main(UDPServerbackup2.java:44) Java Result: 1[/COLOR] the client side works how it should just this part of the program [CODE] package …

Member Avatar for parry_kulk
0
516
Member Avatar for jeffrey o

This is a simple server/client program. What i'm trying to do is let the server send a message to the client, the client should receive this message and print this message on screen. When i run the program the server prints "Server start" like its supposed to but nothing happens …

Member Avatar for sj5536
0
468
Member Avatar for saisakthi

Hello, I am developing an android chat application. It works well on the emulator. But from the android mobile(Using HTC), it doesnot receives UDP packets from other devices. But it receives well from the same device and also sends the packets well. How to make the application to receive the …

Member Avatar for saisakthi
0
137
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
110
Member Avatar for san_fran_crisko

Hi, Recently, I've noticed on my home router (DLink DIR 635) a lot blocked connection attempts being logged to our Windows Vista machine - roughly one every 4-5 seconds. The destination port is always UDP 15126 but the source IP addresses come from a wide range of different sources - …

Member Avatar for getnit
0
186
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
236
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
105
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
119
Member Avatar for omarelmasry

I am working on a certain project ,and I want to send data from a windows application on a computer to another windows application on another computer , knowing that both computers could be anywhere (not together in a LAN network) ... I heard that it is possible through a …

Member Avatar for Nyight
0
197
Member Avatar for galaris

Hello everybody! I have a game server (WoW). I want my players to download my custom patches to the game. I've done a program that checks for update/downloading things. I want my program to send a packet to my game server if player have all my patches. I dont need …

Member Avatar for mcriscolo
0
208
Member Avatar for Clawsy

Hello, I have to take a snapshot of my screen and send the image to a client using Datagrams. I think my problem is at the client part. The image is null, and I don't know why. Here is the server part. I tried to send 534 byte packets (bigger …

Member Avatar for Clawsy
0
3K

The End.