470 Topics

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

I designed each server and client as seperated projects but they both has the classes in same namespaces When I try to deserialize i get this: Unable to find assembly 'RentACar, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.' Here is my class i want to send objects as packets using System; using System.Collections.Generic; using …

Member Avatar for Dani
0
58
Member Avatar for Ivan_7

Hi,my friend and I are making our student project.And so far we create our 'back end' but in front (angular) somehow we are not able to get new socket.id when user change room.I will share your code with me hope someone will be able to help. This is our ANGULAR …

Member Avatar for rproffitt
0
529
Member Avatar for skatamatic

When working with TCP client sockets I often find myself frustrated with the lack of event-driven support. I usually end up writing a whole bunch of code to determine disconnects, reconnecting, etc and I figuired it's time to just write my own class for this stuff. I figuired I'd share …

Member Avatar for Alejandro_8
6
9K
Member Avatar for M_27

I made this game equivalent to tictactoe but with a slight twist called find the X between two players using socket programming with Java. Don't know where I went wrong in trying to find the X but for some odd reason my count variable never updates allowing the victory message …

Member Avatar for JamesCherrill
0
501
Member Avatar for Sourav_1

Hii Guys I am currently Devloping a Java Remote Desktop Software like teamviewer I would like know some guidelines about the tools I can use for client and server side I could create a GUI using Swing and add by using Robot class to imitate mouseactions and keyactions and by …

Member Avatar for JamesCherrill
0
2K
Member Avatar for Vin vin

I am making a program, and I don't know why my program becomes unresponsive, when I click the button ): I have a feeling its because of this: "connection = server.accept();" I don't know how to fix it. I am trying to recreate this: https://stackoverflow.com/questions/18505123/how-to-use-client-chat-on-different-pc but in javafx. package yeetYeet; …

Member Avatar for JamesCherrill
0
8K
Member Avatar for talon88

using c# socket programming. For the program on computer A, i would probably need to create a windows form, to allow me to trigger computer B software to run by clicking. How do i implement the async socket into window form? How can i start the connection of both computer, …

Member Avatar for talon88
0
608
Member Avatar for ryantroop

Is it possible to know which connection sent data wiht recv()? Current setup is - Main Thread spins and waits - Thread 1 - do stuff unimportant to socket - Thread 2 - accept() -> keep linked list of accetpted sockets - Thread 3 - recv() -> can I know …

Member Avatar for ryantroop
0
302
Member Avatar for murid

Help me... I want to sent picture with socket programming, from client to server. client : get picture from OpenFileDialog, after get the picture , I send it to server. server : after get the picture from client, the picture is saved in a destination folder. I try my best, …

Member Avatar for Haleem_1
0
2K
Member Avatar for cereal

Hello, on Hotmail/Outlook webmail, when I receive an email message in the spam folder (formally Junk), I can mark the message as **Not Junk**. The server will then start to deliver the messages from that source, directly into the Inbox, working like a whitelist. Is it possible to do the …

Member Avatar for cereal
0
2K
Member Avatar for Mr.M

Hi Dw. I'm a bit new to C# I'm used to program with VB.NET and one of my project had force me to do it with C# as I'm sure you are aware that VB.NET it lack with Windows Phone Socket programming APIs or support and C# does support it …

Member Avatar for Mr.M
0
904
Member Avatar for Mr.M

Hi Dw. I have a MySql server database, and I'm polling data from the database. The problem I'm getting is that when I'm retrieving users activities I only get the first record only which is on `Row(0)` or the first record with that username. Suppose I have a database like …

Member Avatar for Mr.M
0
328
Member Avatar for Nether_1

I'm writing a simple server allowing me and my friends to send information to each other. Currently I've got the client down easy enough, it's all set up and I can communicate with servers. The problem is I can't get the server to work for some reason, I use working …

Member Avatar for Nether_1
0
351
Member Avatar for ajit.nayak

Dear all I am trying to send request to client device in Hex format and receive data into decimal format. By seeing forum and tutorial class. I could able to send and receive data from client device.Now I wanted to check the data i received valid or not. In order …

Member Avatar for ddanbe
0
566
Member Avatar for Doogledude123

Hey everyone, I'm looking for some help with coming up with a system to communicate data between client and server sockets. I was thinking of a command system, but that would only work when the client is sending a request to the server, not when the server is returning data …

Member Avatar for JamesCherrill
0
380
Member Avatar for Mr.M

Hi Dw. I'm a bit stuck with a lot of confusion here. I'm developing a client/server applications which communicates to each other, my project is a multi-thread based and I'm currently using MS Access and database but I have hit a very challenging problem as this was the wrong database …

Member Avatar for pritaeas
0
332
Member Avatar for Mr.M

Hi Dw. I am developing a client server multi-thread application. This application uses signals(certain messages as signals), in order to perform a task for a client. For instance if a client wants to login, the client send a message as: `Login:<username>:<password>` and on a server I first check if the …

Member Avatar for rproffitt
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
172
Member Avatar for Bartosz

