Click here to Skip to main content
Page 1 of 8
Page Size: 10 · 25 · 50


Tag filtered by:  socket [x]
Question 13 May 2013   license: CPOL
Hey Guyz,Can anyone guide me how to achieve multi player behaviour in my simple android game.I have a simple game based on client and server model but now i want to give it a touch like real time multi-player in a module, where some action performed by a single users will be visible to other...
Question 12 May 2013   license: CPOL
I had been working on a Server Client aplication where Server is going to service(sendto + receivefrom)'x' number of Clients at a time. For this purpose, I have created 'x' number of threads on Server side so that each thread is dadicated to one single client. Inside each thread there is a...
Answer 12 May 2013   license: CPOL
I think that using threads with blocking sockets instead of asynchronous API is much better. In most cases, communication is sequential in its nature and the flow of operations is logically independent from other threads. Therefore, using a separate thread for each communication channel (in case...
Answer 9 May 2013   license: CPOL
If you get "any other way" to read the lines of the files, they still will be the same lines. It won't solve the problem of the file "format". The question makes no sense.For example, you can use std::istream::getline:http://www.cplusplus.com/reference/istream/istream/getline/[^].—SA
Question 9 May 2013   license: CPOL
I want to read one line of the text file, save it to a buffer, send the buffer over a udp socket and then go and read the second line and so on..So far, since I knew the data type of the text to be read from the text file, I had been using fscanf() to read each line from the text file. But...
Answer 7 May 2013   license: CPOL
Do the networking stuff in a own thread. Use PostThreadMessage to communicate with your main thread.
Question 6 May 2013   license: CPOL
I am trying to make my Socket "Event Based". Following is what i tried:VOID createServerSocket(){ WSADATA wsa; //Initialise winsock// if (WSAStartup(MAKEWORD(2,2),&wsa) != 0) { //"WinSock Initialization FAILED", } //Create a socket// ...
Answer 6 May 2013   license: CPOL
I encounter this error when I was binding port to 443 (https). after reading some pages without any sense searched in my computer I realized VMWare Start a Windows Service named "VMWare Authorization Service" that perevent me to bind a socket in 443. after stop this service problem SOLVED!!!
Question 5 May 2013   license: CPOL
hello everyone, I'd like to ask why is this error occurs.I am trying to get a string data from a device. I have make this code and it runs well when I try to obtain data from a local server, but it stated this error when it connects to the device.java.net.PortUnreachableException: ICMP...
Question 3 May 2013   license: CPOL
I had been working on non-blocking udp socket. The code that I had developed generates a Window Message whenever there is any data to be read over the socket. Below is the code snippet:void createSocket(HWND hwnd){ ///Socket Binding/// WSADATA wsa; ///Initialise winsock/// ...
Question 2 May 2013   license: CPOL
Hi all, I'd like to ask a question.I would like to receive a data from an UDP port and display the data as string.here is my trial code, but it doesn't works.it is stated in the error message that it can't bind and also stated socket.bind(native method)I am still don't understand...
Answer 2 May 2013   license: CPOL
solved!! thanks everyone!!here is the code I have made after some confusing period.import java.io.IOException;import java.net.DatagramPacket;import java.net.DatagramSocket;import java.net.InetAddress;import java.net.SocketException;public class udp_test{ public static void...
Answer 2 May 2013   license: CPOL
Well, your has no issues with it. Except for the thing that the constructor used to create a datagram socket for receiving must not include the ip address. It should be like thisDatagramPacket p = new DatagramPacket(buffer, buffer.length);You are encountering a bind exception. Such...
Answer 2 May 2013   license: CPOL
Well, your code is absolutely correct there is no issues with it.You are encountering a bind exception. Such exceptions occur if the underlying operating system is unable to create an socket at the specified port. It might be for the following reasons:1. The port 53 is already in use. In...
Technical Blog 1 May 2013   license: CPOL
Networking and Socket programming tutorial in C.
Question 26 Apr 2013   license: CPOL
please help me friendsi have code below:when getting to "worker = ((Service1)ar.AsyncState).EndAccept(ar);"take a error:The remote server returned an error: NotFound.or exceed...time out errorpublic MainPage() { InitializeComponent(); ...
Question 15 Apr 2013   license: CPOL
I am configuring a Windows Server 2003 machine to run php. The system is currently running IIS 6 and is hosting several active websites. I am able to get php to run but when I attempt to connect to a database I receive the error "Failed to connect to MySQL: A socket operation was attempted to...
Answer 6 Apr 2013   license: CPOL
It doesn't quite work like that.We do not do your work for you.If you want someone to write your code, you have to pay - I suggest you go to VWorker.com and ask there.But be aware: you get what you pay for. Pay peanuts, get monkeys
Question 6 Apr 2013   license: CPOL
Hello guys! I need a source code in C, C++ to test network speed like a speedtest.net.. And I need a theory and methods of this tool. For example how to measure the speed.. What I should know to make this tool etc.. Please help me!!
Answer 4 Apr 2013   license: CPOL
Other than the problem that data is initialized to null and will throw an exception when you concatenate to it with += (initialize to string.Empty instead), I don't see the problem right off. data should be accessible from the Main.However, you'll want/need to use some form of...
Question 3 Apr 2013   license: CPOL
Hello,I'm using .NET synchronous socket to send data from a client to server.I need to get the data from the StartListening() method to use it in the Main() but the variable data is inside an infinite loop ( while(true)).Any help please?This is the server code :using System;using...
Tip/Trick 27 Mar 2013   license: CPOL
Easy to use class for downloading, uploading, and other FTP commands.
Tip/Trick 27 Mar 2013   license: CPOL
An introduction to writing IOCP network servers
Answer 18 Mar 2013   license: CPOL
Hi thanks for the reply, I have adapted the code for asynchronous programming.I created a list of backgrounworkers each associated with a serial port. I created a function to open all and close all but one in particular I want to open or close one in particular as not locate within the...
Answer 15 Mar 2013   license: CPOL
See Asynchronous Server Socket Example[^] and Asynchronous Client Socket Example[^]
Question 15 Mar 2013   license: CPOL
Hello, I am developing a communications program to send all data from multiple serial ports of a computer using TCPIP. To do this we will use PortSerial classes, BackgroundWorket and Socket.I have already made the reception of data by multiple serial ports. I used to do a FIFO queue in which...
Answer 26 Feb 2013   license: CPOL
If you are using the TcpListener and TcpClient classes in .NET you will probably do do something similar to...NetworkStream clientStream = tcpClient.GetStream();ASCIIEncoding encoder = new ASCIIEncoding();byte[] buffer = encoder.GetBytes("This is a message to the...
Question 19 Feb 2013   license: CPOL
how to Measure Size of Data Sent over Socket in c++.
Answer 15 Feb 2013   license: CPOL
Google have done it for you:https://developers.google.com/talk/libjingle/[^]
Question 15 Feb 2013   license: CPOL
I want c++ p2p sharing tutorial for beginners..
Answer 30 Jan 2013   license: CPOL
First of all, when you talking about "server", it should be something which you develop yourself, because you will need to have some custom application-layer protocol:http://en.wikipedia.org/wiki/Application_layer[^].More exactly, a service. The term "server" is more often used in a narrow...
Question 29 Jan 2013   license: CPOL
we are trying to create an LIS (Laborotry information system) which will communicate with ADVIA Centaur machine. I want to know what will be the format of the message to be sent to the machine from LIS.We are trying to use the java socket programming.
Question 29 Jan 2013   license: CPOL
hi....i want to make a small app for connecting to a chat application and get some data! i want know is a generl way to connect with any server and get data or any server must provide some ways to let us connect to it! and if a server didnt do that we cant connect to it?i know how i can...
Question 27 Jan 2013   license: CPOL
I have this C# code to use GetExtendedTcpTable function and Get Extended Tcp table, but during compile it stop in line :int NumEntries= (int)Marshal.ReadIntPtr(lpTable);with :Arithmetic OverFlow Exception erroe.but it runs on 32 bit operation system without any error.now my...
Answer 17 Jan 2013   license: CPOL
I just want to use socket to connect to a remote computer and send the message (TCP chat). What do you suggest? Port forwarding or put the computer in DMZ zone?
Answer 17 Jan 2013   license: CPOL
It's hard to give a solution without knowing your exact network setup.Most common case when connecting through a router is that your local network is behind NAT and it makes direct connection from Internet to local computer impossible.Solution depends on your router capabilities: you would...
Question 17 Jan 2013   license: CPOL
Can not connect to the computer from the Internet by using socket, when the computer has Internet connected not directly through a lan card. What to do? If I have a computer podklyuchayus Katori Internet connection directly everything is fine and turns with adaprami of TP-LINK does not work.
Tip/Trick 11 Jan 2013   license: CPOL
This is a simple multiclient server chat on a Local Area Network.
Answer 7 Jan 2013   license: CPOL
I found out it was how a 3rd party was passing through the data to the VPN - once they changed a setting it all worked again !
Question 28 Dec 2012   license: CPOL
I'm using NModbus_net-3.5 library.my device have 150 register and coilsseparately for each of the register have a timer and interval in my addressValue Class;timer on Elapsed: read adres new ModbusIpMaster and new connection What's suggestions about performance too many device?I...
Question 20 Dec 2012   license: CPOL
HiI have a UDP Listener running as a service on a server written in .Net which has been working fine, but now my client is using a VPN connection to the server as well.It seems that the UDP listener is not detecting any traffic from the VPN connectionI've tried binding it to...
Question 14 Dec 2012   license: CPOL
I am try to build a client server chat application using swing.In that when i start client i send a message that i can received at client site but when i press a button on Server site it will not open up a new Frame (that is in my case error here).How can i solve it...And can any one suggest...
Question 11 Dec 2012   license: CPOL
What tools or options do I have so that I can edit or tamper with Wireshark/tcpdump captures in any way which I want- be it IP headers, TCP layer, the payload part or raw packets? I have looked at Scapy (www.secdev.org/projects/scapy)and libcrafter (code.google.com/p/libcrafter). What better...
Question 27 Nov 2012   license: CPOL
this is server#pragma once#include #pragma comment(lib,"Ws2_32.lib") #define PORT 8001#define IP "127.0.0.1"#define SINGEL_SEND "single_send"class CSock{private: SOCKET Sock_Server; SOCKET Sock_Client; WSADATA Wsa; SOCKADDR_IN...
Answer 27 Nov 2012   license: CPOL
1) Yes you can2) You need to connect to VPS's public IP. Either you or the ISP needs to set up NAT (or port forwarding) to forward the server's packets to the client (ie. to the VPS's private IP).
Answer 23 Nov 2012   license: CPOL
Try this senddata function, I have not tested but give it a try.bool CSock::senddata(char * data , int nsize){ bool bRet = false; sendThisTime = send( Sock_Client, data, sizeof(BMPHEADER), 0 ); if (sendThisTime > 0) { bRet = true; } return (bRet) ;}
Question 21 Nov 2012   license: CPOL
hi every bodyi am working on a socket program...so i wanna in 1)server side i run my program with valid ip2)client side my other program is run maybe on a vps...so in that vps probebly my program connect to internet with local ip address(static)but either own vps has valid...so my...
Question 10 Nov 2012   license: CPOL
i have done a server using this example How To Use the SocketAsyncEventArgs Class[^]in visual studio 2010 and .net 4.0.Now i'm trying to connect to it from a windows 8 app using StreamSocket but i'm getting a "Acces denied" message. here is the Client code:private StreamSocket...

Page 1 of 8
1 2 3 4 5 6 7 8


Advertise | Privacy | Mobile
Web02 | 2.6.130513.1 | Last Updated 14 May 2013
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid