I want to stream some random data from a wifi chip to another ip(cellphone or tablet). How shall I do it?I want to stream data at 30mbps or more. The hardware that I want to use is first a laptop ( make it send via a router to another computer). Then I want to replace the transmitting laptop with an arduino with wifi chip or raspberry pi with a wifi chip. What shall I do on the software side to begin with on the laptop?

Member Avatar
Member Avatar
+0 forum 1

Hi all. I'm working on a client server application, eventually to be a POS (point of sale) system. The model is something like, client (till) does not have access to the database, instead it sends data to the server application, which in turn deals with the database and any other operations which might need to be carried out. I have my rudimentary client server set up, so far as the server accepts connections from multiple clients. So my next step is dealing with client sending data to the server, and in what fashion etcetera. Say I have a class like …

Member Avatar
Member Avatar
+0 forum 4

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 so my app is a TCP/IP based app. It uses a chat approach but the difference is that in my app a user only type in the credentials (Login details) and login then from there s/he should be presented with a list of data retrieved/sent by a server to this …

Member Avatar
Member Avatar
+0 forum 1

Hi Dw. Has anyone worked with TCP/IP socket in Windows Phone? I'm using Windows Phone 7 and I would like my app to communicate with my server which my client will send some data to the server and the server will also send some data to the client, It's more like chat server, but I'm not using it for chatting. I need some resources/source/samples. I've found samples but there are in C# and I tried converting it to VB.NET but it seems the code used doesn't match when converted to VB.NET.

Member Avatar
Member Avatar
+0 forum 3

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 socklen_t; #else #include <sys/socket.h> #include <netinet/in.h> #include <fcntl.h> #include <unistd.h> #endif typedef struct sockaddr_in sockaddr_in; typedef struct sockaddr sockaddr; //... typedef struct Connection { int handle; // Socket handle void (*onReceive)(void*,unsigned int,unsigned short); // callback(data,ip,port) int size; //size of expected received data }; //... Connection *init_connection(int size, unsigned short port, …

Member Avatar
+0 forum 0

I have made a chat client using TCPListener for server and TCPClient for client it works perfectly fine on localhost. However it is unable to send message over a ad-hoc network. I have tried everything i can think of. 1.Firewalls allow the application to run on both computers. 2.Even disabling firewalls on both computers doesn't work. 3.I have pinged both the computers from each other and the packets reach fine. Please guys immediate help is required. Code for the server TCPListener listen = new TCPListener(IPAddress.any,port); TCPClient client = listen.AcceptTcpClient(); and then i make networkstream, streamreader and streamwriter from it. For …

Member Avatar
Member Avatar
+0 forum 4

I am trying to implement a chat program using epoll on the server side. However, the program gets stuck at epoll_wait(). How should I create an asynchronous chat program? [CODE] #include <stdio.h> #include <stdlib.h> #include <errno.h> #include <string.h> #include <sys/socket.h> #include <netinet/in.h> #include <sys/epoll.h> #include <fcntl.h> #include <netdb.h> #include <unistd.h> #define MAX_BUF 30; int setnonblocking(int sock) { int opts; opts = fcntl(sock,F_GETFL); if (opts < 0) { perror("fcntl(F_GETFL)"); exit(EXIT_FAILURE); } opts = (opts | O_NONBLOCK); if (fcntl(sock,F_SETFL,opts) < 0) { perror("fcntl(F_SETFL)"); exit(EXIT_FAILURE); } return 0; } int main() { char buf[30]; printf("server is starting\n"); struct epoll_event ev, events[10]; int write_sock, …

Member Avatar
+0 forum 0