Hi there, I have two seperate programs - one is a Client, and the other one is Server. I am trying to send an object from Client to Server, but I am getting following error: Exception in thread "main" java.lang.ClassNotFoundException: airtrafficcontrol.AirplaneDetails at java.net.URLClassLoader.findClass(URLClassLoader.java:381) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) at …

Member Avatar for JamesCherrill
0
306
Member Avatar for newbie14

I have done a socket programming using bonecp as the database pooling for mysql. Suddenly I notice a lot of socket connection made but then after a few hours I got too many open files. I have set the timeout but somehow it did not timeout I don't know why. …

Member Avatar for newbie14
0
328
Member Avatar for Aditya0025
Member Avatar for jwenting
-1
145
Member Avatar for phoenix254

Hello everyone, I would like to ask you guys that suppose i have an app that i devloped in nodejs and listening on port (3000) , in client side i have added (var io = io.connect();)and domain name is www.domainname.com That node app I developed, I test im my local …

0
86
Member Avatar for phoenix254

I am new in programming languages.I was trying to learn web socket with javascript to this [site](http://socket.io/get-started/chat/), but i am not understanding something that why i need to use **Package.json**. I tried to google a lot, but can not find something useful. One more thing if i create Package.json then …

Member Avatar for cereal
0
186
Member Avatar for iamthwee

So it seems google's go is changing the programming landscape, well there probably were other languages out there before but the google-sphere seems to deliver more clout, people take notice. Google Go appears to have done anyway with classical OOP, especially inheritence, although it can be realised via other ways. …

Member Avatar for vegaseat
1
845
Member Avatar for ervinmalkaj

Hello folks, I am having difficulties in an exercise about parallel programming using mpi and socket in C language.Below is the exercise.I would appreciate any help or suggestions Thanks Exercise 5.3: In one of the local network nodes there is a file named FILE = "..." Develop a program using …

Member Avatar for rubberman
0
278
Member Avatar for sing1006

xml file <?xml version="1.0" encoding="UTF-8" standalone="no"?><movies> <movie id="1111"> <title>Blackhat</title> <genre>thriller</genre> <duration> 90 mins </duration> <age>28</age></movie> <movie id="1002"> <title>The Wedding Ringer</title> <genre>comedy</genre> <duration> 100 mins </duration> </movie> <movie id="1003"> <title>The Avengers</title> <genre>action</genre> <duration> 180 mins </duration> </movie> <movie id="1004"> <title>Taken 3</title> <genre>action</genre> <duration> 100 mins </duration> </movie> <movie id="1005"> <title>Insurgent</title> <genre>Science …

Member Avatar for JeffGrigg
0
342
Member Avatar for sing1006

try { File file = new File("/Users/Alex Ting/Desktop/test2/MovieList.xml"); DocumentBuilder dBuilder = DocumentBuilderFactory.newInstance().newDocumentBuilder(); Document doc = dBuilder.parse(file); NodeList movielist = doc.getElementsByTagName("movie"); for(int i =0;i<movielist.getLength(); i++){ Node m=movielist.item(i); if(m.getNodeType()==Node.ELEMENT_NODE){ Element movie = (Element) m; String movieID = movie.getAttribute("id"); NodeList mnamelist=movie.getChildNodes(); for(int j=0;j<movielist.getLength(); j++){ Node n = mnamelist.item(j); if(n.getNodeType()==Node.ELEMENT_NODE){ Element name = (Element) …

Member Avatar for JeffGrigg
0
350
Member Avatar for sing1006

I want to pass the string from client to server and the server will display the string. First the client enter the option 1 and the server will reply ask from the movie name. My problem is i cannot enter the name from client and send it to server and …

Member Avatar for sing1006
0
1K
Member Avatar for Pobunjenik

Hi, so I've got this multithreaded server which correctly waits for clients and assigns them to a worker thread. From there, the client is sent an object `Packet` which contains variables `Player` and `Round` (simplified, it contains more data but these are the most important). I'm building a simple top …

Member Avatar for JamesCherrill
0
439
Member Avatar for rezajan

Hello, I am Reza and I have just started programming with C and C++. I am so interested in Network programming. I would like to know more about sockets and the concepts of it in C and CPP. Thank you in advance.

Member Avatar for Squiva
0
116
Member Avatar for overwraith

So I am kinda new to developing client and server sockets (protocols), and am developing something just for fun on my own network. This program basically will send all files from a specific folder to a client. So I am wondering if I wanted to send multiple files over one …

Member Avatar for SteveDotNet
0
157
Member Avatar for nhrnjic6_1

Hi. am starting out with network programming and unix network programming book. all its trying to do is connect to server and read time, but when i run it it says : 'connect error: Connection refused' Here's the code : #include "unp.h" int main(int argc, char **argv) { int sockfd, …

Member Avatar for rubberman
0
126
Member Avatar for Bhoot

First of all, the keylogger that i am developing is not at all for offensive and destructive purposes. :) I am developing a client monitoring application in C#.NET. Keylogging is one of the features in my application. Though i have developed the code for the keylogger, i have not been …

Member Avatar for Jay Cox
0
230
Member Avatar for sankubha

I am Developing an Client Server socket application .Am reading Strings in server side for multiple clients inside run(override) method and I getting EOF Exception at readUTF. I Dont know why the error is comming and how to rectify it. while (ss.compareTo("true") == 0) { System.out.println("Waiting for port " + …

Member Avatar for sankubha
0
394
Member Avatar for Pilot122x

Hey all, I am trying to implement a remote keylogger into my reverse tcp connection program but IM not sure where to start, I dont usually deal with socket programming so I dont understand giving remote commands, so Id like you guys to either give me a few links or …

Member Avatar for Alexpap
0
196
Member Avatar for accra

Hey guys, i found this piece of code that is suppose to read a port on my server and write to a .txt file the gps data it get gets. am receiving nothing, am not not sure what the problem is, also am new to gps and php socket programming... …

Member Avatar for accra
1
915
Member Avatar for sankubha

Now am working with java application . I have to connect server and client through No-Ip Duc host.Is it possible or not??? Server side code: ServerSocket ss=new ServerSocket(5223); System.out.println("Waiting for client"); Socket soc=ss.accept(); System.out.println("Connected"); client side code: Socket soc=new Socket("rmcsnoiptest.ddns.net", 5223); This is what i tried.

Member Avatar for JamesCherrill
0
364
Member Avatar for thekilon

I have this code. Its not the entire code because its a Blender addon with many lines that are unrelated to sockets so I give here only the part that deals with the sockets which I kept isolated from the rest of the program. def create_thread(): global threadSocket,listening threadSocket = …

Member Avatar for thekilon
0
2K
Member Avatar for ITPT

Hi I'm trying to undrestand socket functions.... (in C) arguments of bind() and accept() functions is ambiguous for me! signature of bind() : int bind(int sockfd, struct sockaddr *my_addr, int addrlen); // okay, no problem but in example's codes or in the program : bind (sockfd, (struct sockaddr *)& my_addr, …

Member Avatar for ITPT
0
198
Member Avatar for Yorkiebar14

Hello, I have two applications; a server and a client which use simple TCP Sockets to connect to each other and send the data. The only problem I have is that I am struggling to associate usernames with the accepted sockets on the server. The server is able to accept …

Member Avatar for Ketsuekiame
0
272
Member Avatar for kid.coder

Hey i was just writing a simple server i'm using accept() in a loop to emit constant greeting but i dont know why my code stucks at single send() i mean it asks for input only once --> it asks for input --> i give input--> it emits succsfully to …

Member Avatar for L7Sqr
0
639
Member Avatar for DawnofanewEra

Hello guys..!! I'm new to python and I have a task which require me to write a simple TCP server which will interact with the web browser. I have done some coding as well as researching over the internet to find relevant notes and materials but none helped. What I …

Member Avatar for slate
0
495
Member Avatar for learner_new

Here is my code. #include <iostream> #include <math.h> #include <winsock.h> #include <windows.h> #include<stdio.h> #include<stdlib.h> #include<string.h> using namespace std; int main() { SOCKET s; WSADATA wsadata; int error = WSAStartup(0x0202, &wsadata); //Did something happen? if (error) return false; //Did we get the right Winsock version? if (wsadata.wVersion != 0x0202) { WSACleanup(); …

Member Avatar for BobS0327
0
341
Member Avatar for mukta.dhiman

I want to code a client server program using socket programming in which the server returns the client's network information back to the client.

Member Avatar for JamesCherrill
0
173
Member Avatar for srinivas88

Hi, I need to monitor the ip addresses in a server. whenever there is a fluctuation, i need to do some clean up (like restart the server/ reboot the machine) I was able to get a sample cpp program & was able to enhance it to suit my needs. But …

0
172
Member Avatar for ganesh.naphade

I am using following gdiscreen() function which takes screenshot jpg image into buffer.I am sending this buffered image using sento() over UDP.I am unable to convert this char array data sent back into image .I appreciate any help you can provide void gdiscreen() { char buffer[61400]; using namespace Gdiplus; wchar_t …

Member Avatar for triumphost
0
369
Member Avatar for ganesh.naphade

I am new to socket programming.I am trying to send datagrams containing image data(jpg) from one host to another continuously.I want to use C++.I have not came across detailed steps on how to achieve this for images anywhere.can somebody explain or link me to such tutorials?

Member Avatar for ddanbe
0
243
Member Avatar for lewashby

Server #!/usr/bin/python3 import socket from time import ctime HOST = '' PORT = 21567 BUFSIZ = 1024 ADDR = (HOST, PORT) udpSerSock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) udpSerSock.bind(ADDR) while(True): print('waiting for message...') data, addr = udpSerSock.recvfrom(BUFSIZ) udpSerSock.sendto(data, addr) print('...received from and returned to:', addr) udpSerSock.close() #END# Client #!/usr/bin/python3 import socket HOST = …

Member Avatar for JasonHippy
0
356
Member Avatar for spaghetti_code

Hey guys! I'm working on an open-source video game and things are going well enough, except for the part where I'm trying to work around my n00bish socket-programming background to build the server component. I had the server software working from a single-user perspective, but when I tried to add …

0
71

The End.