network-programming

OS X System Congiuration Settings, Set in Objective C

What would be the best method for configuring OS X Network Proxy preferences in Objective C? If anyone has any code examples that would be very helpful. Also - I have been searching all around the interwebs and can't seem to find a good source for setting OS X System preferences/settings with Objective C. Anyone have any good source...

C code to generate and send a packet

Hi all, I would like to know about the inbuilt library functions in C to build a complete packet(along with frame) and to send it over a network... Can any one upload the C code which does the above stuff... :) ...

Distributed message passing in D?

I really like the message passing primitives that D implements. I have only seen examples of message passing within a program though. Is there support for distributing the messages over e.g. a network? ...

getaddrinfo inconsistent behavior

I'm using getaddrinfo to start a local server accepting connections only on the localhost: struct addrinfo *res; struct addrinfo hints = {0}; hints.ai_family = AF_UNSPEC; hints.ai_socktype = SOCK_STREAM; hints.ai_protocol = IPPROTO_TCP; getaddrinfo(NULL, portbuf, &hints, &res); This seems to work fine, giving me the IPv6 address ::1 w...

How vulnerable is a persistent, unencrypted Internet connection between 2 trusted networks?

Scenario: 2 network devices, each on separate private LANs. The LANs are connected by public Internet. Device on network A is listening on a socket; network A firewall has NAT port forward setup for external access from network B's port range. Device on network B makes outgoing connection to network A to connect to the listen socket. ...

Bandwidth throttling in Python

What libraries out there let you control the download speed of network requests (http in particular). I don't see anything built-in in urllib2 (nor in (Py)Qt which I intend on using). Can Twisted control bandwidth? If not, how can I control the read buffer size of urllib2 or Twisted? sleeping to suspend network operations isn't an optio...

java hijack socket possible?

Hi, I suddenly find myself wondering this question, is it possible in java to hijack a socket? say a server is listening on port 5000, would it be possible to write a java programme to listen on port 5000, and forward the same data to the server via port 5000. What would be involved in doing this? I feel this involves writing a new net...

How to create iphone app to react as web server?

Hi! I'm working on an app, in which server (windows based) will connect to the ipad application. Then data will be transfer from the server to the ipad app. I saw different apps like PDF Expert, Wifi HD, allows server apps to connect to the iphone app through IP address. I decided to use this approach. But I don't know how to implement t...

implement comparable interface for bidirectional flows

this piece of code is supposed to consider flows in both direction as one flow. for example: srcAddr,dstAddr,srcPort,dstPort 192.168.1.65, 217.174.16.1, 123456,80 should be the same as 217.174.16.1, 192.168.1.65,80,123456 Another Example: 192.168.1.65, 217.174.16.1, 12345, 80, TCP 217.174.16.1, 192.168.1.65, 80, 12345, TCP 192.168...

Which .NET Managed classes to initiate internet connection?

Are there any .net classes that allow for controlling an internet connection? Such as connecting/disconnecting from a wireless connection? Any details need to be useable in any .net framework version running on XP sp/3 or later windows OS. ...

Problems creating and binding port in unix. (New to network programming)

Hi, I'm having trouble creating a port in Unix. This code keeps returning "Error creating socket (3)", which makes no sense whatsoever, since sockfd must be smaller than 0 to print the error line. server.c: int main (int argc, char **argv) { int sockfd; struct sockaddr_in server_sockaddr; char buff[TRANSFER_BUFFER_LEN]; /* che...

Socket Programming in C++

Hi, Can anybody provide me some sample example on Client and server connection using sockets in C++. I have gone through some tutorials now i want to implement it. How to start ? ...

File decriptors and socket connections..

I am trying to understand how are file descriptors related to sockets. As per my understanding, you listen on a particular file descriptor, once a connection comes in , you accept it , which returns you another file descriptor ( 2 in all ) and you use this 2nd descriptor to send/recv data. The strange behaviour i am observing is that a...

C# on Linux: How to enumerate the computers on the local network ?

How can I enumerate all machine names and IPs of remote computers in the local network ? Note: NOT on Windows (how to do that one finds via google), I need something that works on Linux ! Or a C/C++ sample would also do it, I can call libc from C#. ...

Where to find programmers/ web designers

Could anyone please put me in the right direction of where to find programmers/ web designers that would be able to design a forum from scratch? MAny thanks ...

Distributed network monitoring - how to tell if the monitored resource has fallen over, or the monitor it's self is at fault

Hi, I'm building a system for monitoring several large web sites (resources), using distributed web services controlled by a central controller. I'm coming to a specific part of the design - the actual reporting of resources that are thought to have fallen over. My problem is that there is always the chance that the actual monitor it...

Why is Objective-C converting JSON values to a hash of ASCII character codes?

We are building an iPhone chat application. When sending from the browser to the iPhone a JSON chat message: {"content":"Hi"} The iPhone receives: {"content":{"0":72,"1":105,"length":2}} But, we intend for it to receive the same exact message. To reproduce this issue, first install node.js & redis. Then: Get the code: ...

How to get Domain Name of ipAddress and ipAddress from Domain Name in objective-c

I am able to get the current ip address of my device/machine that I am using - by using this question's answer. I have gone through this question. Java allows to get the IPAddress from a domain name. Is it possible in objective c ? How ? The second question is How to get the name of device/machine by using it's IPAddress. Say for examp...

Coding a caching server

I have been researching and have some few ideas about a distributed caching system for a in memory key-value store with replication and all the jazz associated. SO I wanted to know from the community what is the best language/framework/technology mix i should go for. ...

Sockets in windows vs linux

Are there differences in how Windows and Linux implements sockets? Is this a os concert or rather one entirely dependant on programming platform? ...