Dear All, i have been tugging my hair out for 3 days and i cant find the problem !!! im writing a code in Aglets, i have to classes, Master and SayItAglet [B][U][COLOR="Green"]Master.Java[/COLOR][/U][/B] [CODE]package simple; import com.ibm.aglet.*; import java.net.*; public class Master extends Aglet { private AgletContext thisContext = null; private AgletProxy sayItAgletRemoteProxy = null; private AgletProxy sayItAgletLocalProxy = null; private AgletProxy hearItAgletLocalProxy = null; public void onCreation(Object init) { try { thisContext = getAgletContext(); sayItAgletLocalProxy = thisContext.createAglet(null,"simple.SayItAglet",null); sayItAgletRemoteProxy = sayItAgletLocalProxy.dispatch(newURL("atp://Y430:2000")); } catch (Exception e) { System.err.println("various possible exceptions"); } } // end creation }// end class[/CODE] [B][U][COLOR="Green"]SayItAglet.Java[/COLOR][/U][/B] [code]package simple; …

Member Avatar
Member Avatar
+0 forum 7

Dear Sir/Madam, I have a small programe created in VB 6.0 and database MS Access. Where user can insert their only name & address and can retrieve the existing records. Just for test, I have kept this programe (.exe file and database file) in the share document of a computer and tried to run from another computer. It was running smoothly (I entered records and display that records too). I have not made setup file when i was tested. Just created .exe file. I want to run this programe in home network that is connected with router. How can i …

Member Avatar
Member Avatar
+0 forum 2

Thanks in advance.. [B]I want to know how to get running process information of remote machine in vc++[/B]

Member Avatar
Member Avatar
+0 forum 1

hello there, this is really urgent, do you know how to convert from a string to AgletProxy ?? i have two classes : Parent.java and Child.java, The Parent.java class, creates a child , passes it its agletproxy while creating it and dispatches it to another machine : [CODE] package examples.help; import com.ibm.aglet.Aglet; import com.ibm.aglet.AgletContext; import com.ibm.aglet.AgletID; import com.ibm.aglet.AgletProxy; import java.net.URL; public class Parent extends Aglet { private AgletContext context; private AgletProxy parentProxy; private AgletID agletID; @Override public void run() { try { context = getAgletContext(); parentProxy = getProxy(); String agletProxy = parentProxy.toString(); System.out.println("The Parent Proxy is : " + parentProxy.toString()); …

Member Avatar
+0 forum 0

i reading a book about aglets, in this book, there is a piece of code demonstration Master/slave aglets and they say: [CODE] sayItAgletRemoteProxy = sayItAgletLocalProxy.dispatch(new URL("atp://localhost:9000")); // unfortunately this remote proxy is invalid in version 1.1b1. The aglet book is based // on version 1.02. See ch 7. p. 121. Running this(aglets.agletbook.chapter7) [/CODE] i dont understand what they said... version of what ? is it the API ? in all cases, how can i get this "version 1.02" they are talking about so i can run the code ? thank you

Member Avatar
Member Avatar
+0 forum 2

Hello, i downloaded aglets 2.5 from this site : [url]http://fluca1978.blogspot.com/2010/07/aglets-25.html[/url] please read the first comment by [U]nader 74[/U] : [CODE]Hi, I'm student. I have use Aglets2.0.2. But, when I used Aglets 2.5-alpha, I can not install the ant and I use Java_Home = C:\Java\jdk1.6.0_21 ant I have this error :[/CODE] when i tried to build the software, i got the SAME problem as he did. However it seems that he solved the problem. please check the 5th comment on the site that says: [CODE]nader74 ha detto... Dear Luca, I have use the : Apache Ant version 1.8.1 compiled on April …

Member Avatar
+0 forum 0

I am a newbie to network programming. I been trying my luck with winsock and am stuck with no idea what to do. Here is a snippet of my code: [CODE]//Bind it to a TCP/IP port SOCKADDR_IN SockAddr; SockAddr.sin_port=24; /*Port to be used*/ SockAddr.sin_family=AF_INET; /*Connection Type: TCP/IP*/ /*Listen on IP address: 127.0.0.1*/ SockAddr.sin_addr.S_un.S_un_b.s_b1 = 127; SockAddr.sin_addr.S_un.S_un_b.s_b2 = 0; SockAddr.sin_addr.S_un.S_un_b.s_b3 = 0; SockAddr.sin_addr.S_un.S_un_b.s_b1 = 1; if(bind(socketDefinition,(SOCKADDR*)(&SockAddr),sizeof(SockAddr))==SOCKET_ERROR) printf("Attempt to bind failed.");[/CODE] The code is compiling properly but output is: "Attempt to bind failed." Any suggestions? Thanks.

Member Avatar
Member Avatar
+0 forum 3

The End.